#include <CoordinateSpace.h>
Inheritance diagram for OSCAR::CoordinateSpace:

Public Methods | |
| CoordinateSpace (unsigned int spaceDim, OSCARError &err=DUMMY_ERROR(noError)) | |
| CoordinateSpace (const CoordinateStatusArray &coordinateStatus) | |
| CoordinateSpace (const CoordinateSpace &rhs) | |
| virtual | ~CoordinateSpace () |
| CoordinateSpace & | operator= (const CoordinateSpace &rhs) |
| unsigned int | GetActiveDimensionSize () const |
| unsigned int | GetDimensionSize () const |
| bool | SetCoordinateStatus (unsigned int coordNo, CoordinateStatus status) |
| bool | SetCoordinateStatus (const CoordinateStatusArray &statusArray) |
| void | SetAllCoordinateStatus (const CoordinateStatus &status) |
| bool | GetCoordinateStatus (unsigned int coordNo, CoordinateStatus &status) |
| CoordinateStatus | GetCoordinateStatus (unsigned int coordNo) const |
| bool | GetCoordinateStatus (CoordinateStatusArray &statusArray) |
| const CoordinateStatusArray & | GetCoordinateStatus () const |
| bool | Grow (unsigned int growth) |
Protected Methods | |
| void | updateActiveDimSize () |
Protected Attributes | |
| CoordinateStatusArray * | coordinateStatus |
| unsigned int | activeSpaceDim |
|
||||||||||||
|
Constructor. Constructs an CoordinateSpace of size 'spaceDim' with Active coordinates. being Active.
|
|
|
Constructor. Constructs CoordinateSpace the same size as the RRCoordinateStatusArray with coordinate statuses initialized by the RRCoordinateStatusArray.
|
|
|
Copy Constructor. Constructs an CoordinateSpace object from an existing CoordinateSpace object.
|
|
|
Virtual Destructor. This is the Destructor for an object of type CoordinateSpace. |
|
|
Get the number of active dimensions. Return the number of the coordinates that are set to Active.
|
|
|
Get the RRCoordinateStatusArray of a coordinate space. Returns a const reference to the RRCoordinateStatusArray for this CoordinateSpace
|
|
|
Get the RRCoordinateStatusArray of a coordinate space. Copy the Active/Inactive status of each coordinate into argument which must be of size GetDimensionSize() or an error will be set.
|
|
|
Get the status of a particular coordinate. Gets the status of a particular coordinate without range check and is faster than GetCStatus(coordNo, status), but behavior is undefined for invalid coordinates. Valid coordinates are 0 to GetDimensionSize()-1.
|
|
||||||||||||
|
Get the status of a particular coordinate. Get the status of a particular coordinate. This method checks for range errors and is slower than GotCStatus(coordNo).
|
|
|
Get the number of dimensions in the coordinate space. Get the number of dimensions in a CoordinateSpace.
|
|
|
Increase the length of a Coordinate Space. New elements are set to Active. This method is used to increase the size(number of elements) in an CoordinateSpace object.
Reimplemented in OSCAR::CoordinateVector. |
|
|
Assignment operator. Assignment operator for CoordinateSpace which will resize the calling object if the array being copied is not of the same size.
|
|
|
Set the status of all coordinates. Sets all coordinate statuses to Active or Inactive.
|
|
|
Set the RRCoordinateStatusArray of a coordinate space. Set the the Active/Inactive status of each coordinate.
|
|
||||||||||||
|
Set the status of a particular coordinate. Set the Active/Inactive status of a particular coordinate.
|
|
|
Update the number of dimensions that are active. This method is used to update the variable activeSpaceDim. This variable keeps track of how many dimensions are active at a given time. |
|
|
|
|
|
|
| RRG Homepage | OSCAR Overview | OSCAR Tutorials | Simulations |