All Frameworks Class Hierarchy This Framework Previous Next Indexes
Mathematics Class CATMathSetOfVectors
Mathematics.CATCGMVirtual
|
+---Mathematics.CATMathExtendableSet
|
+---Mathematics.CATMathSetOf3DObjects
|
+---CATMathSetOfVectors
Usage: you must use this class as is. You should never derive it.
public class CATMathSetOfVectors
Class representing a set of CATMathVectors.
The size is defined by a number of CATMathVectors
NbVectors. The index of the first CATMathVector is 0.
The SetNumberOfVectors method enlarges the memory if
needed, while the Compress inherited method releases the free
unused memory.
Constructor and Destructor Index
- o
CATMathSetOfVectors()
- Constructs an empty CATMathSetOfVectors with 0 vectors.
- o
CATMathSetOfVectors(CATLONG32)
- Constructs a CATMathSetOfVectors of a given size.
- o
CATMathSetOfVectors(CATLONG32,CATMathVector[])
- Constructs from an array of CATMathVectors.
- o
CATMathSetOfVectors(CATMathSetOfVectors&)
- CopyConstructor.
- o
~CATMathSetOfVectors()
- Destructor.
Method Index
- o
GetNumberOfVectors()
- Returns the number of vetors of this CATMathSetOfVectors.
- o
GetVector(CATLONG32)
- Returns the CATMathVector locating at a given index.
- o
GetVector(CATLONG32,CATMathVector&)
- Retrieves the CATMathVector locating at a given index.
- o
GetVectors()
- Returns the array of CATMathVectors.
- o
SetNumberOfVectors(CATLONG32)
- Allocates the memory for this CATMathSetOfVectors.
- o
SetVector(CATMathVector&,CATLONG32)
- Initializes the values of a CATMathVector in the CATMathSetOfVectors.
- o
SetVector(double,double,double,CATLONG32)
- Use now the former signature of this method.
Constructor and Destructor
o CATMathSetOfVectors
public CATMathSetOfVectors( | ) |
-
Constructs an empty CATMathSetOfVectors with 0 vectors.
o CATMathSetOfVectors
public CATMathSetOfVectors( | CATLONG32 | iNbVectors) |
-
Constructs a CATMathSetOfVectors of a given size.
The memory is allocated, but the values of the vectors are not initialized.
Use SetVector to initialize them.
o CATMathSetOfVectors
-
Constructs from an array of CATMathVectors.
o CATMathSetOfVectors
-
CopyConstructor.
o ~CATMathSetOfVectors
public ~CATMathSetOfVectors( | ) |
-
Destructor.
Methods
o GetNumberOfVectors
-
Returns the number of vetors of this CATMathSetOfVectors.
o GetVector
-
Returns the CATMathVector locating at a given index.
The index iIndexVector starts 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 index.
The index iIndexVector starts at 0.
o GetVectors
-
Returns the array of CATMathVectors.
Note that the returned array is used by this CATMathSetOfVectors and
must not be deleted.
o SetNumberOfVectors
public void SetNumberOfVectors( | CATLONG32 | iCountVectors) |
-
Allocates the memory for this CATMathSetOfVectors.
o SetVector
-
Initializes the values of a CATMathVector in the CATMathSetOfVectors.
The index iIndexVector starts at 0.
o SetVector
public void SetVector( | double | , |
| double | , |
| double | , |
| CATLONG32 | ) |
-
Use now the former signature of this method.
This object is included in the file: CATMathSetOfVectors.h
If needed, your Imakefile.mk should include the module: CATMathematics