9 #ifndef BLOCKFACTORY_CORE_PARAMETER_H 10 #define BLOCKFACTORY_CORE_PARAMETER_H 17 class ParameterMetadata;
78 const unsigned& ParamIndex,
81 const std::string& ParamName = {});
83 ParameterMetadata(ParameterMetadata&& paramMD);
85 ParameterMetadata& operator=(
const ParameterMetadata& paramMD);
86 ParameterMetadata& operator=(ParameterMetadata&& paramMD);
87 bool operator==(
const ParameterMetadata& rhs)
const;
88 inline bool operator!=(
const ParameterMetadata& rhs)
const {
return !(*
this == rhs); }
101 template <
typename T>
119 , m_valueScalar(value)
124 , m_valueVector(valueVec)
134 #endif // BLOCKFACTORY_CORE_PARAMETER_H ParamVector m_valueVector
Definition: Parameter.h:109
Class for storing a generic parameter.
Definition: Parameter.h:19
ParamVector getVectorParameter() const
Definition: Parameter.h:130
Parameter(const T &value, const blockfactory::core::ParameterMetadata &md)
Definition: Parameter.h:117
std::vector< T > ParamVector
Definition: Parameter.h:105
blockfactory::core::ParameterMetadata m_metadata
Definition: Parameter.h:110
blockfactory::core::ParameterMetadata getMetadata() const
Definition: Parameter.h:131
Parameter(const ParamVector &valueVec, const blockfactory::core::ParameterMetadata &md)
Definition: Parameter.h:122
ParameterType
Defines the types of parameters supported by core::Parameter.
Definition: Parameter.h:28
T getScalarParameter() const
Definition: Parameter.h:129
bool isScalar() const
Definition: Parameter.h:128
T m_valueScalar
Definition: Parameter.h:108
bool m_isScalar
Definition: Parameter.h:107