3 #ifndef VISR_RBBL_FLOAT_SEQUENCE_HPP_INCLUDED 4 #define VISR_RBBL_FLOAT_SEQUENCE_HPP_INCLUDED 10 #include <initializer_list> 24 template<
typename ElementType>
38 explicit FloatSequence( ElementType val, std::size_t num = 1);
45 explicit FloatSequence( ElementType
const *
const val, std::size_t numValues );
51 explicit FloatSequence( std::initializer_list<ElementType>
const & val );
61 return mValues.size();
74 typename ContainerType::const_iterator
begin()
const 76 return mValues.begin();
79 typename ContainerType::const_iterator
end()
const 84 typename ContainerType::iterator
begin()
86 return mValues.begin();
89 typename ContainerType::iterator
end()
113 ElementType &
at( std::size_t idx )
115 return mValues.at( idx );
121 ElementType
const &
at( std::size_t idx )
const 123 return mValues.at( idx );
136 std::string toString( std::string
const & separator=std::string(
", ") )
const;
145 #endif // VISR_RBBL_FLOAT_SEQUENCE_HPP_INCLUDED ContainerType::iterator begin()
Definition: float_sequence.hpp:84
std::vector< ElementType > ContainerType
Definition: float_sequence.hpp:28
ContainerType::iterator end()
Definition: float_sequence.hpp:89
ElementType & at(std::size_t idx)
Definition: float_sequence.hpp:113
ContainerType::const_iterator begin() const
Definition: float_sequence.hpp:74
ElementType const & at(std::size_t idx) const
Definition: float_sequence.hpp:121
ContainerType::const_iterator end() const
Definition: float_sequence.hpp:79
Definition: options.cpp:10
ElementType const * values() const
Definition: float_sequence.hpp:69
ElementType const & operator[](std::size_t idx) const
Definition: float_sequence.hpp:105
std::size_t size() const
Definition: float_sequence.hpp:59
ElementType & operator[](std::size_t idx)
Definition: float_sequence.hpp:97
Definition: float_sequence.hpp:25
ElementType * values()
Definition: float_sequence.hpp:64