version 3.3

VRS::PackedColorIteratorBase< COLOR > Class Template Reference

This iterator stores the given color values in a more compact form, i.e., as 4 "unsigned char". More...

#include <vrs/container/packedcoloriterator.h>

Inheritance diagram for VRS::PackedColorIteratorBase< COLOR >:

VRS::Iterator< COLOR > VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

 VRS_TYPEINFO (PackedColorIteratorBase, Iterator< COLOR >)
 VRS_SERIALIZABLE (PackedColorIteratorBase)
 PackedColorIteratorBase (SO< Iterator< Color > > colors)
virtual unsigned int size () const
 Returns the number of elements, this iterator can iterate over.
virtual COLOR get (unsigned int i) const
 Returns the i-th element of the elements described by this iterator.

Protected Member Functions

 PackedColorIteratorBase ()


Detailed Description

template<typename COLOR>
class VRS::PackedColorIteratorBase< COLOR >

This iterator stores the given color values in a more compact form, i.e., as 4 "unsigned char".

This reduces the memory consumption by a factor of 8! NOTE: Due to some strange linker problems with VC-7.1 we made this class a template class with a dummy template parameter and implemented all methods inline; use this class with the provided typedef for PackedColorIterator...


Constructor & Destructor Documentation

template<typename COLOR>
VRS::PackedColorIteratorBase< COLOR >::PackedColorIteratorBase ( SO< Iterator< Color > >  colors  )  [inline]

template<typename COLOR>
VRS::PackedColorIteratorBase< COLOR >::PackedColorIteratorBase (  )  [inline, protected]


Member Function Documentation

template<typename COLOR>
VRS::PackedColorIteratorBase< COLOR >::VRS_TYPEINFO ( PackedColorIteratorBase< COLOR >  ,
Iterator< COLOR >   
)

template<typename COLOR>
VRS::PackedColorIteratorBase< COLOR >::VRS_SERIALIZABLE ( PackedColorIteratorBase< COLOR >   ) 

template<typename COLOR>
virtual unsigned int VRS::PackedColorIteratorBase< COLOR >::size ( void   )  const [inline, virtual]

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

Implements VRS::Iterator< COLOR >.

template<typename COLOR>
virtual COLOR VRS::PackedColorIteratorBase< COLOR >::get ( unsigned int  i  )  const [inline, virtual]

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

Implements VRS::Iterator< COLOR >.


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

Generated on Tue May 22 06:00:19 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact