Map 32-bit event identifiers to 16-bit channel handles using pooled associations.
More...
#include <registry.h>
|
| | EarActiveEventRegistry (int blockSize=10) |
| | Initialise an empty registry with 17 hash buckets allocated on first insertion.
|
| | ~EarActiveEventRegistry () override |
| | Release hash buckets and association pools without changing external events.
|
| BOOL | IsEmpty () const |
| BOOL | Lookup (DWORD key, WORD &value) const |
| | Look up a channel handle without changing the output on a missing key.
|
| void | SetAt (DWORD key, WORD value) |
| | Insert or replace a channel handle.
|
| BOOL | RemoveKey (DWORD key) |
| | Remove an association without stopping the event.
|
| 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.
|
Map 32-bit event identifiers to 16-bit channel handles using pooled associations.
◆ EarActiveEventRegistry()
| EarActiveEventRegistry::EarActiveEventRegistry |
( |
int | blockSize = 10 | ) |
|
|
explicit |
Initialise an empty registry with 17 hash buckets allocated on first insertion.
- Parameters
-
| blockSize | The positive number of associations allocated per pool block. |
◆ ~EarActiveEventRegistry()
| EarActiveEventRegistry::~EarActiveEventRegistry |
( |
| ) |
|
|
override |
Release hash buckets and association pools without changing external events.
◆ IsEmpty()
| BOOL EarActiveEventRegistry::IsEmpty |
( |
| ) |
const |
|
inline |
- Returns
- Whether the registry has no events.
- Ghidra address:
- EAR: 0x10006670
◆ Lookup()
| BOOL EarActiveEventRegistry::Lookup |
( |
DWORD | key, |
|
|
WORD & | value ) const |
Look up a channel handle without changing the output on a missing key.
- Parameters
-
| key | The 32-bit event identifier. |
| value | The output channel handle. |
- Returns
- TRUE when the identifier exists; otherwise FALSE.
◆ SetAt()
| void EarActiveEventRegistry::SetAt |
( |
DWORD | key, |
|
|
WORD | value ) |
Insert or replace a channel handle.
- Parameters
-
| key | The 32-bit event identifier. |
| value | The channel handle to store by value. |
◆ RemoveKey()
| BOOL EarActiveEventRegistry::RemoveKey |
( |
DWORD | key | ) |
|
Remove an association without stopping the event.
- Parameters
-
| key | The 32-bit event identifier. |
- Returns
- TRUE when an association was removed; otherwise FALSE.
The documentation for this class was generated from the following file: