VISR  0.12.0
Versatile Interactive Scene Renderer
visr::rbbl::IndexSequence Class Reference

#include <index_sequence.hpp>

Public Types

using IndexType = std::size_t
 
using ContainerType = std::vector< IndexType >
 

Public Member Functions

 IndexSequence ()
 
 IndexSequence (std::initializer_list< IndexType > const &val)
 
 IndexSequence (std::string const &val)
 
std::size_t size () const
 
IndexTypevalues ()
 
IndexType const * values () const
 
ContainerType::const_iterator begin () const
 
ContainerType::const_iterator end () const
 
ContainerType::iterator begin ()
 
ContainerType::iterator end ()
 
IndexTypeoperator[] (std::size_t idx)
 
IndexType const & operator[] (std::size_t idx) const
 
IndexTypeat (std::size_t idx)
 
IndexType const & at (std::size_t idx) const
 
void clear ()
 

Member Typedef Documentation

Constructor & Destructor Documentation

visr::rbbl::IndexSequence::IndexSequence ( )

Default constructor, creates empty list.

visr::rbbl::IndexSequence::IndexSequence ( std::initializer_list< IndexType > const &  val)
visr::rbbl::IndexSequence::IndexSequence ( std::string const &  val)

Internal object which is called by the spirit parser to hold the results of parsing.

Member Function Documentation

IndexType& visr::rbbl::IndexSequence::at ( std::size_t  idx)
inline

Element access with bounds checking

IndexType const& visr::rbbl::IndexSequence::at ( std::size_t  idx) const
inline

Element access with bounds checking, constant version

ContainerType::const_iterator visr::rbbl::IndexSequence::begin ( ) const
inline
ContainerType::iterator visr::rbbl::IndexSequence::begin ( )
inline
void visr::rbbl::IndexSequence::clear ( )

Reset the list to an empty state.

ContainerType::const_iterator visr::rbbl::IndexSequence::end ( ) const
inline
ContainerType::iterator visr::rbbl::IndexSequence::end ( )
inline
IndexType& visr::rbbl::IndexSequence::operator[] ( std::size_t  idx)
inline

Element access without bounds checking

IndexType const& visr::rbbl::IndexSequence::operator[] ( std::size_t  idx) const
inline

Element access without bounds checking, constant version

std::size_t visr::rbbl::IndexSequence::size ( ) const
inline
IndexType* visr::rbbl::IndexSequence::values ( )
inline
IndexType const* visr::rbbl::IndexSequence::values ( ) const
inline

The documentation for this class was generated from the following files: