0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / src / math / math_IntegerVector.hxx
CommitLineData
3b010a74 1// Copyright (c) 1997-1999 Matra Datavision
2// Copyright (c) 1999-2014 OPEN CASCADE SAS
3//
4// This file is part of Open CASCADE Technology software library.
5//
d5f74e42 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
3b010a74 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.
11//
12// Alternatively, this file may be used under the terms of Open CASCADE
13// commercial license or contractual agreement.
14
15#ifndef _math_IntegerVector_HeaderFile
16#define _math_IntegerVector_HeaderFile
17
1103eb60 18#include <math_VectorBase.hxx>
3b010a74 19
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.
23//! Example:
24//! @code
25//! math_IntegerVector V1(-3, 5); // an IntegerVector with range [-3..5]
26//! @endcode
27//!
5e6e5914 28//! IntegerVector is copied through assignment:
3b010a74 29//! @code
30//! math_IntegerVector V2( 1, 9);
31//! ....
32//! V2 = V1;
33//! V1(1) = 2.0; // the IntegerVector V2 will not be modified.
34//! @endcode
35//!
36//! The Exception RangeError is raised when trying to access outside
37//! the range of an IntegerVector :
38//! @code
39//! V1(11) = 0 // --> will raise RangeError;
40//! @endcode
41//!
42//! The Exception DimensionError is raised when the dimensions of two
43//! IntegerVectors are not compatible :
44//! @code
45//! math_IntegerVector V3(1, 2);
46//! V3 = V1; // --> will raise DimensionError;
47//! V1.Add(V3) // --> will raise DimensionError;
48//! @endcode
1103eb60 49using math_IntegerVector = math_VectorBase<int>;
3b010a74 50
51#endif
52