coastline 0.0.4
Loading...
Searching...
No Matches
EarActiveEventRegistry Class Reference

Map 32-bit event identifiers to 16-bit channel handles using pooled associations. More...

#include <registry.h>

Inheritance diagram for EarActiveEventRegistry:
Collaboration diagram for EarActiveEventRegistry:

Public Member Functions

 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.
Public Member Functions inherited from CObject
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.

Detailed Description

Map 32-bit event identifiers to 16-bit channel handles using pooled associations.

Constructor & Destructor Documentation

◆ EarActiveEventRegistry()

EarActiveEventRegistry::EarActiveEventRegistry ( int blockSize = 10)
explicit

Initialise an empty registry with 17 hash buckets allocated on first insertion.

Parameters
blockSizeThe positive number of associations allocated per pool block.

◆ ~EarActiveEventRegistry()

EarActiveEventRegistry::~EarActiveEventRegistry ( )
override

Release hash buckets and association pools without changing external events.

Member Function Documentation

◆ 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
keyThe 32-bit event identifier.
valueThe 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
keyThe 32-bit event identifier.
valueThe channel handle to store by value.

◆ RemoveKey()

BOOL EarActiveEventRegistry::RemoveKey ( DWORD key)

Remove an association without stopping the event.

Parameters
keyThe 32-bit event identifier.
Returns
TRUE when an association was removed; otherwise FALSE.

The documentation for this class was generated from the following file: