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

Interesting information about a given cache entry. More...

Public Member Functions

void set_node_id (NodeID id)
 Sets the node ID field.
 
NodeID get_node_id ()
 

Public Attributes

uint32_t nodeIdLow_ = 0
 OpenLCB Node ID low 32 bits.
 
uint16_t nodeIdHigh_ = 0
 OpenLCB Node ID high 16 bits.
 
NodeAlias alias_ = 0
 OpenLCB-CAN alias.
 
PoolIdx newer_
 Index of next-newer entry according to the LRU linked list.
 
PoolIdx older_
 Index of next-older entry according to the LRU linked list.
 

Detailed Description

Interesting information about a given cache entry.

Definition at line 221 of file AliasCache.hxx.

Member Function Documentation

◆ get_node_id()

NodeID openlcb::AliasCache::Metadata::get_node_id ( )
inline
Returns
the node ID field.

Definition at line 232 of file AliasCache.hxx.

◆ set_node_id()

void openlcb::AliasCache::Metadata::set_node_id ( NodeID  id)
inline

Sets the node ID field.

Parameters
idthe node ID to set.

Definition at line 225 of file AliasCache.hxx.

Member Data Documentation

◆ alias_

NodeAlias openlcb::AliasCache::Metadata::alias_ = 0

OpenLCB-CAN alias.

Definition at line 245 of file AliasCache.hxx.

◆ newer_

PoolIdx openlcb::AliasCache::Metadata::newer_

Index of next-newer entry according to the LRU linked list.

Definition at line 247 of file AliasCache.hxx.

◆ nodeIdHigh_

uint16_t openlcb::AliasCache::Metadata::nodeIdHigh_ = 0

OpenLCB Node ID high 16 bits.

Definition at line 243 of file AliasCache.hxx.

◆ nodeIdLow_

uint32_t openlcb::AliasCache::Metadata::nodeIdLow_ = 0

OpenLCB Node ID low 32 bits.

Definition at line 241 of file AliasCache.hxx.

◆ older_

PoolIdx openlcb::AliasCache::Metadata::older_

Index of next-older entry according to the LRU linked list.

Definition at line 249 of file AliasCache.hxx.


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