CMS 3D CMS Logo

Public Member Functions | Private Attributes

ora::CArrayIteratorHandler Class Reference

#include <CArrayHandler.h>

Inheritance diagram for ora::CArrayIteratorHandler:
ora::IArrayIteratorHandler

List of all members.

Public Member Functions

 CArrayIteratorHandler (const void *startAddress, const Reflex::Type &iteratorReturnType)
 Constructor.
void increment ()
 Increments itself.
void * object ()
 Returns the current object.
Reflex::Type & returnType ()
 Returns the return type of the iterator dereference method.
 ~CArrayIteratorHandler ()
 Destructor.

Private Attributes

const void * m_currentElement
 Current element object pointer.
Reflex::Type m_returnType
 The return type of the iterator dereference method.

Detailed Description

Definition at line 10 of file CArrayHandler.h.


Constructor & Destructor Documentation

ora::CArrayIteratorHandler::CArrayIteratorHandler ( const void *  startAddress,
const Reflex::Type &  iteratorReturnType 
)

Constructor.

Definition at line 6 of file CArrayHandler.cc.

                                                                                         :
  m_returnType(iteratorReturnType),
  m_currentElement(startAddress){

}
ora::CArrayIteratorHandler::~CArrayIteratorHandler ( )

Destructor.

Definition at line 13 of file CArrayHandler.cc.

{}

Member Function Documentation

void ora::CArrayIteratorHandler::increment ( ) [virtual]

Increments itself.

Implements ora::IArrayIteratorHandler.

Definition at line 16 of file CArrayHandler.cc.

{
  m_currentElement = static_cast< const char* >( m_currentElement) + m_returnType.SizeOf();
}
void * ora::CArrayIteratorHandler::object ( ) [virtual]

Returns the current object.

Implements ora::IArrayIteratorHandler.

Definition at line 22 of file CArrayHandler.cc.

{
  return const_cast<void*>(m_currentElement);
}
Reflex::Type & ora::CArrayIteratorHandler::returnType ( ) [virtual]

Returns the return type of the iterator dereference method.

Implements ora::IArrayIteratorHandler.

Definition at line 28 of file CArrayHandler.cc.

{
  return m_returnType;
}

Member Data Documentation

Current element object pointer.

Definition at line 33 of file CArrayHandler.h.

The return type of the iterator dereference method.

Definition at line 30 of file CArrayHandler.h.