blockfactory
0.8
A framework for wrapping algorithms for dataflow programming
|
Class for storing a generic parameter. More...
#include <Parameter.h>
Class for storing a generic parameter.
A generic parameters can be either a scalar or a vector. Supported types are defined by the core::ParameterType enum. Use core::ParameterMetadata to set these information.
The | type of the container type. For vector parameters, T is the type of an element of the container. |
Public Member Functions | |
Parameter ()=delete | |
~Parameter ()=default | |
Parameter (const T &value, const blockfactory::core::ParameterMetadata &md) | |
Parameter (const ParamVector &valueVec, const blockfactory::core::ParameterMetadata &md) | |
bool | isScalar () const |
T | getScalarParameter () const |
ParamVector | getVectorParameter () const |
blockfactory::core::ParameterMetadata | getMetadata () const |
Private Types | |
using | ParamVector = std::vector< T > |
Private Attributes | |
bool | m_isScalar |
T | m_valueScalar |
ParamVector | m_valueVector |
blockfactory::core::ParameterMetadata | m_metadata |
|
private |
|
delete |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |