Mathematics CATMathGrid

Usage: you must use this class as is. You should never derive it.


public class CATMathGrid

Class handling the allocation of grids of CATMathGridOfPoints and CATMathGridOfVectors.

The size is defined by a number of rows NbRows and a number of columns NbColumns of elements of 3 doubles.
The SetNumberOfElements method enlarges the memory if needed, while the Compress inherited method releases the free unused memory.


Constructor and Destructor Index


o ~CATMathGrid()
Destructor.

Method Index


o CopyGrid(CATMathGrid&,CATLONG32,CATLONG32)
Copies a smaller grid into a subgrid of a larger one.
o CopyIntoGrid(CATMathGrid&,CATLONG32,CATLONG32)
o GetNumberOfColumns()
Returns the number of columns of a CATMathGrid.
o GetNumberOfRows()
Returns the number of rows of a CATMathGrid.
o ResizeGrid(CATLONG32,CATLONG32)
o ResizeTheGrid(CATLONG32,CATLONG32)
Changes the number of rows and columns, without changing the total number of elements.
o ReverseColumnsOfGrid()
Vertical reverse of the grid.
o ReverseRowsOfGrid()
Horizontal reverse of the grid.
o SetNumberOfElements(CATLONG32,CATLONG32)
o SetNumberOfGridElements(CATLONG32,CATLONG32)
Modifies the dimension of a CATMathGrid.
o TransposeGrid()
Exchanges the rows and columns.
o operator =(CATMathGrid&)
Defines the affectation operator.

Constructor and Destructor


o ~CATMathGrid
public virtual ~CATMathGrid()
Destructor.

Methods


o CopyGrid
public CopyGrid( const iSmallerGrid,
iStartRow,
iColStartColumn)
Copies a smaller grid into a subgrid of a larger one.
Returns:
E_FAIL if the dimensions between the grids are not compatible.
o CopyIntoGrid
public CopyIntoGrid( const iSmallerGrid,
iStartRow,
iColStartColumn)
Deprecated:
V5R20 CopyGrid Copies a smaller grid into a subgrid of a larger one.
Throws an error if the dimensions between the grids are not consistent.
o GetNumberOfColumns
public GetNumberOfColumns()
Returns the number of columns of a CATMathGrid.
o GetNumberOfRows
public GetNumberOfRows()
Returns the number of rows of a CATMathGrid.
o ResizeGrid
public ResizeGrid( iCountRows,
iCountColumns)
Deprecated:
V5R20 ResizeTheGrid Changes the number of rows and columns, without changing the total number of elements.
If NbRows * NbColumns does not remain constant, an exception is arised.
Throws an error if at least one of the given data is negative.
o ResizeTheGrid
public ResizeTheGrid( iCountRows,
iCountColumns)
Changes the number of rows and columns, without changing the total number of elements.
If NbRows * NbColumns does not remain constant, an exception is arised.
Return E_FAIL if at least one of the given data is negative, S_OK otherwise.
o ReverseColumnsOfGrid
public ReverseColumnsOfGrid()
Vertical reverse of the grid.
The last column becomes the first one, and so one.
o ReverseRowsOfGrid
public ReverseRowsOfGrid()
Horizontal reverse of the grid.
The last row becomes the first one, and so one.
o SetNumberOfElements
public virtual SetNumberOfElements( iNbRows,
iNbColumns)
Deprecated:
V5R20 SetNumberOfGridElements Modifies the dimension of a CATMathGrid.
Re-allocates the memory if necessary.
o SetNumberOfGridElements
public virtual SetNumberOfGridElements( iNbRows,
iNbColumns)
Modifies the dimension of a CATMathGrid.
Re-allocates the memory if necessary.
o TransposeGrid
public TransposeGrid()
Exchanges the rows and columns.
o operator =
public operator =( const iGridToCopy)
Defines the affectation operator.

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

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