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

Component that drops incoming addressed messages that are not destined for a local node. More...

Inheritance diagram for openlcb::LocalMessageFilter:
FlowInterface< Buffer< GenMessage > > Destructable

Public Member Functions

 LocalMessageFilter (If *iface)
 
void send (Buffer< GenMessage > *b, unsigned prio) override
 
- Public Member Functions inherited from FlowInterface< Buffer< GenMessage > >
virtual Poolpool ()
 
virtual void send (Buffer< GenMessage > *message, unsigned priority=UINT_MAX)=0
 Entry point to the flow.
 
virtual Buffer< GenMessage > * type_helper ()
 This function is never user in the code, but GDB can use it to infer the correct message types.
 
Buffer< GenMessage > * 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

Ififace_
 

Additional Inherited Members

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

Detailed Description

Component that drops incoming addressed messages that are not destined for a local node.

Definition at line 155 of file IfTcp.cxx.

Constructor & Destructor Documentation

◆ LocalMessageFilter()

openlcb::LocalMessageFilter::LocalMessageFilter ( If iface)
inline

Definition at line 158 of file IfTcp.cxx.

Member Function Documentation

◆ send()

void openlcb::LocalMessageFilter::send ( Buffer< GenMessage > *  b,
unsigned  prio 
)
inlineoverride

Definition at line 163 of file IfTcp.cxx.

Member Data Documentation

◆ iface_

If* openlcb::LocalMessageFilter::iface_
private

Definition at line 183 of file IfTcp.cxx.


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