Representation of a tag. More...
#include <vocabulary.h>
Public Member Functions | |
TagData () |
Representation of a tag.
ept::debtags::Tag represents a Tag with all its informations. It is guaranteed to have fast value-copy semantics, so it can be passed around freely and efficiently without worrying about memory management issues.
The class is normally instantiated using a Vocabulary:
Tag tag = vocabulary.tagByName("made-of::lang:c++");
Tags can contain an "invalid" value, in which case using any of their methods will likely produce segfault. The "invalid" facets are useful as "none" return values:
Tag tag = vocabulary.tagByName("made-of"); if (!tag) throw SomeException("tag \"mytag\" has not been defined");
ept::debtags::voc::TagData::TagData | ( | ) | [inline] |