src/Generic/patterns/ParseNodePattern.cpp
/**
 * Redefinition of parent class's virtual method that returns a vector of 
 * pointers to PatternReturn objects for a given pattern.
 *
 * @param pointer to vector of pointers to PatternReturn objects for a given pattern
 *
 * @author afrankel@bbn.com
 * @date 2010.10.20
 **/
Redefinition of parent class's virtual method that returns a vector of
pointers to PatternReturn objects for a given pattern.

@param pointer to vector of pointers to PatternReturn objects for a given pattern


Redefinition of parent class ' s virtual method that returns a vector of pointers to PatternReturn objects for a given pattern . @param pointer to vector of pointers to PatternReturn objects for a given pattern
void ParseNodePattern::getReturns(PatternReturnVecSeq & output) const {
	Pattern::getReturns(output);
	for (size_t n = 0; n < _premods.size(); ++n)
		_premods[n]->getReturns(output);	
	for (size_t n = 0; n < _optionalPremods.size(); ++n)
		_optionalPremods[n]->getReturns(output);
	for (size_t n = 0; n < _postmods.size(); ++n)
		_postmods[n]->getReturns(output);	
	for (size_t n = 0; n < _optionalPostmods.size(); ++n)
		_optionalPostmods[n]->getReturns(output);
	if (_head)
		_head->getReturns(output);
	if (_mentionPattern)
		_mentionPattern->getReturns(output);
	if (_regexPattern)
		_regexPattern->getReturns(output);
}
void ParseNodePattern :: getReturns ( PatternReturnVecSeq & output ) const { Pattern :: getReturns ( output ) ; for ( size_t n = 0 ; n < _premods . size ( ) ; ++ n ) _premods [ n ] -> getReturns ( output ) ; for ( size_t n = 0 ; n < _optionalPremods . size ( ) ; ++ n ) _optionalPremods [ n ] -> getReturns ( output ) ; for ( size_t n = 0 ; n < _postmods . size ( ) ; ++ n ) _postmods [ n ] -> getReturns ( output ) ; for ( size_t n = 0 ; n < _optionalPostmods . size ( ) ; ++ n ) _optionalPostmods [ n ] -> getReturns ( output ) ; if ( _head ) _head -> getReturns ( output ) ; if ( _mentionPattern ) _mentionPattern -> getReturns ( output ) ; if ( _regexPattern ) _regexPattern -> getReturns ( output ) ; }
Redefinition of parent class's virtual method that returns a vector of
 pointers to PatternReturn objects for a given pattern.
Redefinition of parent class ' s virtual method that returns a vector of pointers to PatternReturn objects for a given pattern .