All Frameworks Class Hierarchy This Framework Previous Next Indexes
Mathematics Class CATMathGridOfVectors
Mathematics.CATCGMVirtual
|
+---Mathematics.CATMathExtendableSet
|
+---Mathematics.CATMathGrid
|
+---CATMathGridOfVectors
Usage: you must use this class as is. You should never derive it.
public class CATMathGridOfVectors
Class representing a bi-dimensionnal grid of CATMathVectors.
The size is defined by a number of rows NbRows and a
number of columns NbColumns.
The SetNumberOfVectors method enlarges the memory if
needed, while the Compress inherited method releases the free
unused memory.
Constructor and Destructor Index
- o
CATMathGridOfVectors()
- Constructs an empty CATMathGridOfVectors with 0 row and 0 column.
- o
CATMathGridOfVectors(CATLONG32,CATLONG32)
- Constructs a CATMathGridOfVectors of a given size.
- o
CATMathGridOfVectors(CATLONG32,CATLONG32,CATMathVector[])
- Constructs from an array of CATMathVectors, assuming it is ordered row
after row.
- o
CATMathGridOfVectors(CATMathGridOfVectors&)
- Copy constructor.
- o
~CATMathGridOfVectors()
- Destructor
Method Index
- o
ApplyTransformation(CATMathTransformation&)
- Transforms the CATMathVectors of a CATMathGridOfVectors.
- o
GetVector(CATLONG32,CATLONG32)
- Returns the CATMathVector locating at a given row and column.
- o
GetVector(CATLONG32,CATLONG32,CATMathVector&)
- Retrieves the CATMathVector locating at a given row and column.
- o
GetVectors()
- Returns the array of CATMathVectors sorted row by row.
- o
SetNumberOfVectors(CATLONG32,CATLONG32)
- Sets a new size to this CATMathGridOfVectors.
- o
SetVector(CATMathVector&,CATLONG32,CATLONG32)
- Initializes the values of a CATMathVector in the CATMathGridOfVectors.
Constructor and Destructor
o CATMathGridOfVectors
public CATMathGridOfVectors( | ) |
-
Constructs an empty CATMathGridOfVectors with 0 row and 0 column.
o CATMathGridOfVectors
-
Constructs a CATMathGridOfVectors of a given size.
The memory is allocated, but the values of the vectors are not initialized.
Use SetVector to initialize them.
o CATMathGridOfVectors
-
Constructs from an array of CATMathVectors, assuming it is ordered row
after row.
o CATMathGridOfVectors
-
Copy constructor.
o ~CATMathGridOfVectors
public virtual ~CATMathGridOfVectors( | ) |
-
Destructor
Methods
o ApplyTransformation
-
Transforms the CATMathVectors of a CATMathGridOfVectors.
o GetVector
-
Returns the CATMathVector locating at a given row and column.
The indexes iRow and iColumn start at 0.
Use preferently the second method signature if you want to avoid an
useless constructor.
o GetVector
-
Retrieves the CATMathVector locating at a given row and column.
The indexes iRow and iColumn start at 0.
o GetVectors
-
Returns the array of CATMathVectors sorted row by row.
A CATMathVector at the (iRow,iColumn) location is accessed
using the formula iRow*NbRows+iColumn in the returned array.
Note that the returned array is used by the CATMathGridOfVectors and
must not be deleted.
o SetNumberOfVectors
-
Sets a new size to this CATMathGridOfVectors.
o SetVector
-
Initializes the values of a CATMathVector in the CATMathGridOfVectors.
The indexes iRow and iColumn start at 0.
This object is included in the file: CATMathGridOfVectors.h
If needed, your Imakefile.mk should include the module: CATMathematics