src/PredFinder/elf/ElfDocument.cpp
/**
 * Public accessor to get all relations, or relations containing
 * an arg referring to a particular individual. Returns copies
 * of the underlying ElfRelations, so changing any of the return
 * values doesn't change the contents of the document.
 *
 * @param search_individual The individual to find
 * relations by; if NULL, all relations are returned.
 * @return A dictionary of relations by name.
 *
 * @author nward@bbn.com
 * @date 2010.08.18
 **/
Public accessor to get all relations, or relations containing
an arg referring to a particular individual. Returns copies
of the underlying ElfRelations, so changing any of the return
values doesn't change the contents of the document.

@param search_individual The individual to find
relations by; if NULL, all relations are returned.
@return A dictionary of relations by name.


Public accessor to get all relations or relations containing an arg referring to a particular individual . Returns copies of the underlying ElfRelations so changing any of the return values doesn ' t change the contents of the document . @param search_individual The individual to find relations by ; if NULL all relations are returned . @return A dictionary of relations by name .
ElfRelationMap ElfDocument::get_relations_by_individual(const ElfIndividual_ptr search_individual) const {
	ElfRelationArg_ptr search_arg;
	if (search_individual.get() != NULL) {
		search_arg = boost::make_shared<ElfRelationArg>(L"", search_individual);
	}
	else{
		ElfRelationMap empty_map;
		return empty_map;
	}
	return get_relations_by_arg(search_arg);
}
ElfRelationMap ElfDocument :: get_relations_by_individual ( const ElfIndividual_ptr search_individual ) const { ElfRelationArg_ptr search_arg ; if ( search_individual . get ( ) != NULL ) { search_arg = boost :: make_shared < ElfRelationArg > ( L" " , search_individual ) ; } else { ElfRelationMap empty_map ; return empty_map ; } return get_relations_by_arg ( search_arg ) ; }
Public accessor to get all relations, or relations containing
 an arg referring to a particular individual.
Public accessor to get all relations or relations containing an arg referring to a particular individual .
// Construct a search arg from the specified individual, if necessary
 // Create a search arg containing this individual
 // Return the results of the arg search
