OpenTTD Source 20261123-master-g1c55c72fd0
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.
constexpr auto operator<=> (const KnownStructKey &) const noexcept=default
 Compare with another instance of this class.

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 107 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 116 of file dbg_helpers.h.

References ptr, and type_id.

Referenced by operator<=>().

Member Function Documentation

◆ operator<=>()

auto DumpTarget::KnownStructKey::operator<=> ( const KnownStructKey & ) const
constexprdefaultnoexcept

Compare with another instance of this class.

Returns
The std::strong_ordering of the comparison.

References KnownStructKey().

Field Documentation

◆ ptr

const void* DumpTarget::KnownStructKey::ptr

Pointer to the structure.

Definition at line 109 of file dbg_helpers.h.

Referenced by KnownStructKey().

◆ type_id

size_t DumpTarget::KnownStructKey::type_id

Unique identifier of the type.

Definition at line 108 of file dbg_helpers.h.

Referenced by KnownStructKey().


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