Supports mapping from names to handles and vice-versa for a module, window, function, or attribute. More...
#include <maps.h>
Public Types | |
typedef Object | value_type |
Public Member Functions | |
Roccom_map () | |
~Roccom_map () | |
int | add_object (std::string name, Object t, bool is_const=false) throw (COM_exception) |
Insert an object into the table. More... | |
void | remove_object (std::string name, bool is_const=false) throw (COM_exception) |
Remove an object from the table. More... | |
bool | is_immutable (int i) const |
whether the object mutable More... | |
const Object & | operator[] (int i) const throw (COM_exception) |
Access an object using its handle. More... | |
Object & | operator[] (int i) throw (COM_exception) |
const std::string & | name (int i) const |
Name of the object. More... | |
int | size () const |
std::pair< int, Object * > | find (const std::string &name, bool is_const=false) |
std::vector< std::string > | get_names () |
Protected Attributes | |
I2O | i2o |
Mapping from index to objects. More... | |
N2I | n2i |
Mapping from names to indices. More... | |
std::list< int > | salvaged |
List of salvaged indices. More... | |
std::vector< std::string > | names |
Name of the objects. More... | |
Private Types | |
typedef std::vector< Object > | I2O |
Mapping from indices to objects. More... | |
typedef std::map< std::string, int > | N2I |
Mapping from names to indices. More... | |
Supports mapping from names to handles and vice-versa for a module, window, function, or attribute.
|
private |
|
private |
typedef Object value_type |
|
inline |
|
inline |
int add_object | ( | std::string | name, |
Object | t, | ||
bool | is_const = false |
||
) | |||
throw | ( | COM_exception | |
) |
Insert an object into the table.
Definition at line 97 of file maps.h.
Referenced by Function_map::add_object().
|
inline |
|
inline |
|
inline |
Name of the object.
Definition at line 76 of file maps.h.
Referenced by Roccom_base::print_profile(), and Roccom_base::set_profiling_barrier().
|
inline |
Access an object using its handle.
Definition at line 65 of file maps.h.
|
inline |
Definition at line 70 of file maps.h.
void remove_object | ( | std::string | name, |
bool | is_const = false |
||
) | |||
throw | ( | COM_exception | |
) |
Remove an object from the table.
Definition at line 119 of file maps.h.
References COM_UNKNOWN_ERROR.
|
inline |
Definition at line 78 of file maps.h.
Referenced by Roccom_base::set_profiling_barrier().
|
protected |
Mapping from index to objects.
Definition at line 90 of file maps.h.
Referenced by Roccom_map< std::pair< void *, std::set< std::string > > >::find(), and Roccom_map< std::pair< void *, std::set< std::string > > >::operator[]().
|
protected |
Mapping from names to indices.
Definition at line 91 of file maps.h.
Referenced by Roccom_map< std::pair< void *, std::set< std::string > > >::find().
|
protected |
Name of the objects.
Definition at line 93 of file maps.h.
Referenced by Roccom_map< std::pair< void *, std::set< std::string > > >::get_names(), Roccom_map< std::pair< void *, std::set< std::string > > >::is_immutable(), Roccom_map< std::pair< void *, std::set< std::string > > >::name(), and Roccom_map< std::pair< void *, std::set< std::string > > >::size().