lookup container for set of Var objects
More...
#include <storage.hh>
Public Member Functions |
| VarDb () |
| ~VarDb () |
Var & | operator[] (int uid) |
| look for a Var object by ID, add one if not found
|
const Var & | operator[] (int uid) const |
| look for a Var object by ID, crash if not found
|
const_iterator | begin () const |
| return STL-like iterator to go through the container
|
const_iterator | end () const |
| return STL-like iterator to go through the container
|
size_t | size () const |
| return count of variables stored in the container
|
Detailed Description
lookup container for set of Var objects
Definition at line 129 of file storage.hh.
Member Typedef Documentation
Constructor & Destructor Documentation
Member Function Documentation
Var& operator[] |
( |
int |
uid | ) |
|
look for a Var object by ID, add one if not found
- Parameters
-
uid | ID of variable to look for |
- Returns
- reference to either a found or just created Var object
const Var& operator[] |
( |
int |
uid | ) |
const |
look for a Var object by ID, crash if not found
- Attention
- It is not safe to look for non-existing ID, it will jump to debugger in that case.
- Parameters
-
uid | ID of variable to look for |
- Returns
- reference to the found Var object
Field Documentation
The documentation for this class was generated from the following file: