Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
openlcb::AliasCache::PoolIdx Class Reference

Encapsulation of a pointer into the pool array. More...

Public Member Functions

 PoolIdx ()
 Constructor. Sets the pointer to invalid.
 
bool empty ()
 
Metadataderef (AliasCache *parent)
 Dereferences a pool index as if it was a pointer.
 

Public Attributes

uint16_t idx_
 Indexes the pool of the AliasCache.
 

Detailed Description

Encapsulation of a pointer into the pool array.

Definition at line 195 of file AliasCache.hxx.

Constructor & Destructor Documentation

◆ PoolIdx()

openlcb::AliasCache::PoolIdx::PoolIdx ( )
inline

Constructor. Sets the pointer to invalid.

Definition at line 199 of file AliasCache.hxx.

Member Function Documentation

◆ deref()

Metadata * openlcb::AliasCache::PoolIdx::deref ( AliasCache parent)
inline

Dereferences a pool index as if it was a pointer.

Parameters
parentthe AliasCache whose pool to index.
Returns
referenced Metadata pointer.

Definition at line 213 of file AliasCache.hxx.

◆ empty()

bool openlcb::AliasCache::PoolIdx::empty ( )
inline
Returns
true if this entry does not point anywhere.

Definition at line 204 of file AliasCache.hxx.

Member Data Documentation

◆ idx_

uint16_t openlcb::AliasCache::PoolIdx::idx_

Indexes the pool of the AliasCache.

Definition at line 209 of file AliasCache.hxx.


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