test
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::CArrayHandler Class Reference

#include <CArrayHandler.h>

Inheritance diagram for ora::CArrayHandler:
ora::IArrayHandler

Public Member Functions

void appendNewElement (void *address, void *data)
 Appends a new element and returns its address of the object reference. More...
 
 CArrayHandler (const edm::TypeWithDict &dictionary)
 Constructor. More...
 
void clear (const void *address)
 Clear the content of the container. More...
 
bool isAssociative () const
 Returns the associativeness of the container. More...
 
IArrayIteratorHandleriterate (const void *address)
 Returns an initialized iterator. More...
 
edm::TypeWithDictiteratorReturnType ()
 Returns the iterator return type. More...
 
size_t size (const void *address)
 Returns the size of the container. More...
 
 ~CArrayHandler ()
 Destructor. More...
 
- Public Member Functions inherited from ora::IArrayHandler
virtual void finalize (void *)
 execute the ending procedure for the container More...
 
virtual size_t * persistentSize (const void *address)
 Returns the size of the container. Only differs in the PVector. More...
 
virtual size_t startElementIndex (const void *)
 Returns the index of the first element. More...
 
virtual ~IArrayHandler ()
 Destructor. More...
 

Private Attributes

edm::TypeWithDict m_elementType
 The iterator return type. More...
 
edm::TypeWithDict m_type
 The dictionary information. More...
 

Detailed Description

Definition at line 37 of file CArrayHandler.h.

Constructor & Destructor Documentation

ora::CArrayHandler::CArrayHandler ( const edm::TypeWithDict dictionary)
explicit

Constructor.

Definition at line 33 of file CArrayHandler.cc.

References m_elementType, m_type, ora::ClassUtils::resolvedType(), and edm::TypeWithDict::toType().

33  :
34  m_type( dictionary ),
36 {
37 
38  // find the iterator return type
39  edm::TypeWithDict elementType = m_type.toType();
40  m_elementType = ClassUtils::resolvedType( elementType );
41 
42 }
edm::TypeWithDict resolvedType(const edm::TypeWithDict &typ)
Definition: ClassUtils.cc:486
TypeWithDict toType() const
edm::TypeWithDict m_elementType
The iterator return type.
Definition: CArrayHandler.h:69
edm::TypeWithDict m_type
The dictionary information.
Definition: CArrayHandler.h:66
ora::CArrayHandler::~CArrayHandler ( )

Destructor.

Definition at line 44 of file CArrayHandler.cc.

44  {
45 }

Member Function Documentation

void ora::CArrayHandler::appendNewElement ( void *  address,
void *  data 
)
virtual

Appends a new element and returns its address of the object reference.

Implements ora::IArrayHandler.

Definition at line 62 of file CArrayHandler.cc.

63 {
64 }
void ora::CArrayHandler::clear ( const void *  address)
virtual
bool ora::CArrayHandler::isAssociative ( ) const
inlinevirtual

Returns the associativeness of the container.

Reimplemented from ora::IArrayHandler.

Definition at line 62 of file CArrayHandler.h.

62 { return false; }
ora::IArrayIteratorHandler * ora::CArrayHandler::iterate ( const void *  address)
virtual

Returns an initialized iterator.

Implements ora::IArrayHandler.

Definition at line 55 of file CArrayHandler.cc.

56 {
57  return new ora::CArrayIteratorHandler( address, m_elementType );
58 }
edm::TypeWithDict m_elementType
The iterator return type.
Definition: CArrayHandler.h:69
edm::TypeWithDict & ora::CArrayHandler::iteratorReturnType ( )
virtual

Returns the iterator return type.

Implements ora::IArrayHandler.

Definition at line 72 of file CArrayHandler.cc.

73 {
74  return m_elementType;
75 }
edm::TypeWithDict m_elementType
The iterator return type.
Definition: CArrayHandler.h:69
size_t ora::CArrayHandler::size ( const void *  address)
virtual

Returns the size of the container.

Implements ora::IArrayHandler.

Definition at line 48 of file CArrayHandler.cc.

References ora::ClassUtils::arrayLength().

49 {
51 }
edm::TypeWithDict m_type
The dictionary information.
Definition: CArrayHandler.h:66
size_t arrayLength(const edm::TypeWithDict &typ)
Definition: ClassUtils.cc:493

Member Data Documentation

edm::TypeWithDict ora::CArrayHandler::m_elementType
private

The iterator return type.

Definition at line 69 of file CArrayHandler.h.

Referenced by CArrayHandler().

edm::TypeWithDict ora::CArrayHandler::m_type
private

The dictionary information.

Definition at line 66 of file CArrayHandler.h.

Referenced by CArrayHandler().