xc
Public Member Functions | Static Public Member Functions | Friends | List of all members
LabelContainer Class Reference

Label container. More...

#include <LabelContainer.h>

Public Member Functions

 LabelContainer (void)
 Constructor.
 
LabelContaineroperator+= (const LabelContainer &)
 += operator.
 
LabelContaineroperator-= (const LabelContainer &)
 -= operator.
 
LabelContaineroperator*= (const LabelContainer &)
 *= operator (intersection).
 
bool operator== (const LabelContainer &) const
 
void extend (const LabelContainer &)
 
const std::set< int > & getIdsLabels (void) const
 Return the label identifiers.
 
size_t getNumLabels (void) const
 Return the number of labels in this object.
 
int addLabel (const std::string &e)
 
int removeLabel (const std::string &e)
 
bool hasLabel (const std::string &e) const
 
void clear (void)
 
void Print (std::ostream &os) const
 
boost::python::dict getPyDict (void) const
 Return a Python dict with the object members values.
 
void setPyDict (const boost::python::dict &)
 Set the values of the object members from a Python dict.
 

Static Public Member Functions

static const LabelDictionarygetDictionary (void)
 Return a reference to the label dictionary.
 

Friends

LabelContainer operator+ (const LabelContainer &, const LabelContainer &)
 Return the union of both containers.
 
LabelContainer operator- (const LabelContainer &, const LabelContainer &)
 Return the labels in a that are not in b.
 
LabelContainer operator* (const LabelContainer &, const LabelContainer &)
 Return the labels in a that are also in b.
 

Detailed Description

Label container.


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