src/PredFinder/elf/ElfRelation.cpp
/**
 * Flattens _arg_map into a vector containing all of the 
 * args in the original relation. They will be sorted by role,
 * though the role does not appear in the output vector.
 *
 * @return std::vector containing 0 or more ElfRelationArgs,
 * the concatenated leaves of _arg_map.
 *
 * @author nward@bbn.com
 * @date 2010.10.13
 **/
Flattens _arg_map into a vector containing all of the
args in the original relation. They will be sorted by role,
though the role does not appear in the output vector.

@return std::vector containing 0 or more ElfRelationArgs,
the concatenated leaves of _arg_map.


Flattens _arg_map into a vector containing all of the args in the original relation . They will be sorted by role though the role does not appear in the output vector . @return std :: vector containing 0 or more ElfRelationArgs the concatenated leaves of _arg_map .
std::vector<ElfRelationArg_ptr> ElfRelation::get_args(void) const {
	std::vector<ElfRelationArg_ptr> all_args;
	BOOST_FOREACH(ElfRelationArgMap::value_type role_arg_mapping, _arg_map) {
		all_args.insert(all_args.end(), role_arg_mapping.second.begin(), role_arg_mapping.second.end());
	}
	return all_args;
}
std :: vector < ElfRelationArg_ptr > ElfRelation :: get_args ( void ) const { std :: vector < ElfRelationArg_ptr > all_args ; BOOST_FOREACH ( ElfRelationArgMap :: value_type role_arg_mapping , _arg_map ) { all_args . insert ( all_args . end ( ) , role_arg_mapping . second . begin ( ) , role_arg_mapping . second . end ( ) ) ; } return all_args ; }
Flattens _arg_map into a vector containing all of the
 args in the original relation.
Flattens _arg_map into a vector containing all of the args in the original relation .