Map 16-bit handles to borrowed object pointers without deleting registered objects.
More...
|
| BOOL | LookupWordPointerMapValue (std::uint16_t key, Value *&value) const |
| | Look up a registered pointer without changing the output on a missing key.
|
| void | SetWordPointerMapValue (std::uint16_t key, Value *value) |
| | Insert or replace a pointer without releasing the previous object.
|
| void | GrowWhenFull () |
| | Rebuild with ten additional buckets when entry count equals bucket count.
|
| | CMapWordToPtr (int blockSize=10) |
| | Initialise an empty map with 17 buckets allocated on first insertion.
|
| | ~CMapWordToPtr () override |
| | Release buckets and association pools without deleting pointer values.
|
| int | GetCount () const |
| UINT | GetHashTableSize () const |
| BOOL | IsEmpty () const |
| BOOL | Lookup (WORD key, void *&value) const |
| | Look up a pointer without changing the output on a missing key.
|
| void | SetAt (WORD key, void *value) |
| | Insert or replace a pointer without releasing the previous value.
|
| BOOL | RemoveKey (WORD key) |
| | Remove an association and release all storage when the map becomes empty.
|
| void | RemoveAll () |
| | Release all associations and buckets without deleting pointer values.
|
| POSITION | GetStartPosition () const |
| void | GetNextAssoc (POSITION &position, WORD &key, void *&value) const |
| | Retrieve an association in hash-bucket order and advance the cursor.
|
| void | InitHashTable (UINT hashSize, BOOL allocate=TRUE) |
| | Replace bucket storage in an empty map without changing the association-pool configuration.
|
| virtual CRuntimeClass * | GetRuntimeClass () const |
| virtual | ~CObject () |
| | The base destructor does not perform additional cleanup.
|
| virtual void | Serialize (CArchive &archive) |
| | Do not serialise archive data.
|
| virtual void | AssertValid () const |
| | Do not validate object state.
|
| virtual void | Dump (CDumpContext &context) const |
| | Do not emit diagnostic output.
|
template<typename Value>
requires
std::is_class_v<Value>
class EarWordPointerRegistry< Value >
Map 16-bit handles to borrowed object pointers without deleting registered objects.
- Template Parameters
-
| Value | The registered class type. |