CMS 3D CMS Logo

Public Member Functions | Private Attributes

ora::CArrayHandler Class Reference

#include <CArrayHandler.h>

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

List of all members.

Public Member Functions

void appendNewElement (void *address, void *data)
 Appends a new element and returns its address of the object reference.
 CArrayHandler (const Reflex::Type &dictionary)
 Constructor.
void clear (const void *address)
 Clear the content of the container.
bool isAssociative () const
 Returns the associativeness of the container.
IArrayIteratorHandleriterate (const void *address)
 Returns an initialized iterator.
Reflex::Type & iteratorReturnType ()
 Returns the iterator return type.
size_t size (const void *address)
 Returns the size of the container.
 ~CArrayHandler ()
 Destructor.

Private Attributes

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

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().

                                                             :
  m_type( dictionary ),
  m_elementType()
{

  // find the iterator return type 
  Reflex::Type elementType = m_type.ToType();
  m_elementType = ClassUtils::resolvedType( elementType );
  
}
ora::CArrayHandler::~CArrayHandler ( )

Destructor.

Definition at line 44 of file CArrayHandler.cc.

                                {
}

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.

{
}
void ora::CArrayHandler::clear ( const void *  address) [virtual]

Clear the content of the container.

Implements ora::IArrayHandler.

Definition at line 67 of file CArrayHandler.cc.

{
}
bool ora::CArrayHandler::isAssociative ( ) const [inline, virtual]

Returns the associativeness of the container.

Reimplemented from ora::IArrayHandler.

Definition at line 62 of file CArrayHandler.h.

{ 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.

Reflex::Type & ora::CArrayHandler::iteratorReturnType ( ) [virtual]

Returns the iterator return type.

Implements ora::IArrayHandler.

Definition at line 72 of file CArrayHandler.cc.

{
  return m_elementType;
}
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.

{
  return m_type.ArrayLength();
}

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().