Public Member Functions

ept::debtags::voc::TagData Struct Reference

Representation of a tag. More...

#include <vocabulary.h>

Inheritance diagram for ept::debtags::voc::TagData:
ept::debtags::voc::Data

List of all members.

Public Member Functions

 TagData ()

Detailed Description

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");

Constructor & Destructor Documentation

ept::debtags::voc::TagData::TagData (  )  [inline]

The documentation for this struct was generated from the following file: