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...
 
edm::TypeWithDictreturnType ()
 Returns the return type of the iterator dereference method. More...
 
 STLContainerIteratorHandler (void *address, TVirtualCollectionProxy &collProxy, const edm::TypeWithDict &iteratorReturnType)
 Constructor. More...
 
 ~STLContainerIteratorHandler ()
 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...
 

Detailed Description

Definition at line 16 of file STLContainerHandler.h.

Constructor & Destructor Documentation

ora::STLContainerIteratorHandler::STLContainerIteratorHandler ( void *  address,
TVirtualCollectionProxy &  collProxy,
const edm::TypeWithDict iteratorReturnType 
)

Constructor.

Definition at line 9 of file STLContainerHandler.cc.

References m_currentElement, and m_Iterators.

11  :
12  m_returnType(iteratorReturnType),
13  m_collProxy(collProxy),
14  m_currentElement(nullptr),
15  m_Iterators(TGenericCollectionIterator::New(address, &collProxy))
16 {
17  m_currentElement = m_Iterators->Next();
18 }
edm::TypeWithDict m_returnType
The return type of the iterator dereference method.
TGenericCollectionIterator * m_Iterators
void * m_currentElement
Current element object pointer.
TVirtualCollectionProxy & m_collProxy
Proxy of the generic collection.
ora::STLContainerIteratorHandler::~STLContainerIteratorHandler ( )

Destructor.

Definition at line 20 of file STLContainerHandler.cc.

20 {}

Member Function Documentation

void ora::STLContainerIteratorHandler::increment ( )
virtual

Increments itself.

Implements ora::IArrayIteratorHandler.

Definition at line 23 of file STLContainerHandler.cc.

23  {
24  m_currentElement = m_Iterators->Next();
25 }
TGenericCollectionIterator * m_Iterators
void * m_currentElement
Current element object pointer.
void * ora::STLContainerIteratorHandler::object ( )
virtual
edm::TypeWithDict & ora::STLContainerIteratorHandler::returnType ( )
virtual

Returns the return type of the iterator dereference method.

Implements ora::IArrayIteratorHandler.

Definition at line 35 of file STLContainerHandler.cc.

36 {
37  return m_returnType;
38 }
edm::TypeWithDict m_returnType
The return type of the iterator dereference method.

Member Data Documentation

TVirtualCollectionProxy& ora::STLContainerIteratorHandler::m_collProxy
private

Proxy of the generic collection.

Definition at line 41 of file STLContainerHandler.h.

void* ora::STLContainerIteratorHandler::m_currentElement
private

Current element object pointer.

Definition at line 44 of file STLContainerHandler.h.

Referenced by STLContainerIteratorHandler().

TGenericCollectionIterator* ora::STLContainerIteratorHandler::m_Iterators
private

Definition at line 47 of file STLContainerHandler.h.

Referenced by STLContainerIteratorHandler().

edm::TypeWithDict ora::STLContainerIteratorHandler::m_returnType
private

The return type of the iterator dereference method.

Definition at line 38 of file STLContainerHandler.h.