#include <CArrayHandler.h>
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. |
Definition at line 10 of file CArrayHandler.h.
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 | ( | ) |
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; }
const void* ora::CArrayIteratorHandler::m_currentElement [private] |
Current element object pointer.
Definition at line 33 of file CArrayHandler.h.
Reflex::Type ora::CArrayIteratorHandler::m_returnType [private] |
The return type of the iterator dereference method.
Definition at line 30 of file CArrayHandler.h.