23 #ifndef LABELCONTAINER_H    24 #define LABELCONTAINER_H    30 #include "boost/python.hpp"    40     int get_indice_etiqueta(
const std::string &e) 
const;
    41     const std::string &get_etiqueta_indice(
const int &i) 
const;
    42     int insert(
const std::string &e);
    46     const std::string &operator()(
const int &) 
const;
    47     int operator()(
const std::string &) 
const;
    49     void Print(std::ostream &os) 
const;
    51     boost::python::dict 
getPyDict(
void) 
const;
    52     void setPyDict(
const boost::python::dict &);        
    62     bool hasLabel(
const int &i) 
const;
    73     const std::set<int> &getIdsLabels(
void) 
const;
    76     size_t getNumLabels(
void) 
const;
    77     int addLabel(
const std::string &e);
    78     int removeLabel(
const std::string &e);
    79     bool hasLabel(
const std::string &e) 
const;
    82     void Print(std::ostream &os) 
const;
    87     boost::python::dict 
getPyDict(
void) 
const;
    88     void setPyDict(
const boost::python::dict &);        
    91 std::ostream &operator<<(std::ostream &os,
const LabelContainer &lc);
 Label container. 
Definition: LabelContainer.h:58
Label dictionary. 
Definition: LabelContainer.h:33
void setPyDict(const boost::python::dict &)
Set the values of the object members from a Python dictionary. 
Definition: LabelContainer.cc:93
size_t getNumLabels(void) const
Return the number of labels in this object. 
Definition: LabelContainer.cc:158
boost::python::dict getPyDict(void) const
Return a Python dictionary with the object members values. 
Definition: LabelContainer.cc:83