|
blockfactory
0.8
A framework for wrapping algorithms for dataflow programming
|
Class that stores port properties. More...
#include <Port.h>
Class that stores port properties.
Ports are virtual entities associated to blocks, and they provide the interface between a block and a signal, carrying the required information.
Classes | |
| struct | Info |
| A container of port information. More... | |
| struct | Size |
| Contained of size-related properties of ports. More... | |
Public Types | |
| enum | DataType { DataType::DOUBLE, DataType::SINGLE, DataType::INT8, DataType::UINT8, DataType::INT16, DataType::UINT16, DataType::INT32, DataType::UINT32, DataType::BOOLEAN } |
| Defines allowed port data types. More... | |
| using | Index = size_t |
| The 0-based index of a port. More... | |
| using | Dimensions = std::vector< int > |
Public Member Functions | |
| virtual | ~Port ()=0 |
Static Public Attributes | |
| static const int | DynamicSize = -1 |
| Identifier of a port with dynamic size. More... | |
| using blockfactory::core::Port::Dimensions = std::vector<int> |
Specifies the dimensions of a port. Only 1D and 2D ports (and hence signals) are currently supported
| using blockfactory::core::Port::Index = size_t |
The 0-based index of a port.
|
strong |
Defines allowed port data types.
The port data type specifies which kind of core::Signal object can be plugged into a port.
DOUBLE is fully implemented. | Enumerator | |
|---|---|
| DOUBLE | |
| SINGLE | |
| INT8 | |
| UINT8 | |
| INT16 | |
| UINT16 | |
| INT32 | |
| UINT32 | |
| BOOLEAN | |
|
pure virtual |
|
static |
Identifier of a port with dynamic size.
This usually applied when a port is initialized without knowing its dimesions, and it might happen before the signal-size propagation by the engine.