Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Examples  

corelinux::Collection Class Reference

#include <Collection.hpp>

Inheritance diagram for corelinux::Collection:

corelinux::FrameworkEntity corelinux::Array corelinux::SetCollection List of all members.

Public Methods

virtual MetaTypeCptr getType ( void ) const
 get the type. More...

VoidPtr operator new (size_t aSize)
 redefine the operator new[]
  • aSize.
More...


void operator delete (VoidPtr aVoidPtr)
 redefine the operator delete[]
  • aVoidPtr the pointer to delete.


virtual Counter getSize ( void ) const = 0
virtual bool isEmpty ( void ) const = 0
virtual ElementIndex indexOf ( FrameworkEntityCptr ) const = 0 throw (NullPointerException)
virtual FrameworkEntityPtr getElementAt ( ElementIndex ) const = 0 throw (BoundsException)
virtual void addAll ( CollectionCref ) = 0 throw (BoundsException,IncompatibleClassException)
virtual void addAll ( ElementIndex, CollectionCref ) = 0 throw (BoundsException,IncompatibleClassException)
virtual void put ( FrameworkEntityPtr ) = 0
virtual FrameworkEntityPtr remove ( FrameworkEntityPtr ) = 0 throw (NullPointerException)
virtual bool containsElement ( FrameworkEntityPtr ) const = 0 throw (NullPointerException)
virtual bool containsType ( MetaClassPtr ) const = 0 throw (NullPointerException)
Constructor and destructor
 Collection ( void )
 All Collection derivations require a public default constructor for instantiation via the class factory (MetaType).

 Collection ( CollectionCref )
 Copy constructor.

virtual ~Collection ( void )
 Virtual destructor.

Operator overloads
bool operator== ( CollectionCref ) const
 Equality operator. More...

CollectionRef operator= ( CollectionCref )
 Assignment operator. More...


Static Public Methods

MetaTypeCptr getTypeDescriptor ( void )
 get the type descriptor. More...

 CollectionPtr ( void )
 1 a new instance of Collection. More...

 void ( CollectionPtr aPointer )
 1 a point of Collection


Detailed Description

Represents the root class for collections


Constructor & Destructor Documentation

corelinux::Collection::Collection ( void )
 

All Collection derivations require a public default constructor for instantiation via the class factory (MetaType).

corelinux::Collection::Collection ( CollectionCref )
 

Copy constructor.

corelinux::Collection::~Collection ( void ) [virtual]
 

Virtual destructor.


Member Function Documentation

corelinux::Collection::CollectionPtr ( void ) [static]
 

1 a new instance of Collection.

Returns:
a pointer to Collection

virtual void corelinux::Collection::addAll ( ElementIndex offset,
CollectionCref aCollection ) throw (BoundsException,IncompatibleClassException) [pure virtual]
 

Reimplemented in corelinux::Array.

virtual void corelinux::Collection::addAll ( CollectionCref aCollection ) throw (BoundsException,IncompatibleClassException) [pure virtual]
 

Reimplemented in corelinux::Array, and corelinux::SetCollection.

virtual bool corelinux::Collection::containsElement ( FrameworkEntityPtr aPtr ) const throw (NullPointerException) [pure virtual]
 

Reimplemented in corelinux::Array.

virtual bool corelinux::Collection::containsType ( MetaClassPtr aPtr ) const throw (NullPointerException) [pure virtual]
 

Reimplemented in corelinux::Array.

virtual FrameworkEntityPtr corelinux::Collection::getElementAt ( ElementIndex offset ) const throw (BoundsException) [pure virtual]
 

Reimplemented in corelinux::Array.

virtual Counter corelinux::Collection::getSize ( void ) const [pure virtual]
 

Reimplemented in corelinux::Array.

MetaTypeCptr corelinux::Collection::getType ( void ) const [virtual]
 

get the type.

Returns:
a const pointer to the MetaType

Reimplemented from corelinux::FrameworkEntity.

Reimplemented in corelinux::Array, and corelinux::SetCollection.

MetaTypeCptr corelinux::Collection::getTypeDescriptor ( void ) [static]
 

get the type descriptor.

Returns:
a const pointer to the MetaType

Reimplemented from corelinux::FrameworkEntity.

Reimplemented in corelinux::Array, and corelinux::SetCollection.

virtual ElementIndex corelinux::Collection::indexOf ( FrameworkEntityCptr aPtr ) const throw (NullPointerException) [pure virtual]
 

Reimplemented in corelinux::Array.

virtual bool corelinux::Collection::isEmpty ( void ) const [pure virtual]
 

Reimplemented in corelinux::Array.

void corelinux::Collection::operator delete ( VoidPtr aVoidPtr )
 

redefine the operator delete[]

  • aVoidPtr the pointer to delete.

Reimplemented in corelinux::Array, and corelinux::SetCollection.

VoidPtr corelinux::Collection::operator new ( size_t aSize )
 

redefine the operator new[]

  • aSize.

Returns:
a VoidPtr

Reimplemented from corelinux::FrameworkEntity.

Reimplemented in corelinux::Array, and corelinux::SetCollection.

CollectionRef corelinux::Collection::operator= ( CollectionCref )
 

Assignment operator.

Parameters:
Collection   const reference @returnm Collection reference to (*this)

bool corelinux::Collection::operator== ( CollectionCref aCollection ) const
 

Equality operator.

Parameters:
Collection   const reference
Returns:
bool true if the same object instance

virtual void corelinux::Collection::put ( FrameworkEntityPtr aPtr ) [pure virtual]
 

Reimplemented in corelinux::Array, and corelinux::SetCollection.

virtual FrameworkEntityPtr corelinux::Collection::remove ( FrameworkEntityPtr aPtr ) throw (NullPointerException) [pure virtual]
 

Reimplemented in corelinux::Array.

corelinux::Collection::void ( CollectionPtr aPointer ) [static]
 

1 a point of Collection


The documentation for this class was generated from the following files:
This is the CoreLinux++ Framework reference manual
Provided by The CoreLinux Consortium