1 // Copyright (c) 1997-1999 Matra Datavision
2 // Copyright (c) 1999-2014 OPEN CASCADE SAS
4 // This file is part of Open CASCADE Technology software library.
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License version 2.1 as published
8 // by the Free Software Foundation, with special exception defined in the file
9 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10 // distribution for complete text of the license and disclaimer of any warranty.
12 // Alternatively, this file may be used under the terms of Open CASCADE
13 // commercial license or contractual agreement.
15 #ifndef _math_IntegerVector_HeaderFile
16 #define _math_IntegerVector_HeaderFile
18 #include <math_VectorBase.hxx>
20 //! This class implements the real IntegerVector abstract data type.
21 //! IntegerVectors can have an arbitrary range which must be define at
22 //! the declaration and cannot be changed after this declaration.
25 //! math_IntegerVector V1(-3, 5); // an IntegerVector with range [-3..5]
28 //! IntegerVector is copied through assignment:
30 //! math_IntegerVector V2( 1, 9);
33 //! V1(1) = 2.0; // the IntegerVector V2 will not be modified.
36 //! The Exception RangeError is raised when trying to access outside
37 //! the range of an IntegerVector :
39 //! V1(11) = 0 // --> will raise RangeError;
42 //! The Exception DimensionError is raised when the dimensions of two
43 //! IntegerVectors are not compatible :
45 //! math_IntegerVector V3(1, 2);
46 //! V3 = V1; // --> will raise DimensionError;
47 //! V1.Add(V3) // --> will raise DimensionError;
49 using math_IntegerVector = math_VectorBase<int>;