Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
dcc::MockTrackIf Class Reference
Inheritance diagram for dcc::MockTrackIf:
FlowInterface< Buffer< dcc::Packet > >

Public Member Functions

 MOCK_METHOD2 (packet, void(const vector< uint8_t > &payload, uintptr_t feedback_key))
 
void send (Buffer< dcc::Packet > *b, unsigned prio) OVERRIDE
 Entry point to the flow.
 
- Public Member Functions inherited from FlowInterface< Buffer< dcc::Packet > >
virtual Poolpool ()
 
virtual Buffer< dcc::Packet > * type_helper ()
 This function is never user in the code, but GDB can use it to infer the correct message types.
 
Buffer< dcc::Packet > * 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.
 

Additional Inherited Members

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

Detailed Description

Definition at line 32 of file async_traction_test_helper.hxx.

Member Function Documentation

◆ send()

void dcc::MockTrackIf::send ( Buffer< dcc::Packet > *  message,
unsigned  priority 
)
inlinevirtual

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< dcc::Packet > >.

Definition at line 37 of file async_traction_test_helper.hxx.


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