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

Public Member Functions | |
| GuardedCastIterator (Iterator< SO< FROM > > *from) | |
| virtual unsigned int | size () const |
| Returns the number of elements, this iterator can iterate over. | |
| virtual SO< TO > | get (unsigned int index) const |
| Returns the i-th element of the elements described by this iterator. | |
| virtual const TransactionNo & | lastTransactionNo () const |
| VRS_TYPEINFO (GuardedCastIterator, Iterator< SO< TO > >) | |
| VRS_SERIALIZABLE (GuardedCastIterator) | |
Protected Member Functions | |
| GuardedCastIterator () | |
| VRS::GuardedCastIterator< TO, FROM >::GuardedCastIterator | ( | Iterator< SO< FROM > > * | from | ) | [inline] |
This iterator adapter can be used to cast the elements of the "from" iterator (which are of type "SO<FROM>") to the new type "SO<TO>". The elements of "from" may be NULL or pointer to objects of class TO. If they point to objects that are not objects of class TO, an assertion is caused.
| VRS::GuardedCastIterator< TO, FROM >::GuardedCastIterator | ( | ) | [inline, protected] |
| virtual unsigned int VRS::GuardedCastIterator< TO, FROM >::size | ( | ) | const [inline, virtual] |
| virtual SO<TO> VRS::GuardedCastIterator< TO, FROM >::get | ( | unsigned int | i | ) | const [inline, virtual] |
| virtual const TransactionNo& VRS::GuardedCastIterator< TO, FROM >::lastTransactionNo | ( | ) | const [inline, virtual] |
Reimplemented from VRS::SharedObj.
| VRS::GuardedCastIterator< TO, FROM >::VRS_TYPEINFO | ( | GuardedCastIterator< TO, FROM > | , | |
| Iterator< SO< TO > > | ||||
| ) |
| VRS::GuardedCastIterator< TO, FROM >::VRS_SERIALIZABLE | ( | GuardedCastIterator< TO, FROM > | ) |