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

Public Methods | |
| VectorArray (unsigned int arraySize, unsigned int vectorSize) | |
| VectorArray (VectorArray &rhs) | |
| VectorArray (Matrix &rhs) | |
| virtual | ~VectorArray () |
| VectorArray & | operator= (VectorArray &rhs) |
| VectorArray & | operator= (Matrix &rhs) |
| unsigned int | GetSize (void) const |
| unsigned int | GetVectorSize (void) const |
| double & | at (unsigned int vectorNo, unsigned int elementNo) |
| const double & | at (unsigned int vectorNo, unsigned int elementNo) const |
| Vector & | at (unsigned int vectorNo) |
| const Vector & | at (unsigned int vectorNo) const |
| double & | operator() (unsigned int vectorNo, unsigned int elementNo) |
| const double & | operator() (unsigned int vectorNo, unsigned int elementNo) const |
| Vector & | operator[] (unsigned int vectorNo) |
| const Vector & | operator[] (unsigned int vectorNo) const |
| int | operator== (const VectorArray &rhs) const |
Protected Methods | |
| void | init (unsigned int arraySize, unsigned int vectorSize) |
Protected Attributes | |
| unsigned int | _noOfVectors |
| VectorP * | _array |
Friends | |
| std::ostream & | operator<< (std::ostream &output, const VectorArray &x) |
|
||||||||||||
|
Constructor. This is the constructor for an object of type VectorArray. Use this to construct an empty (all elements 0) VectorArray object.
|
|
|
Copy Constructor. This is the Copy Constructor for an object of type VectorArray. Use this to construct an VectorArray object from an existing VectorArray object. If both VectorArray objects are of different sizes, then an error will occur and the function will abort.
|
|
|
Copy Constructor. This is the Copy Constructor for an object of type VectorArray. Use this to construct an VectorArray object from an existing Matrix object. If the VectorArray and Matrix objects are of different sizes, then an error will occur and the function will abort.
|
|
|
Virtual Destructor. This is the Destructor for an object of type VectorArray. |
|
|
Get the the vector stored at a particular index in a const VectorArray object. This method is used to get the (const) vector stored at a particular index in a const VectorArray object. An error is displayed if the index is out of range.
|
|
|
Get or Set the the vector stored at a particular index in a non-const VectorArray object. This method is used to get the vector stored at a particular index in a non-const VectorArray object. An error is displayed if the index is out of range.
|
|
||||||||||||
|
Get the value of an element at a particular index in a vector in a const VectorArray object. This method is used to get the value of an element at a particular index in a vector in an VectorArray object. An error is displayed if the vector or element index is out of range.
|
|
||||||||||||
|
Get or Set the value of an element at a particular index in a vector in a non-const VectorArray object. This method is used to get/set the value of an element at a particular index in a vector in an VectorArray object. An error is displayed if the vector or element index is out of range.
|
|
|
Get the number of Vectors stored in the VectorArray object. This method is used to get the number of Vectors stored in the VectorArray object.
|
|
|
Get the size of each Vector element stored in the VectorArray object. This method is used to get the size of each Vector element stored in the VectorArray object.
|
|
||||||||||||
|
Initialize the VectorArray object. This method is used to initialize the VectorArray object.
|
|
||||||||||||
|
Overloaded, const () operator. The overloaded () operator is used to get the (const) value of an element at a particular index in a vector in an VectorArray object. An error is displayed if the vector or element index is out of range.
|
|
||||||||||||
|
Overloaded, non-const () operator. The overloaded () operator is used to get/set the value of an element at a particular index in a vector in a non-const VectorArray object. An error is displayed if the vector or element index is out of range.
|
|
|
Assignment Operator. This is the Assignment Operator for an object of type VectorArray.
|
|
|
Assignment Operator. This is the Assignment Operator for an object of type VectorArray.
|
|
|
Overloaded == operator. The Overloaded == operator checks if two VectorArray objects are equal or not.
|
|
|
Index operator for VectorArray objects. The Overloaded operator[] allows the read-only access of individual vectors in const VectorArray objects. An error is displayed if the index is out of range.
|
|
|
Index operator for VectorArray objects. The Overloaded operator[] allows the read/write access of individual vectors in non-const VectorArray objects. An error is displayed if the index is out of range.
|
|
||||||||||||
|
|
|
|
|
|
|
|
| RRG Homepage | OSCAR Overview | OSCAR Tutorials | Simulations |