![]() |
VISR
0.11.1
Versatile Interactive Scene Renderer
|
#include <float_sequence.hpp>
Public Types | |
using | ContainerType = std::vector< ElementType > |
Public Member Functions | |
FloatSequence () | |
FloatSequence (ElementType val, std::size_t num=1) | |
FloatSequence (ElementType const *const val, std::size_t numValues) | |
FloatSequence (std::initializer_list< ElementType > const &val) | |
FloatSequence (std::string const &val) | |
std::size_t | size () const |
ElementType * | values () |
ElementType const * | values () const |
ContainerType::const_iterator | begin () const |
ContainerType::const_iterator | end () const |
ContainerType::iterator | begin () |
ContainerType::iterator | end () |
ElementType & | operator[] (std::size_t idx) |
ElementType const & | operator[] (std::size_t idx) const |
ElementType & | at (std::size_t idx) |
ElementType const & | at (std::size_t idx) const |
void | clear () |
std::string | toString (std::string const &separator=std::string(", ")) const |
Sequence of floating-point sequence that can be parsed from strings.
The | (floating-point) element type. Instantiations existfor float and double. |
using visr::rbbl::FloatSequence< ElementType >::ContainerType = std::vector<ElementType> |
visr::rbbl::FloatSequence< ElementType >::FloatSequence | ( | ) |
Default constructor, creates empty list.
|
explicit |
Construct sequence with num
repetitions of val
.
|
explicit |
Construct a float sequence out of a C-style array with a given number of elements.
val | Pointer to the data array. |
numValues | Number of data elements. |
|
explicit |
Construct a float sequence from a C++ initializer list.
val | initializer list (literal list of floating point values as { 0.0, 0.3, 0.4 } |
|
explicit |
Create an object from an a string representation.
val | A string containig a comma-separated sequence of float values or Matlab-style ranges "start:stride:end" |
Internal object which is called by the spirit parser to hold the results of parsing.
|
inline |
Element access with bounds checking
|
inline |
Element access with bounds checking, constant version
|
inline |
|
inline |
void visr::rbbl::FloatSequence< ElementType >::clear | ( | ) |
Reset the list to an empty state.
|
inline |
|
inline |
|
inline |
Element access without bounds checking
|
inline |
Element access without bounds checking, constant version
|
inline |
std::string visr::rbbl::FloatSequence< ElementType >::toString | ( | std::string const & | separator = std::string(", ") | ) | const |
Transform the contents ito a textual representation.
separator | The separator put in between adjacent values. |
|
inline |
|
inline |