src/PredFinder/elf/ElfRelation.cpp
/**
 * Returns the vector of arguments with a given role
 *
 * @return The vector of arguments with a given role; length of vector is usually 1
 *
 **/
Returns the vector of arguments with a given role

@return The vector of arguments with a given role; length of vector is usually 1
Returns the vector of arguments with a given role @return The vector of arguments with a given role ; length of vector is usually 1
std::vector<ElfRelationArg_ptr> ElfRelation::get_args_with_role(const std::wstring & role) const {
	ElfRelationArg_ptr arg;
	ElfRelationArgMap::const_iterator args_i = _arg_map.find(role);
	if (args_i != _arg_map.end()){
		return args_i->second;
	}
	else{
		std::vector<ElfRelationArg_ptr> empty_vector;
		return empty_vector;
	}
}
std :: vector < ElfRelationArg_ptr > ElfRelation :: get_args_with_role ( const std :: wstring & role ) const { ElfRelationArg_ptr arg ; ElfRelationArgMap :: const_iterator args_i = _arg_map . find ( role ) ; if ( args_i != _arg_map . end ( ) ) { return args_i -> second ; } else { std :: vector < ElfRelationArg_ptr > empty_vector ; return empty_vector ; } }
Returns the vector of arguments with a given role
Returns the vector of arguments with a given role
//SessionLogger::info("LEARNIT")<<"\tLook For: "<<role<<std::endl;
 //SessionLogger::info("LEARNIT")<<"\t\t returning: "<<args_i->second.size()<<std::endl;
 //SessionLogger::info("LEARNIT")<<"\t\t returning empty: "<<std::endl;
 //BOOST_FOREACH(ElfRelationArgMap::value_type vt, _args){
 //	SessionLogger::info("LEARNIT")<<"\t\t OtherArg: "<<vt.first<<std::endl;
 //}
