mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-10 08:08:36 +08:00
License statement text corrected; compiler warnings caused by Bison 2.41 disabled for MSVC; a few other compiler warnings on 54-bit Windows eliminated by appropriate type cast Wrong license statements corrected in several files. Copyright and license statements added in XSD and GLSL files. Copyright year updated in some files. Obsolete documentation files removed from DrawResources.
146 lines
5.0 KiB
Plaintext
146 lines
5.0 KiB
Plaintext
-- Created on: 1992-12-17
|
|
-- Created by: Mireille MERCIEN
|
|
-- Copyright (c) 1992-1999 Matra Datavision
|
|
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
|
|
--
|
|
-- This file is part of Open CASCADE Technology software library.
|
|
--
|
|
-- This library is free software; you can redistribute it and/or modify it under
|
|
-- the terms of the GNU Lesser General Public License version 2.1 as published
|
|
-- by the Free Software Foundation, with special exception defined in the file
|
|
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
-- distribution for complete text of the license and disclaimer of any warranty.
|
|
--
|
|
-- Alternatively, this file may be used under the terms of Open CASCADE
|
|
-- commercial license or contractual agreement.
|
|
|
|
generic class HArray2 from TCollection
|
|
(ItemHArray2 as any;
|
|
TheArray2 as Array2 from TCollection(ItemHArray2))
|
|
|
|
inherits TShared
|
|
|
|
---Purpose: The class HArray2 represents bi-dimensionnal arrays
|
|
-- of fixed size dynamically dimensioned at construction time.
|
|
-- As with a C array, the access time to an HArray2 indexed
|
|
-- item is constant and is independent of the array size.
|
|
-- Arrays are commonly used as elementary data structures for more complex objects.
|
|
-- HArray2 objects are handles to arrays.
|
|
-- - HArray2 arrays may be shared by several objects.
|
|
-- - You may use a TCollection_Array2 structure to get the actual array.
|
|
-- HArray2 is a generic class which depends on two parameters:
|
|
-- - Item, the type of element in the array,
|
|
-- - Array, the actual type of array handled by HArray2.
|
|
-- This is an instantiation with Item of the TCollection_Array2 generic class.
|
|
-- Warning
|
|
-- HArray2 indexes start and end at a user-defined position.
|
|
-- Thus, when accessing an item you must base the indexes
|
|
-- on the lower and upper bounds of the array.
|
|
|
|
raises
|
|
RangeError from Standard,
|
|
OutOfRange from Standard,
|
|
OutOfMemory from Standard,
|
|
DimensionMismatch from Standard
|
|
|
|
is
|
|
|
|
Create (R1, R2, C1, C2: Integer from Standard)
|
|
returns mutable HArray2 from TCollection
|
|
---Purpose: Creates an array of lower bound <R1><C1> and upper
|
|
-- bound <R2><C2>. Range from Standard error is
|
|
-- raised when <R2> is less than <R1> or <C2> is less than <C1>.
|
|
raises
|
|
RangeError from Standard,
|
|
OutOfMemory from Standard;
|
|
---C++: inline
|
|
|
|
|
|
Create (R1, R2, C1, C2: Integer from Standard; V : ItemHArray2)
|
|
returns mutable HArray2 from TCollection
|
|
---Purpose: Creates an array of lower bound <R1><C1> and upper
|
|
-- bound <R2><C2>. Range from Standard error is
|
|
-- raised when <R2> is less than <R1> or <C2> is less than <C1>.
|
|
raises
|
|
RangeError from Standard,
|
|
OutOfMemory from Standard;
|
|
---C++: inline
|
|
Init(me : mutable; V : ItemHArray2) ;
|
|
---Purpose: Initializes the array with the value <V>
|
|
---C++: inline
|
|
|
|
ColLength (me) returns Integer from Standard
|
|
---Purpose: Returns the number of rows of <me>.
|
|
---C++: inline
|
|
is static ;
|
|
|
|
RowLength (me) returns Integer from Standard
|
|
---Purpose: Returns the number of columns of <me>.
|
|
---C++: inline
|
|
is static;
|
|
|
|
LowerCol (me) returns Integer from Standard
|
|
---Purpose: Returns the lower column number of the array.
|
|
---C++: inline
|
|
is static ;
|
|
|
|
LowerRow (me) returns Integer from Standard
|
|
---Purpose: Returns the lower row number of the array.
|
|
---C++: inline
|
|
is static ;
|
|
|
|
UpperCol (me) returns Integer from Standard
|
|
---Purpose: Returns the upper column number of the array.
|
|
---C++: inline
|
|
is static ;
|
|
|
|
UpperRow (me) returns Integer from Standard
|
|
---Purpose: Returns the upper row number of the array.
|
|
---C++: inline
|
|
is static ;
|
|
|
|
SetValue (me : mutable; Row, Col: Integer from Standard;
|
|
---C++: inline
|
|
Value: ItemHArray2)
|
|
---Purpose: Assigns the value Value to the (Row,Col) item of this array.
|
|
---C++: inline
|
|
raises OutOfRange from Standard
|
|
is static ;
|
|
|
|
Value (me; Row,Col: Integer from Standard) returns any ItemHArray2
|
|
---Level: Public
|
|
---Purpose: Returns the value of the element of index <Row><Col>
|
|
---C++: return const &
|
|
---C++: inline
|
|
raises OutOfRange from Standard
|
|
is static;
|
|
|
|
ChangeValue (me : mutable; Row,Col: Integer from Standard)
|
|
returns any ItemHArray2
|
|
---Level: Public
|
|
---Purpose: Returns the value of the element of index <Row><Col>
|
|
---C++: return &
|
|
---C++: inline
|
|
raises OutOfRange from Standard
|
|
is static;
|
|
|
|
Array2(me) returns TheArray2
|
|
---Purpose: Returns the Array array used as a field by this array;
|
|
-- the returned array is not modifiable.
|
|
---C++: return const &
|
|
---C++: inline
|
|
is static;
|
|
|
|
ChangeArray2(me : mutable) returns TheArray2
|
|
---Purpose: - Returns a modifiable reference on the Array array
|
|
-- used as a field by this array, in order to modify it.
|
|
---C++: return &
|
|
---C++: inline
|
|
is static;
|
|
|
|
fields
|
|
|
|
myArray : TheArray2;
|
|
|
|
end HArray2 ;
|