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

Public Member Functions | |
| ReplicateIterator (const Iterator< T > *sourceItr, unsigned int n=1) | |
| virtual unsigned int | size () const |
| < then the replicate iterator for n=3 would produce | |
| virtual T | get (unsigned int index) const |
| virtual const TransactionNo & | lastTransactionNo () const |
| VRS_TYPEINFO (ReplicateIterator, Iterator< T >) | |
| VRS_SERIALIZABLE (ReplicateIterator) | |
Protected Member Functions | |
| ReplicateIterator () | |
| VRS::ReplicateIterator< T >::ReplicateIterator | ( | const Iterator< T > * | sourceItr, | |
| unsigned int | n = 1 | |||
| ) | [inline] |
An `ReplicateIterator' replicates each value object of the source iterator "n" times. Example: If the source iterator provides the sequence
| VRS::ReplicateIterator< T >::ReplicateIterator | ( | ) | [inline, protected] |
| virtual unsigned int VRS::ReplicateIterator< T >::size | ( | void | ) | const [inline, virtual] |
| virtual T VRS::ReplicateIterator< T >::get | ( | unsigned int | index | ) | const [inline, virtual] |
The size of an `ReplicateIterator' is n x size of the source iterator. See also base class `Iterator'.
Implements VRS::Iterator< T >.
| virtual const TransactionNo& VRS::ReplicateIterator< T >::lastTransactionNo | ( | ) | const [inline, virtual] |
Reimplemented from VRS::SharedObj.
| VRS::ReplicateIterator< T >::VRS_TYPEINFO | ( | ReplicateIterator< T > | , | |
| Iterator< T > | ||||
| ) |
| VRS::ReplicateIterator< T >::VRS_SERIALIZABLE | ( | ReplicateIterator< T > | ) |