test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CArrayHandler.h
Go to the documentation of this file.
1 #ifndef INCLUDE_ORA_CARRAYHANDLER_H
2 #define INCLUDE_ORA_CARRAYHANDLER_H
3 
4 #include "IArrayHandler.h"
5 // externals
7 
8 namespace ora {
9 
11  public:
13  CArrayIteratorHandler( const void* startAddress, const edm::TypeWithDict& iteratorReturnType );
14 
17 
19  void increment();
20 
22  void* object();
23 
26 
27  private:
28 
31 
33  const void* m_currentElement;
34  };
35 
36 
37  class CArrayHandler : virtual public IArrayHandler {
38 
39  public:
41  explicit CArrayHandler( const edm::TypeWithDict& dictionary );
42 
45 
47  size_t size( const void* address );
48 
50  IArrayIteratorHandler* iterate( const void* address );
51 
53  void appendNewElement( void* address, void* data );
54 
56  void clear( const void* address );
57 
60 
62  bool isAssociative() const { return false; }
63 
64  private:
67 
70 
71  };
72 
73 }
74 
75 #endif
void increment()
Increments itself.
~CArrayHandler()
Destructor.
CArrayHandler(const edm::TypeWithDict &dictionary)
Constructor.
edm::TypeWithDict & returnType()
Returns the return type of the iterator dereference method.
edm::TypeWithDict & iteratorReturnType()
Returns the iterator return type.
IArrayIteratorHandler * iterate(const void *address)
Returns an initialized iterator.
void clear(const void *address)
Clear the content of the container.
const void * m_currentElement
Current element object pointer.
Definition: CArrayHandler.h:33
CArrayIteratorHandler(const void *startAddress, const edm::TypeWithDict &iteratorReturnType)
Constructor.
Definition: CArrayHandler.cc:6
void * object()
Returns the current object.
void appendNewElement(void *address, void *data)
Appends a new element and returns its address of the object reference.
edm::TypeWithDict m_returnType
The return type of the iterator dereference method.
Definition: CArrayHandler.h:30
~CArrayIteratorHandler()
Destructor.
size_t size(const void *address)
Returns the size of the container.
edm::TypeWithDict m_elementType
The iterator return type.
Definition: CArrayHandler.h:69
edm::TypeWithDict m_type
The dictionary information.
Definition: CArrayHandler.h:66
bool isAssociative() const
Returns the associativeness of the container.
Definition: CArrayHandler.h:62