version 3.3

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

Iterator adapter for type casting. More...

#include <vrs/container/typecastiterator.h>

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

VRS::Iterator< TO > VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

 TypeCastIterator (const Iterator< FROM > *from)
virtual unsigned int size () const
 Returns the number of elements, this iterator can iterate over.
virtual TO get (unsigned int index) const
 Returns the i-th element of the elements described by this iterator.
virtual const TransactionNolastTransactionNo () const
 VRS_TYPEINFO (TypeCastIterator, Iterator< TO >)
 VRS_SERIALIZABLE (TypeCastIterator)

Protected Member Functions

 TypeCastIterator ()


Detailed Description

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

Iterator adapter for type casting.

Constructor & Destructor Documentation

template<typename TO, typename FROM>
VRS::TypeCastIterator< TO, FROM >::TypeCastIterator ( const Iterator< FROM > *  from  )  [inline]

This iterator adapter can be used to cast the elements of the "from" iterator (which are of type "FROM") to the new type "TO".

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


Member Function Documentation

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

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

Implements VRS::Iterator< TO >.

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

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

Implements VRS::Iterator< TO >.

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

Reimplemented from VRS::SharedObj.

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

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


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

Generated on Sat May 18 06:00:23 2013 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact