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

Linked list entry for all registered consist clients for a given train node. More...

#include <TractionTrain.hxx>

Inheritance diagram for openlcb::ConsistEntry:
QMember

Public Member Functions

 ConsistEntry (NodeID s, uint8_t flags)
 Creates a new consist entry storage.
 
NodeID get_slave () const
 
uint8_t get_flags () const
 
void set_flags (uint8_t new_flags)
 Overrides the stored flags.
 
- Public Member Functions inherited from QMember
void init ()
 Initiailize a QMember, in place of a public placement construction.
 

Private Attributes

uint64_t payload
 Data contents.
 

Additional Inherited Members

- Protected Member Functions inherited from QMember
 QMember ()
 Constructor.
 
 ~QMember ()
 Destructor.
 
- Protected Attributes inherited from QMember
QMembernext
 pointer to the next member in the queue
 

Detailed Description

Linked list entry for all registered consist clients for a given train node.

Definition at line 133 of file TractionTrain.hxx.

Constructor & Destructor Documentation

◆ ConsistEntry()

openlcb::ConsistEntry::ConsistEntry ( NodeID  s,
uint8_t  flags 
)
inline

Creates a new consist entry storage.

Parameters
sthe stored node ID
flagsthe stored flag byte

Definition at line 138 of file TractionTrain.hxx.

Member Function Documentation

◆ get_flags()

uint8_t openlcb::ConsistEntry::get_flags ( ) const
inline
Returns
the stored flags byte.

Definition at line 148 of file TractionTrain.hxx.

◆ get_slave()

NodeID openlcb::ConsistEntry::get_slave ( ) const
inline
Returns
the stored Node ID.

Definition at line 143 of file TractionTrain.hxx.

◆ set_flags()

void openlcb::ConsistEntry::set_flags ( uint8_t  new_flags)
inline

Overrides the stored flags.

Parameters
new_flagsthe new value of the flags byte.

Definition at line 154 of file TractionTrain.hxx.

Member Data Documentation

◆ payload

uint64_t openlcb::ConsistEntry::payload
private

Data contents.

Definition at line 162 of file TractionTrain.hxx.


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