Tool Libs
UMIT-TIROL Institute of Automation and Control Engineering library collection
 
Loading...
Searching...
No Matches
SplitPush Struct Reference

stream splitter More...

#include <bufferutils.h>

Inherits Sink< Buffer< uint8_t > >.

Collaboration diagram for SplitPush:
[legend]

Public Member Functions

bool full () override
 check if sink is full
 
void push (Buffer< uint8_t > &&in) override
 move semantics does not check for space. guard by using 'if (!full) { ... }'
 
 SplitPush (Sink< Buffer< uint8_t > > &left, Sink< Buffer< uint8_t > > &right)
 set sinks for splitter
 
virtual void push (const Buffer< uint8_t > &t)
 copy semantics does not check for space. guard by using 'if (!full) { ... }'
 
void trypush (Buffer< uint8_t > &&t)
 use this if you don't care if it's going to be successful. data gets discarded if sink is full.
 

Detailed Description

stream splitter

pushes data out to two different sinks when pushed into for data going the other direction, refer to SplitPull


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