src/PredFinder/macros/ReadingMacroSet.cpp
/**
 * Takes an input relation and checks if it is
 * consumed by at least one macro's operator in
 * the specified stage.
 *
 * @param stage_name The stage for which we're
 * looking for a rule match.
 * @param relation The ElfRelation being checked
 * for possible consumption.
 *
 * @author nward@bbn.com
 * @date 2010.11.10
 **/
Takes an input relation and checks if it is
consumed by at least one macro's operator in
the specified stage.

@param stage_name The stage for which we're
looking for a rule match.
@param relation The ElfRelation being checked
for possible consumption.


Takes an input relation and checks if it is consumed by at least one macro ' s operator in the specified stage . @param stage_name The stage for which we ' re looking for a rule match . @param relation The ElfRelation being checked for possible consumption .
bool ReadingMacroSet::matches(Symbol stage_name, ElfRelation_ptr relation) const {
	BOOST_FOREACH(ReadingMacro_ptr macro, _macros) {
		if (macro->matches(stage_name, relation))
			return true;
	}
	return false;
}
bool ReadingMacroSet :: matches ( Symbol stage_name , ElfRelation_ptr relation ) const { BOOST_FOREACH ( ReadingMacro_ptr macro , _macros ) { if ( macro -> matches ( stage_name , relation ) ) return true ; } return false ; }
Takes an input relation and checks if it is
 consumed by at least one macro's operator in
 the specified stage.
Takes an input relation and checks if it is consumed by at least one macro ' s operator in the specified stage .
// Check each macro defined in this set in turn
 // No match
