version 3.3

VRS::GuardedCastIterator< TO, FROM > Class Template Reference

Iterator adapter for type casting. More...

#include <vrs/container/guardedcastiterator.h>

Inheritance diagram for VRS::GuardedCastIterator< TO, FROM >:

VRS::Iterator< T > VRS::SharedObj VRS::Visitable

List of all members.

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 TransactionNolastTransactionNo () const
 VRS_TYPEINFO (GuardedCastIterator, Iterator< SO< TO > >)
 VRS_SERIALIZABLE (GuardedCastIterator)

Protected Member Functions

 GuardedCastIterator ()


Detailed Description

template<typename TO, typename FROM>
class VRS::GuardedCastIterator< TO, FROM >

Iterator adapter for type casting.

Constructor & Destructor Documentation

template<typename TO, typename FROM>
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.

template<typename TO, typename FROM>
VRS::GuardedCastIterator< TO, FROM >::GuardedCastIterator (  )  [inline, protected]


Member Function Documentation

template<typename TO, typename FROM>
virtual unsigned int VRS::GuardedCastIterator< TO, FROM >::size (  )  const [inline, virtual]

Returns the number of elements, this iterator can iterate over.

Implements VRS::Iterator< T >.

template<typename TO, typename FROM>
virtual SO<TO> VRS::GuardedCastIterator< TO, FROM >::get ( unsigned int  i  )  const [inline, virtual]

Returns the i-th element of the elements described by this iterator.

Implements VRS::Iterator< T >.

template<typename TO, typename FROM>
virtual const TransactionNo& VRS::GuardedCastIterator< TO, FROM >::lastTransactionNo (  )  const [inline, virtual]

Reimplemented from VRS::SharedObj.

template<typename TO, typename FROM>
VRS::GuardedCastIterator< TO, FROM >::VRS_TYPEINFO ( GuardedCastIterator< TO, FROM >  ,
Iterator< SO< TO > >   
)

template<typename TO, typename FROM>
VRS::GuardedCastIterator< TO, FROM >::VRS_SERIALIZABLE ( GuardedCastIterator< TO, FROM >   ) 


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

Generated on Mon May 21 06:00:16 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact