src/PredFinder/elf/ElfDocument.cpp
/**
 * Takes a list of relations to remove from this
 * document. All comparisons are made using pointer
 * equality; it's assumed that these shared pointer
 * references were output from get_relations() that
 * has been filtered in some way.
 *
 * @param relations The list of relations to remove.
 *
 * @author nward@bbn.com
 * @date 2010.10.18
 **/
Takes a list of relations to remove from this
document. All comparisons are made using pointer
equality; it's assumed that these shared pointer
references were output from get_relations() that
has been filtered in some way.

@param relations The list of relations to remove.


Takes a list of relations to remove from this document . All comparisons are made using pointer equality ; it ' s assumed that these shared pointer references were output from get_relations () that has been filtered in some way . @param relations The list of relations to remove .
void ElfDocument::remove_relations(const std::set<ElfRelation_ptr> & relations_to_remove) {
	BOOST_FOREACH(ElfRelation_ptr relation_to_remove, relations_to_remove) {
		std::set<ElfRelation_ptr>::iterator relation_i = _relations.find(relation_to_remove);
		if (relation_i != _relations.end()) {
			_relations.erase(relation_i);
		}
	}
}
void ElfDocument :: remove_relations ( const std :: set < ElfRelation_ptr > & relations_to_remove ) { BOOST_FOREACH ( ElfRelation_ptr relation_to_remove , relations_to_remove ) { std :: set < ElfRelation_ptr > :: iterator relation_i = _relations . find ( relation_to_remove ) ; if ( relation_i != _relations . end ( ) ) { _relations . erase ( relation_i ) ; } } }
Takes a list of relations to remove from this
 document.
Takes a list of relations to remove from this document .