ATLAS Offline Software
|
A class that manages a list of tags for identifying samples. More...
#include <TagList.h>
Public Types | |
typedef std::set< std::string >::const_iterator | iterator |
the iterator to use More... | |
Public Member Functions | |
void | testInvariant () const |
test the invariant of this object More... | |
TagList () | |
standard default constructor More... | |
TagList (const std::string &tags, char separator=':') | |
create a tag-list from a string More... | |
bool | has (const std::string &tag) const |
whether we have the given tag More... | |
iterator | begin () const |
the begin iterator to use More... | |
iterator | end () const |
the end iterator to use More... | |
std::string | join (char separator=':') const |
join all the tags together into a string More... | |
void | add (const std::string &tag) |
add a tag to the list More... | |
Private Types | |
typedef std::set< std::string >::const_iterator | TagsIter |
the iterator for m_tags More... | |
Private Attributes | |
std::set< std::string > | m_tags |
the list of tags More... | |
Related Functions | |
(Note that these are not member functions.) | |
std::string | dbg (const TagList &obj, unsigned verbosity=0) |
the debugging info of this object More... | |
A class that manages a list of tags for identifying samples.
The idea is to use the marker to group samples according to their type. This is a bit of an old mechanism, and personally I prefer to rely on meta-data instead.
typedef std::set<std::string>::const_iterator SH::TagList::iterator |
|
private |
SH::TagList::TagList | ( | ) |
standard default constructor
Definition at line 59 of file TagList.cxx.
|
explicit |
create a tag-list from a string
param tags the given list of tags param separator the character by which tags are separated in the list
Definition at line 67 of file TagList.cxx.
void SH::TagList::add | ( | const std::string & | tag | ) |
add a tag to the list
tag | the tag to add |
Definition at line 135 of file TagList.cxx.
TagList::iterator SH::TagList::begin | ( | ) | const |
TagList::iterator SH::TagList::end | ( | ) | const |
bool SH::TagList::has | ( | const std::string & | tag | ) | const |
whether we have the given tag
Definition at line 87 of file TagList.cxx.
std::string SH::TagList::join | ( | char | separator = ':' | ) | const |
join all the tags together into a string
separator | the separator to use |
Definition at line 115 of file TagList.cxx.
void SH::TagList::testInvariant | ( | ) | const |
the debugging info of this object
obj | the object to be presented |
verbosity | the level of verbosity (higher number -> more information) |
Definition at line 30 of file TagList.cxx.
|
private |