CMS 3D CMS Logo

Public Member Functions | Private Attributes

ora::STLContainerIteratorHandler Class Reference

#include <STLContainerHandler.h>

Inheritance diagram for ora::STLContainerIteratorHandler:
ora::IArrayIteratorHandler

List of all members.

Public Member Functions

void increment ()
 Increments itself.
void * object ()
 Returns the current object.
Reflex::Type & returnType ()
 Returns the return type of the iterator dereference method.
 STLContainerIteratorHandler (const Reflex::Environ< long > &collEnv, Reflex::CollFuncTable &collProxy, const Reflex::Type &iteratorReturnType)
 Constructor.
 ~STLContainerIteratorHandler ()
 Destructor.

Private Attributes

Reflex::Environ< long > m_collEnv
 Structure containing parameters of the collection instance.
Reflex::CollFuncTable & m_collProxy
 Proxy of the generic collection.
void * m_currentElement
 Current element object pointer.
Reflex::Type m_returnType
 The return type of the iterator dereference method.

Detailed Description

Definition at line 13 of file STLContainerHandler.h.


Constructor & Destructor Documentation

ora::STLContainerIteratorHandler::STLContainerIteratorHandler ( const Reflex::Environ< long > &  collEnv,
Reflex::CollFuncTable &  collProxy,
const Reflex::Type &  iteratorReturnType 
)

Constructor.

Definition at line 7 of file STLContainerHandler.cc.

References m_collEnv, m_collProxy, and m_currentElement.

                                                                                                     :
  m_returnType(iteratorReturnType),
  m_collEnv(collEnv),
  m_collProxy(collProxy),
  m_currentElement(0){

  // retrieve the first element
  m_currentElement = m_collProxy.first_func(&m_collEnv);
}
ora::STLContainerIteratorHandler::~STLContainerIteratorHandler ( )

Destructor.

Definition at line 19 of file STLContainerHandler.cc.

{}

Member Function Documentation

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

Increments itself.

Implements ora::IArrayIteratorHandler.

Definition at line 22 of file STLContainerHandler.cc.

                                         {
  // this is required! It sets the number of memory slots (of size sizeof(Class)) to be used for the step
  m_collEnv.fIdx = 1;
  m_currentElement = m_collProxy.next_func(&m_collEnv);
}
void * ora::STLContainerIteratorHandler::object ( ) [virtual]

Returns the current object.

Implements ora::IArrayIteratorHandler.

Definition at line 29 of file STLContainerHandler.cc.

{
  return m_currentElement;
}
Reflex::Type & ora::STLContainerIteratorHandler::returnType ( ) [virtual]

Returns the return type of the iterator dereference method.

Implements ora::IArrayIteratorHandler.

Definition at line 36 of file STLContainerHandler.cc.

{
  return m_returnType;
}

Member Data Documentation

Reflex::Environ<long> ora::STLContainerIteratorHandler::m_collEnv [private]

Structure containing parameters of the collection instance.

Definition at line 38 of file STLContainerHandler.h.

Referenced by STLContainerIteratorHandler().

Reflex::CollFuncTable& ora::STLContainerIteratorHandler::m_collProxy [private]

Proxy of the generic collection.

Definition at line 41 of file STLContainerHandler.h.

Referenced by STLContainerIteratorHandler().

Current element object pointer.

Definition at line 44 of file STLContainerHandler.h.

Referenced by STLContainerIteratorHandler().

The return type of the iterator dereference method.

Definition at line 35 of file STLContainerHandler.h.