Tool Libs
UMIT-TIROL Institute of Automation and Control Engineering library collection
 
Loading...
Searching...
No Matches
Source< T > Struct Template Referenceabstract

generic object source, i.e. More...

#include <streams.h>

Inherited by Queue< Transaction >, Queue< Operation >, Queue< Message >, Queue< struct can_frame >, Queue< CAN::Open::SDO >, Queue< I2C::Request >, Queue< Buffer< uint8_t > >, Queue< Frame >, Queue< REQ >, Queue< SPI::Request >, Queue< Schedule::Schedulable * >, DevNull< T >, and Queue< T >.

Public Member Functions

virtual bool empty ()=0
 check if source is empty
 
virtual T pop ()=0
 pull object from source does not check for data. guard by using 'if (!empty) { ... }'
 

Detailed Description

template<typename T>
struct Source< T >

generic object source, i.e.

generator of objects

can often be implemented nicely by checking for / creating objects into a queue on the empty() call and handing them out in the pop()


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