Code Listener  [unstable] git snapshot
Public Types | Public Member Functions | Private Types | Private Attributes
FncDb Class Reference

lookup container for set of Fnc objects More...

#include <storage.hh>

Collaboration diagram for FncDb:
Collaboration graph
[legend]

Public Types

typedef TList::const_iterator const_iterator
 
typedef const_iterator iterator
 

Public Member Functions

 FncDb ()
 
 ~FncDb ()
 
 FncDb (const FncDb &)
 shallow copy More...
 
FncDboperator= (const FncDb &)
 shallow copy More...
 
Fnc *& operator[] (int uid)
 look for a function by ID, create one if not found More...
 
const Fncoperator[] (int uid) const
 look for a function by ID, crash if not found More...
 
const_iterator begin () const
 return STL-like iterator to go through all functions inside More...
 
const_iterator end () const
 return STL-like iterator to go through all functions inside More...
 
size_t size () const
 return count of functions inside the container More...
 

Private Types

typedef FncTList
 

Private Attributes

TList fncs_
 
Private * d
 

Detailed Description

lookup container for set of Fnc objects

Definition at line 767 of file storage.hh.

Member Typedef Documentation

typedef TList::const_iterator const_iterator

Definition at line 772 of file storage.hh.

Definition at line 773 of file storage.hh.

typedef Fnc* TList
private

Definition at line 769 of file storage.hh.

Constructor & Destructor Documentation

FncDb ( )
~FncDb ( )
FncDb ( const FncDb )

shallow copy

Member Function Documentation

const_iterator begin ( ) const
inline

return STL-like iterator to go through all functions inside

Definition at line 801 of file storage.hh.

References FncDb::fncs_.

const_iterator end ( ) const
inline

return STL-like iterator to go through all functions inside

Definition at line 806 of file storage.hh.

References FncDb::fncs_.

FncDb& operator= ( const FncDb )

shallow copy

Fnc*& operator[] ( int  uid)

look for a function by ID, create one if not found

Parameters
uidID 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
uidID of the function to look for
Returns
pointer to the found Fnc object
size_t size ( ) const
inline

return count of functions inside the container

Definition at line 811 of file storage.hh.

References FncDb::fncs_.

Field Documentation

Private* d
private

Definition at line 815 of file storage.hh.

TList fncs_
private

Definition at line 814 of file storage.hh.

Referenced by FncDb::begin(), FncDb::end(), and FncDb::size().


The documentation for this class was generated from the following file: