libept
Public Member Functions | List of all members
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

Public Member Functions

 TagData ()
- Public Member Functions inherited from ept::debtags::voc::Data
std::string shortDescription () const
 Return the short description of the tag.
std::string longDescription () const
 Return the long description of the tag.

Additional Inherited Members

- Public Attributes inherited from ept::debtags::voc::Data
std::string name
- Protected Attributes inherited from ept::debtags::voc::Data
std::string m_desc

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: