Open CASCADE Technology 7.8.0
Typedefs
math_IntegerVector.hxx File Reference
#include <math_VectorBase.hxx>

Typedefs

using math_IntegerVector = math_VectorBase< int >
 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:
 

Typedef Documentation

◆ 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 assignment:

....
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 :

V3 = V1; // --> will raise DimensionError;
V1.Add(V3) // --> will raise DimensionError;