Embedded Multicore Building Blocks V1.0.0
|
Represents a set of processes that are connected by communication channels. More...
#include <network.h>
Classes | |
class | ConstantSource |
Constant source process template. More... | |
class | In |
Input port class. More... | |
struct | Inputs |
Provides the input port types for a process. More... | |
class | Out |
Output port class. More... | |
struct | Outputs |
Provides the output port types for a process. More... | |
class | ParallelProcess |
Generic parallel process template. More... | |
class | Select |
Select process template. More... | |
class | SerialProcess |
Generic serial process template. More... | |
class | Sink |
Sink process template. More... | |
class | Source |
Source process template. More... | |
class | Switch |
Switch process template. More... | |
Public Member Functions | |
Network () | |
Constructs an empty network. More... | |
Network (int slices) | |
Constructs an empty network. More... | |
Network (embb::mtapi::ExecutionPolicy const &policy) | |
Constructs an empty network. More... | |
Network (int slices, embb::mtapi::ExecutionPolicy const &policy) | |
Constructs an empty network. More... | |
bool | IsValid () |
Checks whether the network is completely connected and free of cycles. More... | |
void | operator() () |
Executes the network until one of the the sources returns false . More... | |
Represents a set of processes that are connected by communication channels.
embb::dataflow::Network::Network | ( | ) |
Constructs an empty network.
|
explicit |
Constructs an empty network.
slices | Number of concurrent tokens allowed in the network. |
|
explicit |
Constructs an empty network.
policy | Default execution policy of the processes in the network. |
embb::dataflow::Network::Network | ( | int | slices, |
embb::mtapi::ExecutionPolicy const & | policy | ||
) |
Constructs an empty network.
slices | Number of concurrent tokens allowed in the network. |
policy | Default execution policy of the processes in the network. |
bool embb::dataflow::Network::IsValid | ( | ) |
Checks whether the network is completely connected and free of cycles.
true
if everything is in order, false
if not. void embb::dataflow::Network::operator() | ( | ) |
Executes the network until one of the the sources returns false
.