CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
ora::STLContainerIteratorHandler Class Reference

#include <STLContainerHandler.h>

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

Public Member Functions

void increment ()
 Increments itself. More...
 
void * object ()
 Returns the current object. More...
 
Reflex::Type & returnType ()
 Returns the return type of the iterator dereference method. More...
 
 STLContainerIteratorHandler (const Reflex::Environ< long > &collEnv, Reflex::CollFuncTable &collProxy, const Reflex::Type &iteratorReturnType)
 Constructor. More...
 
 ~STLContainerIteratorHandler ()
 Destructor. More...
 
- Public Member Functions inherited from ora::IArrayIteratorHandler
virtual ~IArrayIteratorHandler ()
 Destructor. More...
 

Private Attributes

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

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.

9  :
10  m_returnType(iteratorReturnType),
11  m_collEnv(collEnv),
12  m_collProxy(collProxy),
14 
15  // retrieve the first element
16  m_currentElement = m_collProxy.first_func(&m_collEnv);
17 }
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.
Reflex::Environ< long > m_collEnv
Structure containing parameters of the collection instance.
ora::STLContainerIteratorHandler::~STLContainerIteratorHandler ( )

Destructor.

Definition at line 19 of file STLContainerHandler.cc.

19 {}

Member Function Documentation

void ora::STLContainerIteratorHandler::increment ( )
virtual

Increments itself.

Implements ora::IArrayIteratorHandler.

Definition at line 22 of file STLContainerHandler.cc.

22  {
23  // this is required! It sets the number of memory slots (of size sizeof(Class)) to be used for the step
24  m_collEnv.fIdx = 1;
26 }
Reflex::CollFuncTable & m_collProxy
Proxy of the generic collection.
void * m_currentElement
Current element object pointer.
Reflex::Environ< long > m_collEnv
Structure containing parameters of the collection instance.
void * ora::STLContainerIteratorHandler::object ( )
virtual
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.

37 {
38  return m_returnType;
39 }
Reflex::Type m_returnType
The return type of the iterator dereference method.

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().

void* ora::STLContainerIteratorHandler::m_currentElement
private

Current element object pointer.

Definition at line 44 of file STLContainerHandler.h.

Referenced by STLContainerIteratorHandler().

Reflex::Type ora::STLContainerIteratorHandler::m_returnType
private

The return type of the iterator dereference method.

Definition at line 35 of file STLContainerHandler.h.