Logo Search packages:      
Sourcecode: tagcolledit version File versions  Download package

Tag Class Reference

#include <Tag.h>

List of all members.

Detailed Description

Representation of a tag. Tagcoll::Tag represents a Tag with all its informations. It is implemented via a reference-counted smart pointer, so it can be passed around freely and efficiently without worrying for memory management issues. The class is normally instantiated via Facet::obtainTag:
      Tag mytag = facet.obtainTag("printable");
Tag can contain a "false" value, in which case using any of its methonds produce a null-pointer dereference segfault. The "null" tags are useful as "none" return values:
    Tag mytag = facet.getTag("printable");
    if (!mytag)
       throw ConsistencyCheckException("tag \"printable\" has not been defined");

Definition at line 30 of file Tag.h.

Public Member Functions

Facet facet () const throw ()
std::string fullname () const throw ()
const std::string & name () const throw ()
 operator bool () const throw ()
bool operator< (const Tag &f) const throw ()
Tagoperator= (const Tag &f) throw ()
bool operator== (const Tag &f) const throw ()
 Tag (const Tag &f) throw ()

Protected Member Functions

 Tag (FacetImpl *facet, const std::string &name) throw ()

Protected Attributes

TagImpl * impl


class FacetImpl
class TagSet

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index