3 #ifndef VISR_PML_INDEXED_STRING_PARAMETER_HPP_INCLUDED 4 #define VISR_PML_INDEXED_STRING_PARAMETER_HPP_INCLUDED 26 template<
typename ValueType>
struct IndexedValueParameterType {};
28 template<>
struct IndexedValueParameterType<std::vector<float> >
30 template<>
struct IndexedValueParameterType<std::vector<double> >
32 template<>
struct IndexedValueParameterType<std::string >
41 template<
typename IndexType,
typename ValueType >
43 public std::pair< std::size_t, std::string >,
44 public TypedParameterBase< IndexedValueParameter<IndexType, ValueType>, EmptyParameterConfig, IndexedValueParameterType<ValueType>::ptype() >
47 using DataType = std::pair<IndexType, ValueType >;
64 ValueType
const &
value( )
const 98 #endif // VISR_PML_INDEXED_STRING_PARAMETER_HPP_INCLUDED void setValue(ValueType const &value)
Definition: indexed_value_parameter.hpp:75
uint64_t ParameterType
Definition: parameter_type.hpp:13
IndexType index() const
Definition: indexed_value_parameter.hpp:59
void setIndex(IndexType index)
Definition: indexed_value_parameter.hpp:70
static const constexpr ParameterType staticType()
Definition: typed_parameter_base.hpp:41
constexpr uint64_t compileTimeHashFNV1(const char *s)
Definition: compile_time_hash_fnv1.hpp:25
Definition: options.cpp:10
Definition: parameter_factory.hpp:20
Definition: parameter_config_base.hpp:22
ValueType const & value() const
Definition: indexed_value_parameter.hpp:64
#define DEFINE_PARAMETER_TYPE(ParameterClassType, ParameterId, ParameterConfigType)
Definition: parameter_type.hpp:60
Definition: indexed_value_parameter.hpp:42
std::pair< IndexType, ValueType > DataType
Definition: indexed_value_parameter.hpp:47
Definition: empty_parameter_config.hpp:21