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

Listens to incoming CAN frames and handles alias conflicts. More...

Inheritance diagram for openlcb::AliasAllocator::ConflictHandler:
FlowInterface< Buffer< CanMessageData > >

Public Member Functions

 ConflictHandler (AliasAllocator *parent)
 
void send (Buffer< CanMessageData > *message, unsigned priority) override
 Entry point to the flow.
 
- Public Member Functions inherited from FlowInterface< Buffer< CanMessageData > >
virtual Poolpool ()
 
virtual Buffer< CanMessageData > * type_helper ()
 This function is never user in the code, but GDB can use it to infer the correct message types.
 
Buffer< CanMessageData > * alloc ()
 Synchronously allocates a message buffer from the pool of this flow.
 
void alloc_async (Executable *target)
 Asynchronously allocates a message buffer from the pool of this flow.
 

Private Attributes

AliasAllocatorparent_
 

Additional Inherited Members

- Public Types inherited from FlowInterface< Buffer< CanMessageData > >
typedef Buffer< CanMessageDatamessage_type
 Stores the message template type for external reference.
 
- Static Public Member Functions inherited from FlowInterface< Buffer< CanMessageData > >
static Buffer< CanMessageData > * cast_alloc (QMember *entry)
 Down casts and initializes an asynchronous allocation result to the appropriate flow's buffer type.
 

Detailed Description

Listens to incoming CAN frames and handles alias conflicts.

Definition at line 180 of file AliasAllocator.hxx.

Constructor & Destructor Documentation

◆ ConflictHandler()

openlcb::AliasAllocator::ConflictHandler::ConflictHandler ( AliasAllocator parent)
inline

Definition at line 183 of file AliasAllocator.hxx.

Member Function Documentation

◆ send()

void openlcb::AliasAllocator::ConflictHandler::send ( Buffer< CanMessageData > *  message,
unsigned  priority 
)
overridevirtual

Entry point to the flow.

Users of the flow should call this mehtod to send a buffer to the flow.

Parameters
messagebuffer to send to the flow
prioritywhich priority back the flow should process it. Lower numbers mean process earlier.

Implements FlowInterface< Buffer< CanMessageData > >.

Definition at line 345 of file AliasAllocator.cxx.

Member Data Documentation

◆ parent_

AliasAllocator* openlcb::AliasAllocator::ConflictHandler::parent_
private

Definition at line 189 of file AliasAllocator.hxx.


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