#include <Array.hpp>
Inheritance diagram for corelinux::Array:
Public Methods | |
virtual MetaTypeCptr | getType ( void ) const |
get the type. More... | |
VoidPtr | operator new (size_t aSize) |
redefine the operator new[]
| |
void | operator delete (VoidPtr aVoidPtr) |
redefine the operator delete[]
| |
Array ( void ) | |
All derivations require a public default constructor for instantiation via the class factory (MetaType). | |
Array ( ArrayCref ) | |
Copy constructor. | |
virtual | ~Array ( void ) |
Virtual destructor. | |
bool | operator== ( ArrayCref ) const |
Equality operator. | |
virtual Counter | getSize ( void ) const |
Fetch the current size (# of entities) of the array. | |
virtual bool | isEmpty ( void ) const |
Determines. | |
FrameworkEntityPtr | operator[] ( ElementIndex ) const throw (BoundsException) |
Fetch entity at ElementIndex. | |
virtual ElementIndex | indexOf ( FrameworkEntityCptr ) const throw (NullPointerException) |
Fetch the index ( >= 0 else -1 ). | |
virtual FrameworkEntityPtr | getElementAt ( ElementIndex ) const throw (BoundsException) |
Fetch entity at ElementIndex. | |
MetaClassPtr | getElementClassAt ( ElementIndex ) const throw (BoundsException) |
Fetch entity class ElementIndex. | |
virtual bool | containsElement ( FrameworkEntityPtr ) const throw (NullPointerException) |
Does the entity exist in the collection. | |
virtual bool | containsType ( MetaClassPtr ) const throw (NullPointerException) |
Does the type exist in the collection. | |
ArrayRef | operator+= ( FrameworkEntityPtr ) throw (NullPointerException,BoundsException) |
Entity put operator. | |
ArrayRef | operator= ( ArrayCref ) |
Assignment (replace). | |
ArrayRef | operator= ( ArrayCptr ) throw (NullPointerException) |
Assignment (replace). | |
ArrayRef | operator+= ( ArrayCref ) throw (BoundsException) |
Copy (append). | |
ArrayRef | operator+= ( ArrayCptr ) throw (NullPointerException, BoundsException) |
Copy (append). | |
virtual void | put ( FrameworkEntityPtr ) throw (NullPointerException, BoundsException) |
Add to end (putBack). | |
virtual void | putFront ( FrameworkEntityPtr ) throw (NullPointerException, BoundsException) |
Add to front of array, shifting all back one. | |
virtual void | putBack ( FrameworkEntityPtr ) throw (NullPointerException, BoundsException) |
Add to end. | |
virtual void | putAt ( ElementIndex, 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 ( ElementIndex, CollectionCref ) throw (BoundsException,IncompatibleClassException) |
Add all the elements from the inbound collection at a offset. | |
virtual FrameworkEntityPtr | remove ( FrameworkEntityPtr ) throw (NullPointerException) |
Remove the specified entity from the array. | |
FrameworkEntityPtr | removeAt ( ElementIndex ) throw (BoundsException) |
Remove at ElementIndex. | |
FrameworkEntityPtr | removeAtFront ( void ) |
Remove first entity in array. | |
FrameworkEntityPtr | removeAtEnd ( void ) |
Remove last entity in array. | |
void | removeAll ( void ) |
Remove all entries. | |
DECLARE_INSTANCEDATA ( Integer, SizeRestriction ) | |
Semantic for bounding array. | |
Static Public Methods | |
MetaTypeCptr | getTypeDescriptor ( void ) |
get the type descriptor. More... | |
ArrayPtr ( void ) | |
1 a new instance of Array. More... | |
void ( ArrayPtr aPointer ) | |
1 a point of Array
| |
Protected Methods | |
bool | checkForMember ( FrameworkEntityCptr ) const |
Checks to see if entity in collection. | |
ElementIndex | getMemberIndex ( FrameworkEntityCptr ) const |
Get ElementIndex for specific member. | |
FrameworkEntity** | getArray ( void ) const |
Retrieve the array representation. | |
void | increaseOccupancy ( Counter additions = 1 ) |
Adjusts occupancy up. | |
void | decreaseOccupancy ( Counter removals = 1 ) |
Adjusts occupancy down. | |
bool | checkBoundsForAdd ( Counter increment = 1 ) |
Confirms ability to grow, or available room. | |
void | increaseArraySize ( Counter increment = 1 ) |
Grows and copies elements. | |
void | shiftForInsert ( ElementIndex position, Count increment=1 ) |
Shifts array for indexed inserts. | |
void | shiftForRemove ( ElementIndex position, Count increment=1 ) |
Shifts array for indexed removals. | |
void | copyOverFromArray ( ElementIndex, FrameworkEntity **, CountCref ) |
Array copy into. |
Arrays can be bounded (won't grow) or unbounded (will grow)
|
All derivations require a public default constructor for instantiation via the class factory (MetaType).
|
|
Copy constructor.
|
|
Virtual destructor.
|
|
1 a new instance of Array.
|
|
Semantic for bounding array.
|
|
Add all the elements from the inbound collection at a offset.
Reimplemented from corelinux::Collection. |
|
Add all the elements from the inbound collection.
Reimplemented from corelinux::Collection. Reimplemented in corelinux::SetCollection. |
|
Confirms ability to grow, or available room.
|
|
Checks to see if entity in collection.
|
|
Does the entity exist in the collection.
Reimplemented from corelinux::Collection. |
|
Does the type exist in the collection.
Reimplemented from corelinux::Collection. |
|
Array copy into.
|
|
Adjusts occupancy down.
|
|
Retrieve the array representation.
|
|
Fetch entity at ElementIndex.
Reimplemented from corelinux::Collection. |
|
Fetch entity class ElementIndex.
|
|
Get ElementIndex for specific member.
|
|
Fetch the current size (# of entities) of the array.
Reimplemented from corelinux::Collection. |
|
get the type.
Reimplemented from corelinux::Collection. Reimplemented in corelinux::SetCollection. |
|
get the type descriptor.
Reimplemented from corelinux::Collection. Reimplemented in corelinux::SetCollection. |
|
Grows and copies elements.
|
|
Adjusts occupancy up.
|
|
Fetch the index ( >= 0 else -1 ).
Reimplemented from corelinux::Collection. |
|
Determines.
Reimplemented from corelinux::Collection. |
|
redefine the operator delete[]
Reimplemented from corelinux::Collection. Reimplemented in corelinux::SetCollection. |
|
redefine the operator new[]
Reimplemented from corelinux::Collection. Reimplemented in corelinux::SetCollection. |
|
Copy (append).
Reimplemented in corelinux::SetCollection. |
|
Copy (append).
Reimplemented in corelinux::SetCollection. |
|
Entity put operator.
Reimplemented in corelinux::SetCollection. |
|
Assignment (replace).
Reimplemented in corelinux::SetCollection. |
|
Assignment (replace).
Reimplemented in corelinux::SetCollection. |
|
Equality operator.
|
|
Fetch entity at ElementIndex.
|
|
Add to end (putBack).
Reimplemented from corelinux::Collection. Reimplemented in corelinux::SetCollection. |
|
Add at point, shifting others back one.
|
|
Add to end.
Reimplemented in corelinux::SetCollection. |
|
Add to front of array, shifting all back one.
Reimplemented in corelinux::SetCollection. |
|
Remove the specified entity from the array.
Reimplemented from corelinux::Collection. |
|
Remove all entries.
|
|
Remove at ElementIndex.
|
|
Remove last entity in array.
|
|
Remove first entity in array.
|
|
Shifts array for indexed inserts.
|
|
Shifts array for indexed removals.
|
|
1 a point of Array
|