Mathematics 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)
o CATMathSetOfVectors(CATMathSetOfVectors&)
CopyConstructor.
o CATMathSetOfVectors(CATLONG32,CATMathVector[])
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 Set(CATLONG32,CATMathVector[])
Constructs from an array of CATMathVectors.
o SetNumberOfVectors(CATLONG32)
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.
o SetVectorNumber(CATLONG32)
Allocates the memory for this CATMathSetOfVectors.

Constructor and Destructor


o CATMathSetOfVectors
public CATMathSetOfVectors()
Constructs an empty CATMathSetOfVectors with 0 vectors.
o CATMathSetOfVectors
public CATMathSetOfVectors( iNbVectors)
Deprecated:
V5R20 SetVectorNumber 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
public CATMathSetOfVectors( const iCopiedSet)
CopyConstructor.
o CATMathSetOfVectors
public CATMathSetOfVectors( iNbVectors,
const VectorsToCopy)
Deprecated:
V5R20 Set Constructs from an array of CATMathVectors.
o ~CATMathSetOfVectors
public ~CATMathSetOfVectors()
Destructor.

Methods


o GetNumberOfVectors
public GetNumberOfVectors()
Returns the number of vetors of this CATMathSetOfVectors.
o GetVector
public GetVector( iIndexVector)
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
public GetVector( iIndexVector,
ioVector)
Retrieves the CATMathVector locating at a given index.
The index iIndexVector starts at 0.
o GetVectors
public GetVectors()
Returns the array of CATMathVectors.
Note that the returned array is used by this CATMathSetOfVectors and must not be deleted.
o Set
public Set( iNbVectors,
const VectorsToCopy)
Constructs from an array of CATMathVectors.
o SetNumberOfVectors
public SetNumberOfVectors( iCountVectors)
Deprecated:
V5R20 SetVectorNumber Allocates the memory for this CATMathSetOfVectors.
o SetVector
public SetVector( const iVector,
iIndex)
Initializes the values of a CATMathVector in the CATMathSetOfVectors.
The index iIndexVector starts at 0.
o SetVector
public SetVector( ,
,
,
)
Use now the former signature of this method.
o SetVectorNumber
public SetVectorNumber( iCountVectors)
Allocates the memory for this CATMathSetOfVectors.
Returns:
E_FAIL if the given data is not positive, S_OK otherwise.

This object is included in the file: CATMathSetOfVectors.h
If needed, your Imakefile.mk should include the module: CATMathematics

Copyright © 1999-2014, Dassault Systèmes. All rights reserved.