|
xc
|
Label container. More...
#include <LabelContainer.h>
Public Member Functions | |
| LabelContainer (void) | |
| Constructor. | |
| LabelContainer & | operator+= (const LabelContainer &) |
| += operator. | |
| LabelContainer & | operator-= (const LabelContainer &) |
| -= operator. | |
| LabelContainer & | operator*= (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 LabelDictionary & | getDictionary (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. | |
Label container.
1.8.13