lookup container for set of Fnc objects
More...
#include <storage.hh>
Public Member Functions |
| FncDb () |
| ~FncDb () |
| FncDb (const FncDb &) |
| shallow copy
|
FncDb & | operator= (const FncDb &) |
| shallow copy
|
Fnc *& | operator[] (int uid) |
| look for a function by ID, create one if not found
|
const Fnc * | operator[] (int uid) const |
| look for a function by ID, crash if not found
|
const_iterator | begin () const |
| return STL-like iterator to go through all functions inside
|
const_iterator | end () const |
| return STL-like iterator to go through all functions inside
|
size_t | size () const |
| return count of functions inside the container
|
Detailed Description
lookup container for set of Fnc objects
Definition at line 767 of file storage.hh.
Member Typedef Documentation
Constructor & Destructor Documentation
Member Function Documentation
return STL-like iterator to go through all functions inside
Definition at line 801 of file storage.hh.
References FncDb::fncs_.
return STL-like iterator to go through all functions inside
Definition at line 806 of file storage.hh.
References FncDb::fncs_.
Fnc*& operator[] |
( |
int |
uid | ) |
|
look for a function by ID, create one if not found
- Parameters
-
uid | ID of the function to look for |
- Returns
- referenced pointer to either a found or just created Fnc obj
- Attention
- created objects will not be destroyed automatically
const Fnc* operator[] |
( |
int |
uid | ) |
const |
look for a function by ID, crash if not found
- Attention
- It is not safe to look for a non-existing function, it will jump to debugger in that case.
- Parameters
-
uid | ID of the function to look for |
- Returns
- pointer to the found Fnc object
Field Documentation
The documentation for this class was generated from the following file: