OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    math_IntegerVector.hxx File Reference

    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]
    math_VectorBase< int > math_IntegerVector
    This class implements the real IntegerVector abstract data type. IntegerVectors can have an arbitrary...
    Definition math_IntegerVector.hxx:49

    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;