Code Listener
[unstable] git snapshot
|
lookup container for set of Var objects More...
#include <storage.hh>
Public Types | |
typedef TList::const_iterator | const_iterator |
typedef const_iterator | iterator |
Public Member Functions | |
VarDb () | |
~VarDb () | |
Var & | operator[] (int uid) |
look for a Var object by ID, add one if not found More... | |
const Var & | operator[] (int uid) const |
look for a Var object by ID, crash if not found More... | |
const_iterator | begin () const |
return STL-like iterator to go through the container More... | |
const_iterator | end () const |
return STL-like iterator to go through the container More... | |
size_t | size () const |
return count of variables stored in the container More... | |
Private Types | |
typedef Var[] | TList |
Private Member Functions | |
VarDb (const VarDb &) | |
not allowed to be copied More... | |
VarDb & | operator= (const VarDb &) |
not allowed to be copied More... | |
Private Attributes | |
TList | vars_ |
Private * | d |
lookup container for set of Var objects
Definition at line 129 of file storage.hh.
typedef TList::const_iterator const_iterator |
Definition at line 134 of file storage.hh.
typedef const_iterator iterator |
Definition at line 135 of file storage.hh.
Definition at line 131 of file storage.hh.
VarDb | ( | ) |
~VarDb | ( | ) |
|
inline |
return STL-like iterator to go through the container
Definition at line 160 of file storage.hh.
References VarDb::vars_.
|
inline |
return STL-like iterator to go through the container
Definition at line 165 of file storage.hh.
References VarDb::vars_.
Var& operator[] | ( | int | uid) |
const Var& operator[] | ( | int | uid) | const |
|
inline |
return count of variables stored in the container
Definition at line 170 of file storage.hh.
References VarDb::vars_.
|
private |
Definition at line 181 of file storage.hh.
|
private |
Definition at line 180 of file storage.hh.
Referenced by VarDb::begin(), VarDb::end(), and VarDb::size().