|
Open Model Railroad Network (OpenMRN)
|
Listens to incoming CAN frames and handles alias conflicts. More...
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 Pool * | pool () |
| 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 | |
| AliasAllocator * | parent_ |
Additional Inherited Members | |
Public Types inherited from FlowInterface< Buffer< CanMessageData > > | |
| typedef Buffer< CanMessageData > | message_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. | |
Listens to incoming CAN frames and handles alias conflicts.
Definition at line 180 of file AliasAllocator.hxx.
|
inline |
Definition at line 183 of file AliasAllocator.hxx.
|
overridevirtual |
Entry point to the flow.
Users of the flow should call this mehtod to send a buffer to the flow.
| message | buffer to send to the flow |
| priority | which priority back the flow should process it. Lower numbers mean process earlier. |
Implements FlowInterface< Buffer< CanMessageData > >.
Definition at line 345 of file AliasAllocator.cxx.
|
private |
Definition at line 189 of file AliasAllocator.hxx.