coastline 0.0.4
Loading...
Searching...
No Matches
EarDwordPointerRegistry< Value > Class Template Reference

Map 32-bit handles through pointer keys without deleting registered objects. More...

#include <registry.h>

Inheritance diagram for EarDwordPointerRegistry< Value >:
Collaboration diagram for EarDwordPointerRegistry< Value >:

Public Member Functions

void SetDwordPointerMapValue (DWORD key, Value *value)
 Insert or replace a borrowed object pointer using the handle bits as the map key.
BOOL RemovePlaybackRegistryKey (DWORD key)
 Remove a mapping without releasing the registered object.
Public Member Functions inherited from CMapPtrToPtr
 CMapPtrToPtr (int blockSize=10)
 Initialise an empty map with 17 buckets allocated on first insertion.
 ~CMapPtrToPtr () override
 Release buckets and association pools without deleting key or value objects.
int GetCount () const
UINT GetHashTableSize () const
void SetAt (void *key, void *value)
 Insert or replace a pointer without releasing the previous value.
BOOL RemoveKey (void *key)
 Remove an association and release all storage when the map becomes empty.
void InitHashTable (UINT hashSize, BOOL allocate=TRUE)
 Replace bucket storage in an empty map without changing the association-pool configuration.
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

template<typename Value>
requires std::is_class_v<Value>
class EarDwordPointerRegistry< Value >

Map 32-bit handles through pointer keys without deleting registered objects.

Template Parameters
ValueThe registered class type.

Member Function Documentation

◆ SetDwordPointerMapValue()

template<typename Value>
void EarDwordPointerRegistry< Value >::SetDwordPointerMapValue ( DWORD key,
Value * value )
inline

Insert or replace a borrowed object pointer using the handle bits as the map key.

Parameters
keyThe 32-bit handle, widened without sign extension on 64-bit platforms.
valueThe borrowed object pointer, possibly null.
Ghidra address:
EAR: 0x100039e0

◆ RemovePlaybackRegistryKey()

template<typename Value>
BOOL EarDwordPointerRegistry< Value >::RemovePlaybackRegistryKey ( DWORD key)
inline

Remove a mapping without releasing the registered object.

Parameters
keyThe 32-bit handle supplied at registration.
Returns
TRUE when an entry was removed; otherwise FALSE.
Ghidra address:
EAR: 0x10009500

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