3 #ifndef VISR_RBBL_INTERPOLATION_PARAMETER_HPP_INCLUDED 4 #define VISR_RBBL_INTERPOLATION_PARAMETER_HPP_INCLUDED 39 explicit InterpolationParameter(
IdType id, std::initializer_list<IndexType>
const & indices, std::initializer_list<WeightType>
const & weights );
45 void setId(
IdType newId );
47 IdType static constexpr cInvalidId = std::numeric_limits<IdType>::max();
49 IndexType static constexpr cInvalidIndex = std::numeric_limits<IndexType>::max();
51 std::size_t numberOfInterpolants()
const;
61 void setIndex( std::size_t idx,
IndexType newIndex );
65 void setIndices( std::initializer_list<IndexType>
const & newWeights );
67 void setWeight( std::size_t idx,
WeightType weight );
71 void setWeights( std::initializer_list<WeightType>
const & newWeights );
82 return lhs.
id() < rhs.
id();
88 using Base = std::set<InterpolationParameter>;
90 using std::set<InterpolationParameter>::set;
97 #endif // VISR_RBBL_INTERPOLATION_PARAMETER_HPP_INCLUDED Definition: interpolation_parameter.hpp:85
std::vector< IndexType > IndexContainer
Definition: interpolation_parameter.hpp:30
Definition: options.cpp:10
Definition: interpolation_parameter.hpp:24
IdType id() const
Definition: interpolation_parameter.cpp:56
std::vector< WeightType > WeightContainer
Definition: interpolation_parameter.hpp:31
bool operator<(InterpolationParameter const &lhs, InterpolationParameter const &rhs)
Definition: interpolation_parameter.hpp:80
float WeightType
Definition: interpolation_parameter.hpp:29
std::size_t IndexType
Definition: interpolation_parameter.hpp:28
std::size_t IdType
Definition: interpolation_parameter.hpp:27
std::set< InterpolationParameter > Base
Definition: interpolation_parameter.hpp:88