#include <gdtmap.h>
Public Types | |
typedef void * | item |
Public Member Functions | |
bool | consistency_check () |
void | show (std::ostream &os) const |
gdtmap () | |
gdtmap (Value x) | |
gdtmap (Value x, unsigned long table_sz) | |
gdtmap< Key, Value > & | operator= (const gdtmap< Key, Value > &M) |
gdtmap (const gdtmap< Key, Value > &M) | |
~gdtmap () | |
const Value & | operator[] (const Key &key) const |
Value & | operator[] (const Key &key) |
bool | defined (const Key &key) const |
void | undefine (const Key &key) |
void | clear () |
void | clear (Value x) |
void | statistics () const |
item | first_item () const |
item | next_item (item _it) const |
Key | key (item _it) const |
Value & | inf (item _it) const |
Protected Member Functions | |
void | init_table (unsigned long size=MIN_TABLE_SIZE) |
void | delete_table () |
void | set_default (Value x) |
Definition at line 39 of file gdtmap.h.
typedef void* gdt::gdtmap< Key, Value >::item |
gdt::gdtmap< Key, Value >::gdtmap | ( | ) | [inline] |
Definition at line 457 of file gdtmap.h.
References gdt::gdtmap< Key, Value >::consistency_check(), gdt::gdtmap< Key, Value >::init_table(), and NULL.
gdt::gdtmap< Key, Value >::gdtmap | ( | Value | x | ) | [inline] |
Definition at line 464 of file gdtmap.h.
References gdt::gdtmap< Key, Value >::consistency_check(), gdt::gdtmap< Key, Value >::init_table(), and NULL.
gdt::gdtmap< Key, Value >::gdtmap | ( | Value | x, | |
unsigned long | table_sz | |||
) | [inline] |
Definition at line 471 of file gdtmap.h.
References gdt::gdtmap< Key, Value >::consistency_check(), gdt::gdtmap< Key, Value >::init_table(), and NULL.
gdt::gdtmap< Key, Value >::gdtmap | ( | const gdtmap< Key, Value > & | M | ) | [inline] |
Definition at line 490 of file gdtmap.h.
References gdt::gdtmap< Key, Value >::consistency_check(), gdt::gdtmap< Key, Value >::init_table(), and gdt::gdtmap< Key, Value >::table_size.
gdt::gdtmap< Key, Value >::~gdtmap | ( | ) | [inline] |
void gdt::gdtmap< Key, Value >::init_table | ( | unsigned long | size = MIN_TABLE_SIZE |
) | [inline, protected] |
Definition at line 365 of file gdtmap.h.
References gdt::gdtmap< Key, Value >::consistency_check(), gdt::gdtceil(), and MIN_TABLE_SIZE.
Referenced by gdt::gdtmap< Key, Value >::clear(), gdt::gdtmap< Key, Value >::gdtmap(), and gdt::gdtmap< Key, Value >::operator=().
void gdt::gdtmap< Key, Value >::delete_table | ( | ) | [inline, protected] |
Definition at line 404 of file gdtmap.h.
References NULL, and PTR_DELETE.
Referenced by gdt::gdtmap< Key, Value >::clear(), and gdt::gdtmap< Key, Value >::operator=().
void gdt::gdtmap< Key, Value >::set_default | ( | Value | x | ) | [inline, protected] |
bool gdt::gdtmap< Key, Value >::consistency_check | ( | ) | [inline] |
Definition at line 420 of file gdtmap.h.
Referenced by gdt::gdtmap< Key, Value >::clear(), gdt::gdtmap< Key, Value >::gdtmap(), gdt::gdtmap< Key, Value >::init_table(), and gdt::gdtmap< Key, Value >::operator=().
void gdt::gdtmap< Key, Value >::show | ( | std::ostream & | os | ) | const [inline] |
gdtmap< Key, Value > & gdt::gdtmap< Key, Value >::operator= | ( | const gdtmap< Key, Value > & | M | ) | [inline] |
Definition at line 478 of file gdtmap.h.
References gdt::gdtmap< Key, Value >::consistency_check(), gdt::gdtmap< Key, Value >::delete_table(), gdt::gdtmap< Key, Value >::init_table(), and gdt::gdtmap< Key, Value >::table_size.
const Value & gdt::gdtmap< Key, Value >::operator[] | ( | const Key & | key | ) | const [inline] |
Value & gdt::gdtmap< Key, Value >::operator[] | ( | const Key & | key | ) | [inline] |
bool gdt::gdtmap< Key, Value >::defined | ( | const Key & | key | ) | const [inline] |
void gdt::gdtmap< Key, Value >::undefine | ( | const Key & | key | ) | [inline] |
void gdt::gdtmap< Key, Value >::clear | ( | ) | [inline] |
Definition at line 545 of file gdtmap.h.
References gdt::gdtmap< Key, Value >::consistency_check(), gdt::gdtmap< Key, Value >::delete_table(), and gdt::gdtmap< Key, Value >::init_table().
Referenced by gdt::gdtmap< Key, Value >::clear().
void gdt::gdtmap< Key, Value >::clear | ( | Value | x | ) | [inline] |
Definition at line 552 of file gdtmap.h.
References gdt::gdtmap< Key, Value >::clear(), and gdt::gdtmap< Key, Value >::consistency_check().
void gdt::gdtmap< Key, Value >::statistics | ( | ) | const [inline] |
gdtmap< Key, Value >::item gdt::gdtmap< Key, Value >::first_item | ( | ) | const [inline] |
gdtmap< Key, Value >::item gdt::gdtmap< Key, Value >::next_item | ( | item | _it | ) | const [inline] |
Key gdt::gdtmap< Key, Value >::key | ( | item | _it | ) | const [inline] |
Value & gdt::gdtmap< Key, Value >::inf | ( | item | _it | ) | const [inline] |