Code Listener
[unstable] git snapshot
|
type lookup table More...
#include <storage.hh>
Public Types | |
typedef TList::const_iterator | const_iterator |
typedef const_iterator | iterator |
Public Member Functions | |
TypeDb () | |
~TypeDb () | |
bool | insert (const struct cl_type *) |
index given type for lookup More... | |
struct cl_type * | operator[] (int) const |
type lookup by ID 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 types stored in the container More... | |
int | codePtrSizeof () const |
value of sizeof(void (*)()) in the analysed program, -1 if such information is not available More... | |
int | dataPtrSizeof () const |
value of sizeof(void *) in the analysed program, -1 if such information is not available More... | |
struct cl_type * | genericDataPtr () const |
a (void *) type if available; if not, any data pointer; 0 otherwise More... | |
Private Types | |
typedef struct cl_type * | TList |
Private Member Functions | |
TypeDb (const TypeDb &) | |
not allowed to be copied More... | |
TypeDb & | operator= (const TypeDb &) |
not allowed to be copied More... | |
Private Attributes | |
TList | types_ |
Private * | d |
type lookup table
Definition at line 190 of file storage.hh.
typedef TList::const_iterator const_iterator |
Definition at line 195 of file storage.hh.
typedef const_iterator iterator |
Definition at line 196 of file storage.hh.
Definition at line 192 of file storage.hh.
TypeDb | ( | ) |
~TypeDb | ( | ) |
|
inline |
return STL-like iterator to go through the container
Definition at line 221 of file storage.hh.
References TypeDb::types_.
int codePtrSizeof | ( | ) | const |
value of sizeof(void (*)()) in the analysed program, -1 if such information is not available
int dataPtrSizeof | ( | ) | const |
value of sizeof(void *) in the analysed program, -1 if such information is not available
|
inline |
return STL-like iterator to go through the container
Definition at line 226 of file storage.hh.
References TypeDb::types_.
struct cl_type* genericDataPtr | ( | ) | const |
a (void *) type if available; if not, any data pointer; 0 otherwise
bool insert | ( | const struct cl_type * | ) |
index given type for lookup
struct cl_type* operator[] | ( | int | ) | const |
type lookup by ID
|
inline |
return count of types stored in the container
Definition at line 231 of file storage.hh.
References cl_type::size, and TypeDb::types_.
|
private |
Definition at line 257 of file storage.hh.
|
private |
Definition at line 256 of file storage.hh.
Referenced by TypeDb::begin(), TypeDb::end(), and TypeDb::size().