OpenTTD Source 20260304-master-g1baaa74679
DumpTarget::KnownStructKey Struct Reference

Used as a key into map of known object instances. More...

#include <dbg_helpers.h>

Public Member Functions

 KnownStructKey (size_t type_id, const void *ptr)
 Create the key.
bool operator< (const KnownStructKey &other) const

Data Fields

size_t type_id
 Unique identifier of the type.
const void * ptr
 Pointer to the structure.

Detailed Description

Used as a key into map of known object instances.

Definition at line 131 of file dbg_helpers.h.

Constructor & Destructor Documentation

◆ KnownStructKey()

DumpTarget::KnownStructKey::KnownStructKey ( size_t type_id,
const void * ptr )
inline

Create the key.

Parameters
type_idUnique type identifier.
ptrThe structure.

Definition at line 140 of file dbg_helpers.h.

References ptr, and type_id.

Member Function Documentation

◆ operator<()

bool DumpTarget::KnownStructKey::operator< ( const KnownStructKey & other) const
inline

Definition at line 142 of file dbg_helpers.h.

Field Documentation

◆ ptr

const void* DumpTarget::KnownStructKey::ptr

Pointer to the structure.

Definition at line 133 of file dbg_helpers.h.

Referenced by KnownStructKey().

◆ type_id

size_t DumpTarget::KnownStructKey::type_id

Unique identifier of the type.

Definition at line 132 of file dbg_helpers.h.

Referenced by KnownStructKey().


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