src/PredFinder/elf/ElfDocument.cpp
// Loop over all of the relations in this document

Loop over all of the relations in this document
Loop over all of the relations in this document
BOOST_FOREACH(ElfRelation_ptr relation, _relations) {
		ElfRelationArg_ptr matching_arg = relation->get_matching_arg(search_arg);
		if (matching_arg.get() != NULL) {
			ElfRelation_ptr relation_copy = boost::make_shared<ElfRelation>(relation);
			std::pair<ElfRelationMap::iterator, bool> relation_match_insert = matching_relations.insert(ElfRelationMap::value_type(relation_copy->get_name(), std::vector<ElfRelation_ptr>()));
			relation_match_insert.first->second.push_back(relation_copy);
		}
	}
BOOST_FOREACH ( ElfRelation_ptr relation , _relations ) { ElfRelationArg_ptr matching_arg = relation -> get_matching_arg ( search_arg ) ; if ( matching_arg . get ( ) != NULL ) { ElfRelation_ptr relation_copy = boost :: make_shared < ElfRelation > ( relation ) ; std :: pair < ElfRelationMap :: iterator , bool > relation_match_insert = matching_relations . insert ( ElfRelationMap :: value_type ( relation_copy -> get_name ( ) , std :: vector < ElfRelation_ptr > ( ) ) ) ; relation_match_insert . first -> second . push_back ( relation_copy ) ; } }
Loop over all of the relations in this document
Loop over all of the relations in this document
// Get a matching arg from this relation, if there is one
 // Add this found relation to the return list
