Open CASCADE Technology 6.6.0
Data Structures
math_IntegerVector.hxx File Reference
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Macro.hxx>
#include <Standard_Integer.hxx>
#include <math_SingleTabOfInteger.hxx>
#include <Standard_Address.hxx>
#include <Standard_Real.hxx>
#include <Standard_OStream.hxx>
#include <math_IntegerVector.lxx>

Data Structures

class  math_IntegerVector
 This class implements the real IntegerVector abstract data type.
IntegerVectors can have an arbitrary range which must be define at
the declaration and cannot be changed after this declaration.
Example: math_IntegerVector V1(-3, 5); // an IntegerVector with
range [-3..5]

IntegerVector is copied through assignement :
math_IntegerVector V2( 1, 9);
....
V2 = V1;
V1(1) = 2.0; // the IntegerVector V2 will not be modified.

The Exception RangeError is raised when trying to access outside
the range of an IntegerVector :
V1(11) = 0 // --> will raise RangeError;

The Exception DimensionError is raised when the dimensions of two
IntegerVectors are not compatible :
math_IntegerVector V3(1, 2);
V3 = V1; // --> will raise DimensionError;
V1.Add(V3) // --> will raise DimensionError;
More...
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines