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

corelinux::SetCollection Class Reference

SetCollection defines a sequencial collection of unique entites. More...

#include <SetCollection.hpp>

Inheritance diagram for corelinux::SetCollection:

corelinux::Array corelinux::Collection corelinux::Synchronized corelinux::FrameworkEntity 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.


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

 SetCollection ( SetCollectionCref )
 Copy constructor.

 SetCollection ( ArrayCref )
 Copy and prune out redundants.

virtual ~SetCollection ( void )
 Virtual destructor.

bool operator== ( SetCollectionCref ) const
 Equality operator.

SetCollectionRef operator+= ( FrameworkEntityPtr ) throw (NullPointerException,BoundsException)
 Entity put operator.

SetCollectionRef operator= ( ArrayCref )
 Copy (replace).

SetCollectionRef operator= ( SetCollectionCref )
SetCollectionRef operator= ( ArrayCptr ) throw (NullPointerException)
 Copy (replace).

SetCollectionRef operator= ( SetCollectionCptr ) throw (NullPointerException)
SetCollectionRef operator+= ( ArrayCref ) throw (BoundsException)
 Copy (append).

SetCollectionRef operator+= ( SetCollectionCref ) throw (BoundsException)
SetCollectionRef operator+= ( ArrayCptr ) throw (NullPointerException, BoundsException)
 Copy (append).

SetCollectionRef operator+= ( SetCollectionCptr ) throw (NullPointerException, BoundsException)
virtual void put ( FrameworkEntityPtr ) throw (NullPointerException, BoundsException)
 Add to end (putBack).

virtual void putFront ( FrameworkEntityPtr ) throw (NullPointerException, BoundsException)
 Add to front of SetCollection, shifting all back one.

virtual void putBack ( FrameworkEntityPtr ) throw (NullPointerException, BoundsException)
 Add to end.

virtual void putAt ( Index, FrameworkEntityPtr ) throw (NullPointerException, BoundsException)
 Add at point, shifting others back one.

virtual void addAll ( CollectionCref ) throw (BoundsException,IncompatibleClassException)
 Add all the elements from the inbound collection.

virtual void addAll ( Index, CollectionCref ) throw (BoundsException,IncompatibleClassException)
 Add all the elements from the inbound collection at a offset.


Static Public Methods

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

 SetCollectionPtr ( void )
 1 a new instance of SetCollection. More...

 void ( SetCollectionPtr aPointer )
 1 a point of SetCollection


Protected Methods

Count compareMembers ( CollectionCref ) const
 Returns the number of elements NOT found.

ArrayPtr getMembers ( CollectionCref, bool ) const
 Return members that match (true) or not (false).

ArrayPtr foldToArray ( ArrayCref ) const
 Return a set as an array from input.


Detailed Description

SetCollection defines a sequencial collection of unique entites.


Constructor & Destructor Documentation

corelinux::SetCollection::SetCollection ( void )
 

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

corelinux::SetCollection::SetCollection ( SetCollectionCref aRef )
 

Copy constructor.

corelinux::SetCollection::SetCollection ( ArrayCref aRef )
 

Copy and prune out redundants.

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

Virtual destructor.


Member Function Documentation

corelinux::SetCollection::SetCollectionPtr ( void ) [static]
 

1 a new instance of SetCollection.

Returns:
a pointer to SetCollection

void corelinux::SetCollection::addAll ( Index offset,
CollectionCref aCollection ) throw (BoundsException,IncompatibleClassException) [virtual]
 

Add all the elements from the inbound collection at a offset.

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

Add all the elements from the inbound collection.

Reimplemented from corelinux::Array.

Count corelinux::SetCollection::compareMembers ( CollectionCref aRef ) const [protected]
 

Returns the number of elements NOT found.

ArrayPtr corelinux::SetCollection::foldToArray ( ArrayCref ar ) const [protected]
 

Return a set as an array from input.

ArrayPtr corelinux::SetCollection::getMembers ( CollectionCref aRef,
bool comp ) const [protected]
 

Return members that match (true) or not (false).

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

get the type.

Returns:
a const pointer to the MetaType

Reimplemented from corelinux::Array.

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

get the type descriptor.

Returns:
a const pointer to the MetaType

Reimplemented from corelinux::Array.

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

redefine the operator delete[]

  • aVoidPtr the pointer to delete.

Reimplemented from corelinux::Array.

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

redefine the operator new[]

  • aSize.

Returns:
a VoidPtr

Reimplemented from corelinux::Array.

SetCollectionRef corelinux::SetCollection::operator+= ( SetCollectionCptr aPtr ) throw (NullPointerException, BoundsException)
 

SetCollectionRef corelinux::SetCollection::operator+= ( ArrayCptr aPtr ) throw (NullPointerException, BoundsException)
 

Copy (append).

Reimplemented from corelinux::Array.

SetCollectionRef corelinux::SetCollection::operator+= ( SetCollectionCref aRef ) throw (BoundsException)
 

SetCollectionRef corelinux::SetCollection::operator+= ( ArrayCref aRef ) throw (BoundsException)
 

Copy (append).

Reimplemented from corelinux::Array.

SetCollectionRef corelinux::SetCollection::operator+= ( FrameworkEntityPtr aPtr ) throw (NullPointerException,BoundsException)
 

Entity put operator.

Reimplemented from corelinux::Array.

SetCollectionRef corelinux::SetCollection::operator= ( SetCollectionCptr aPtr ) throw (NullPointerException)
 

SetCollectionRef corelinux::SetCollection::operator= ( ArrayCptr aPtr ) throw (NullPointerException)
 

Copy (replace).

Reimplemented from corelinux::Array.

SetCollectionRef corelinux::SetCollection::operator= ( SetCollectionCref aRef )
 

SetCollectionRef corelinux::SetCollection::operator= ( ArrayCref aRef )
 

Copy (replace).

Reimplemented from corelinux::Array.

bool corelinux::SetCollection::operator== ( SetCollectionCref aCref ) const
 

Equality operator.

void corelinux::SetCollection::put ( FrameworkEntityPtr aPtr ) throw (NullPointerException, BoundsException) [virtual]
 

Add to end (putBack).

Reimplemented from corelinux::Array.

void corelinux::SetCollection::putAt ( Index anIndex,
FrameworkEntityPtr aPtr ) throw (NullPointerException, BoundsException) [virtual]
 

Add at point, shifting others back one.

void corelinux::SetCollection::putBack ( FrameworkEntityPtr aPtr ) throw (NullPointerException, BoundsException) [virtual]
 

Add to end.

Reimplemented from corelinux::Array.

void corelinux::SetCollection::putFront ( FrameworkEntityPtr aPtr ) throw (NullPointerException, BoundsException) [virtual]
 

Add to front of SetCollection, shifting all back one.

Reimplemented from corelinux::Array.

corelinux::SetCollection::void ( SetCollectionPtr aPointer ) [static]
 

1 a point of SetCollection


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