src/Generic/patterns/PropPattern.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 PropPattern::getReturns(PatternReturnVecSeq & output) const {
	Pattern::getReturns(output);
	for (size_t n = 0; n < _args.size(); ++n) {
		if (_args[n]) {
			_args[n]->getReturns(output);
		}
	}
	for (size_t n = 0; n < _optArgs.size(); ++n) {
		if (_optArgs[n]) {
			_optArgs[n]->getReturns(output);
		}
	}
}
void PropPattern :: getReturns ( PatternReturnVecSeq & output ) const { Pattern :: getReturns ( output ) ; for ( size_t n = 0 ; n < _args . size ( ) ; ++ n ) { if ( _args [ n ] ) { _args [ n ] -> getReturns ( output ) ; } } for ( size_t n = 0 ; n < _optArgs . size ( ) ; ++ n ) { if ( _optArgs [ n ] ) { _optArgs [ n ] -> 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 .
// Note: this currently does *not* recurse into _regexpPattern.  It is unclear
 // whether that is intentional or not.
