![]() |
VR-Forces Developer's Guide
|
Class to store a set of keys mapping to a set of any objects.
Public Member Functions | |
| DtUserObjectBindings () | |
| virtual | ~DtUserObjectBindings () |
| void | setUserAny (const std::string &key, const boost::any &anything) |
| bool | hasKey (const std::string &key) const |
| const boost::any & | getUserAny (const std::string &key) |
| void | eraseKey (const std::string &key) |
| size_t | numKeys (void) const |
Private Types | |
| typedef std::map< std::string, boost::any > | UserObjectsMap |
Private Attributes | |
| UserObjectsMap | myUserObjectsMap |
|
private |
| makVrv::DtUserObjectBindings::DtUserObjectBindings | ( | ) |
|
virtual |
| void makVrv::DtUserObjectBindings::setUserAny | ( | const std::string & | key, |
| const boost::any & | anything | ||
| ) |
Associate a key with an any.
| bool makVrv::DtUserObjectBindings::hasKey | ( | const std::string & | key | ) | const |
Determine whether there's anything with this key.
| const boost::any& makVrv::DtUserObjectBindings::getUserAny | ( | const std::string & | key | ) |
Get the any associated with this key.
| void makVrv::DtUserObjectBindings::eraseKey | ( | const std::string & | key | ) |
Erase the key (and the corresponding any)
| size_t makVrv::DtUserObjectBindings::numKeys | ( | void | ) | const |
Total number of keys (and the corresponding anys) registered.
|
private |