Embedded Multicore Building Blocks V1.0.0
|
Constant source process template. More...
#include <network.h>
Public Types | |
typedef Outputs< OUTPUT_TYPE_LIST > | OutputsType |
Output port type list. More... | |
Public Member Functions | |
ConstantSource (Network &network, Type value) | |
Constructs a ConstantSource with a value to emit on each token. More... | |
ConstantSource (Network &network, Type value, embb::mtapi::ExecutionPolicy const &policy) | |
Constructs a ConstantSource with a value to emit on each token. More... | |
virtual bool | HasInputs () const |
virtual bool | HasOutputs () const |
OutputsType & | GetOutputs () |
template<int Index> | |
OutputsType::Types< Index >::Result & | GetOutput () |
template<typename T > | |
void | operator>> (T &target) |
Connects output port 0 to input port 0 of target . More... | |
Constant source process template.
A constant source has one output port and emits a constant value given at construction time for each token.
Type | The type of output port 0. |
typedef Outputs<OUTPUT_TYPE_LIST> embb::dataflow::Network::ConstantSource< Type >::OutputsType |
Output port type list.
embb::dataflow::Network::ConstantSource< Type >::ConstantSource | ( | Network & | network, |
Type | value | ||
) |
Constructs a ConstantSource with a value to emit on each token.
network | The network this node is going to be part of. |
value | The value to emit. |
embb::dataflow::Network::ConstantSource< Type >::ConstantSource | ( | Network & | network, |
Type | value, | ||
embb::mtapi::ExecutionPolicy const & | policy | ||
) |
Constructs a ConstantSource with a value to emit on each token.
network | The network this node is going to be part of. |
value | The value to emit. |
policy | The execution policy of the process. |
|
virtual |
false
.
|
virtual |
true
. OutputsType& embb::dataflow::Network::ConstantSource< Type >::GetOutputs | ( | ) |
OutputsType::Types<Index>::Result& embb::dataflow::Network::ConstantSource< Type >::GetOutput | ( | ) |
void embb::dataflow::Network::ConstantSource< Type >::operator>> | ( | T & | target | ) |
Connects output port 0 to input port 0 of target
.
target | Process to connect to. |
T | Type of target process. |