| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/container/constantiterator.h>

Public Member Functions | |
| ConstantIterator (const T &value=T(), unsigned int size=0) | |
| void | setValue (const T &constantValue) |
| const T & | getValue () const |
| virtual unsigned int | size () const |
| Returns the number of elements, this iterator can iterate over. | |
| void | setSize (unsigned int size) |
| virtual T | get (unsigned int) const |
| See `Iterator'. | |
| VRS_TYPEINFO (ConstantIterator, Iterator< T >) | |
| VRS_SERIALIZABLE (ConstantIterator) | |
| VRS::ConstantIterator< T >::ConstantIterator | ( | const T & | value = T(), |
|
| unsigned int | size = 0 | |||
| ) | [inline] |
An `ConstantIterator' reports one constant value `n' times. The number, i.e., the size of the iterator is specified explicitly. This iterator is used to avoid large data sets of constant values.
| void VRS::ConstantIterator< T >::setValue | ( | const T & | constantValue | ) | [inline] |
| const T& VRS::ConstantIterator< T >::getValue | ( | ) | const [inline] |
Sets / gets the constant value used for the iterator `current()' method.
| virtual unsigned int VRS::ConstantIterator< T >::size | ( | ) | const [inline, virtual] |
| void VRS::ConstantIterator< T >::setSize | ( | unsigned int | size | ) | [inline] |
| virtual T VRS::ConstantIterator< T >::get | ( | unsigned int | ) | const [inline, virtual] |
| VRS::ConstantIterator< T >::VRS_TYPEINFO | ( | ConstantIterator< T > | , | |
| Iterator< T > | ||||
| ) |
| VRS::ConstantIterator< T >::VRS_SERIALIZABLE | ( | ConstantIterator< T > | ) |