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 | |
Public Member Functions | |
void | testInvariant () const |
test the invariant of this object | |
TagList () | |
standard default constructor | |
TagList (const std::string &tags, char separator= ':') | |
create a tag-list from a string | |
bool | has (const std::string &tag) const |
whether we have the given tag | |
iterator | begin () const |
the begin iterator to use | |
iterator | end () const |
the end iterator to use | |
std::string | join (char separator= ':') const |
join all the tags together into a string | |
void | add (const std::string &tag) |
add a tag to the list |
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.
SH::TagList::TagList | ( | ) |
standard default constructor
SH::TagList::TagList | ( | const std::string & | tags, | |
char | separator = ':' | |||
) | [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
void SH::TagList::add | ( | const std::string & | tag | ) |
add a tag to the list
tag | the tag to add |
TagList::iterator SH::TagList::begin | ( | ) | const |
the begin iterator to use
TagList::iterator SH::TagList::end | ( | ) | const |
the end iterator to use
bool SH::TagList::has | ( | const std::string & | tag | ) | const |
whether we have the given tag
std::string SH::TagList::join | ( | char | separator = ':' |
) | const |
join all the tags together into a string
separator | the separator to use |
void SH::TagList::testInvariant | ( | ) | const |
test the invariant of this object