#include <RefTable.h>
Inheritance diagram for RefTableBase:

Public Types | |
| typedef FROM | KeyType |
| typedef MAPENTRY | EntryType |
| typedef RefTableBase<FROM, EntryType> | BaseType |
| typedef HashTable< const void* , EntryType > | TableType |
| Define Reference map. More... | |
| typedef TableType::iterator | iterator |
| Definition of map iterator. More... | |
| typedef TableType::const_iterator | const_iterator |
| Definition of map iterator (CONST). More... | |
Public Methods | |
| RefTableBase (const CLID& clid, int len) | |
| Constructors. More... | |
| virtual | ~RefTableBase () |
| Destructor. More... | |
| virtual void | clear () |
| Clear Reference map. More... | |
| iterator | begin () |
| Start of direct access iterator. More... | |
| const_iterator | begin () const |
| Start of direct access iterator (CONST). More... | |
| iterator | end () |
| End of direct access iterator. More... | |
| const_iterator | end () const |
| End of direct access iterator (CONST). More... | |
| long | size () const |
| Size of References. More... | |
| void | reserve (int len) |
| Size of References. More... | |
| virtual StreamBuffer& | serialize ( StreamBuffer& s ) const |
| Serialize the object for writing. More... | |
| virtual StreamBuffer& | serialize ( StreamBuffer& s ) |
| Serialize the object for reading. More... | |
Public Attributes | |
| CLID | m_clid |
| Class id of the reference table. More... | |
Protected Methods | |
| bool | insertMapElement ( const FROM* from, EntryType& to ) |
| Insert new Entry into Reference container. More... | |
| EntryType* | i_reference (const FROM* from) |
| Find Reference from it's source entry. More... | |
| const EntryType* | i_reference (const FROM* from) const |
| Find Reference from it's source entry (CONST). More... | |
Private Attributes | |
| TableType | m_table |
| Reference map. More... | |
ClassName: RefTableBase
Description: Essential information of the RefTable References can be of several kinds: multiplicity: FROM TO 1 0 = 1 (no existing Reference) 1 1 <-> 1 relationship n 1 <-> n relationship Template parameters: FROM type of the source object TO type of the referenced object(s) MAPENTRY entry type used for the referenced objects within the map.
Author: Markus Frank
Definition at line 47 of file RefTable.h.
|
|||
|
Definition at line 54 of file RefTable.h. |
|
|||
|
Definition at line 52 of file RefTable.h. Referenced by RefTable1toN::insert(), and RefTable1to1::insert(). |
|
|||
|
Definition at line 50 of file RefTable.h. |
|
|||
|
Define Reference map. Need to use index into vector, because location of vector entries is not fixed Definition at line 58 of file RefTable.h. |
|
|||
|
Definition of map iterator (CONST).
Definition at line 68 of file RefTable.h. |
|
|||
|
Definition of map iterator.
Definition at line 66 of file RefTable.h. |
|
||||||
|
Constructors.
Definition at line 99 of file RefTable.h. |
|
||||
|
Destructor.
Definition at line 102 of file RefTable.h. |
|
||||
|
Start of direct access iterator (CONST).
Definition at line 114 of file RefTable.h. |
|
||||
|
Start of direct access iterator.
Definition at line 110 of file RefTable.h. |
|
||||
|
Clear Reference map.
Definition at line 106 of file RefTable.h. Referenced by ~RefTableBase(). |
|
||||
|
End of direct access iterator (CONST).
Definition at line 122 of file RefTable.h. |
|
||||
|
End of direct access iterator.
Definition at line 118 of file RefTable.h. |
|
||||
|
Find Reference from it's source entry (CONST).
Definition at line 89 of file RefTable.h. |
|
||||
|
Find Reference from it's source entry.
Definition at line 81 of file RefTable.h. Referenced by RefTable1toN::insert(), RefTable1toN::isReferenced(), RefTable1to1::isReferenced(), RefTable1toN::reference(), and RefTable1to1::reference(). |
|
||||||
|
Insert new Entry into Reference container.
Definition at line 77 of file RefTable.h. Referenced by RefTable1toN::insert(), RefTable1to1::insert(), and serialize(). |
|
||||
|
Size of References.
Definition at line 130 of file RefTable.h. |
|
||||
|
Serialize the object for reading.
Definition at line 142 of file RefTable.h. |
|
||||
|
Serialize the object for writing.
Definition at line 134 of file RefTable.h. |
|
||||
|
Size of References.
Definition at line 126 of file RefTable.h. |
|
|||
|
Class id of the reference table.
Definition at line 71 of file RefTable.h. |
|
|||
|
Reference map.
Definition at line 74 of file RefTable.h. |
1.2.3 written by Dimitri van Heesch,
© 1997-2000