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 (void *address, TVirtualCollectionProxy &collProxy, const edm::TypeWithDict &iteratorReturnType, size_t startElement)
 Constructor. More...
 
edm::TypeWithDictreturnType ()
 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

TVirtualCollectionProxy & m_collProxy
 Proxy of the generic collection. More...
 
void * m_currentElement
 Current element object pointer. More...
 
TGenericCollectionIterator * m_Iterators
 
edm::TypeWithDict m_returnType
 The return type of the iterator dereference method. More...
 
size_t m_startElement
 

Detailed Description

Definition at line 15 of file PVectorHandler.h.

Constructor & Destructor Documentation

ora::PVectorIteratorHandler::PVectorIteratorHandler ( void *  address,
TVirtualCollectionProxy &  collProxy,
const edm::TypeWithDict iteratorReturnType,
size_t  startElement 
)

Constructor.

Definition at line 12 of file PVectorHandler.cc.

References i, increment(), m_currentElement, and m_Iterators.

15  :
16  m_returnType(iteratorReturnType),
17  m_collProxy(collProxy),
19  m_Iterators(TGenericCollectionIterator::New(address, &collProxy)),
20  m_startElement(startElement){
21 
22  m_currentElement = m_Iterators->Next();
23 
24  if(startElement){
25  size_t i = 0;
26  while(i<startElement){
27  increment();
28  i++;
29  }
30  }
31 }
int i
Definition: DBlmapReader.cc:9
edm::TypeWithDict m_returnType
The return type of the iterator dereference method.
TVirtualCollectionProxy & m_collProxy
Proxy of the generic collection.
void increment()
Increments itself.
TGenericCollectionIterator * m_Iterators
void * m_currentElement
Current element object pointer.
ora::PVectorIteratorHandler::~PVectorIteratorHandler ( )
virtual

Destructor.

Definition at line 33 of file PVectorHandler.cc.

33  {
34 }

Member Function Documentation

void ora::PVectorIteratorHandler::increment ( )
virtual

Increments itself.

Implements ora::IArrayIteratorHandler.

Definition at line 37 of file PVectorHandler.cc.

Referenced by PVectorIteratorHandler().

37  {
38  m_currentElement = m_Iterators->Next();
39 }
TGenericCollectionIterator * m_Iterators
void * m_currentElement
Current element object pointer.
void * ora::PVectorIteratorHandler::object ( )
virtual
edm::TypeWithDict & ora::PVectorIteratorHandler::returnType ( )
virtual

Returns the return type of the iterator dereference method.

Implements ora::IArrayIteratorHandler.

Definition at line 47 of file PVectorHandler.cc.

47  {
48  return m_returnType;
49 }
edm::TypeWithDict m_returnType
The return type of the iterator dereference method.

Member Data Documentation

TVirtualCollectionProxy& ora::PVectorIteratorHandler::m_collProxy
private

Proxy of the generic collection.

Definition at line 43 of file PVectorHandler.h.

void* ora::PVectorIteratorHandler::m_currentElement
private

Current element object pointer.

Definition at line 46 of file PVectorHandler.h.

Referenced by PVectorIteratorHandler().

TGenericCollectionIterator* ora::PVectorIteratorHandler::m_Iterators
private

Definition at line 49 of file PVectorHandler.h.

Referenced by PVectorIteratorHandler().

edm::TypeWithDict ora::PVectorIteratorHandler::m_returnType
private

The return type of the iterator dereference method.

Definition at line 40 of file PVectorHandler.h.

size_t ora::PVectorIteratorHandler::m_startElement
private

Definition at line 51 of file PVectorHandler.h.