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::PVectorIteratorHandler Class Reference

#include <PVectorHandler.h>

Inheritance diagram for ora::PVectorIteratorHandler:
ora::IArrayIteratorHandler

Public Member Functions

void increment ()
 Increments itself. More...
 
void * object ()
 Returns the current object. More...
 
 PVectorIteratorHandler (const Reflex::Environ< long > &collEnv, Reflex::CollFuncTable &collProxy, const Reflex::Type &iteratorReturnType, size_t startElement)
 Constructor. More...
 
Reflex::Type & returnType ()
 Returns the return type of the iterator dereference method. More...
 
virtual ~PVectorIteratorHandler ()
 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...
 
size_t m_startElement
 

Detailed Description

Definition at line 13 of file PVectorHandler.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 7 of file PVectorHandler.cc.

References i, increment(), m_collEnv, m_collProxy, and m_currentElement.

10  :
11  m_returnType(iteratorReturnType),
12  m_collEnv(collEnv),
13  m_collProxy(collProxy),
15  m_startElement(startElement){
16  // retrieve the first element
17  m_currentElement = m_collProxy.first_func(&m_collEnv);
18 
19  if(startElement){
20  size_t i = 0;
21  while(i<startElement){
22  increment();
23  i++;
24  }
25  }
26 }
int i
Definition: DBlmapReader.cc:9
Reflex::Type m_returnType
The return type of the iterator dereference method.
Reflex::Environ< long > m_collEnv
Structure containing parameters of the collection instance.
Reflex::CollFuncTable & m_collProxy
Proxy of the generic collection.
void increment()
Increments itself.
void * m_currentElement
Current element object pointer.
ora::PVectorIteratorHandler::~PVectorIteratorHandler ( )
virtual

Destructor.

Definition at line 28 of file PVectorHandler.cc.

28  {
29 }

Member Function Documentation

void ora::PVectorIteratorHandler::increment ( )
virtual

Increments itself.

Implements ora::IArrayIteratorHandler.

Definition at line 32 of file PVectorHandler.cc.

Referenced by PVectorIteratorHandler().

32  {
33  // this is requiredd! It sets the number of memory slots (of size sizeof(Class)) to be used for the step
34  m_collEnv.fIdx = 1;
36 }
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.
void * ora::PVectorIteratorHandler::object ( )
virtual
Reflex::Type & ora::PVectorIteratorHandler::returnType ( )
virtual

Returns the return type of the iterator dereference method.

Implements ora::IArrayIteratorHandler.

Definition at line 44 of file PVectorHandler.cc.

44  {
45  return m_returnType;
46 }
Reflex::Type m_returnType
The return type of the iterator dereference method.

Member Data Documentation

Reflex::Environ<long> ora::PVectorIteratorHandler::m_collEnv
private

Structure containing parameters of the collection instance.

Definition at line 41 of file PVectorHandler.h.

Referenced by PVectorIteratorHandler().

Reflex::CollFuncTable& ora::PVectorIteratorHandler::m_collProxy
private

Proxy of the generic collection.

Definition at line 44 of file PVectorHandler.h.

Referenced by PVectorIteratorHandler().

void* ora::PVectorIteratorHandler::m_currentElement
private

Current element object pointer.

Definition at line 47 of file PVectorHandler.h.

Referenced by PVectorIteratorHandler().

Reflex::Type ora::PVectorIteratorHandler::m_returnType
private

The return type of the iterator dereference method.

Definition at line 38 of file PVectorHandler.h.

size_t ora::PVectorIteratorHandler::m_startElement
private

Definition at line 49 of file PVectorHandler.h.