38 static const std::string emptyString;
41 if ( cutPosition >=
m_cutMap.size() )
49 for ( ; it != itEnd; ++it )
51 if ( (it->second).second == cutPosition )
68 static const std::string emptyString;
71 if ( cutPosition >=
m_cutMap.size() )
79 for ( ; it != itEnd; ++it )
81 if ( (it->second).second == cutPosition )
83 return (it->second).first;
102 for ( ; it != itEnd; ++it )
104 if ( (it->second).second == cutPosition )
106 ((it->second).first) = cutDescription;
119const std::string& asg::AcceptInfo :: getCutDescription(
const std::string& cutName )
const
121 static const std::string emptyString;
123 return (it !=
m_cutMap.end()) ? (it->second).first : emptyString;
std::map< std::string, std::pair< std::string, unsigned int > > m_cutMap
The map for mapping cut names to their description and position.
const std::string & getCutName(unsigned int cutPosition) const
Get the name of a cut, based on the cut position (slow, avoid usage)
void setCutDescription(const std::string &cutName, const std::string &cutDescription)
Set the result of a cut, based on the cut name (safer)
const std::string & getCutDescription(const std::string &cutName) const
Get the description of a cut, based on the cut name.