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 Reflex::Type &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...
 
Reflex::Type & iteratorReturnType ()
 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

Reflex::Type m_elementType
 The iterator return type. More...
 
Reflex::Type m_type
 The dictionary information. More...
 

Detailed Description

Definition at line 37 of file CArrayHandler.h.

Constructor & Destructor Documentation

ora::CArrayHandler::CArrayHandler ( const Reflex::Type &  dictionary)
explicit

Constructor.

Definition at line 33 of file CArrayHandler.cc.

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

33  :
34  m_type( dictionary ),
36 {
37 
38  // find the iterator return type
39  Reflex::Type elementType = m_type.ToType();
40  m_elementType = ClassUtils::resolvedType( elementType );
41 
42 }
Reflex::Type m_type
The dictionary information.
Definition: CArrayHandler.h:66
Reflex::Type resolvedType(const Reflex::Type &typ)
Definition: ClassUtils.cc:404
Reflex::Type m_elementType
The iterator return type.
Definition: CArrayHandler.h:69
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 }
Reflex::Type m_elementType
The iterator return type.
Definition: CArrayHandler.h:69
Reflex::Type & 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 }
Reflex::Type 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.

49 {
50  return m_type.ArrayLength();
51 }
Reflex::Type m_type
The dictionary information.
Definition: CArrayHandler.h:66

Member Data Documentation

Reflex::Type ora::CArrayHandler::m_elementType
private

The iterator return type.

Definition at line 69 of file CArrayHandler.h.

Referenced by CArrayHandler().

Reflex::Type ora::CArrayHandler::m_type
private

The dictionary information.

Definition at line 66 of file CArrayHandler.h.

Referenced by CArrayHandler().