1 -- Created on: 1993-07-16
2 -- Created by: Remi LEQUETTE
3 -- Copyright (c) 1993-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
6 -- This file is part of Open CASCADE Technology software library.
8 -- This library is free software; you can redistribute it and/or modify it under
9 -- the terms of the GNU Lesser General Public License version 2.1 as published
10 -- by the Free Software Foundation, with special exception defined in the file
11 -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 -- distribution for complete text of the license and disclaimer of any warranty.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
17 class LocationSet from TopTools
19 ---Purpose: The class LocationSet stores a set of location in
20 -- a relocatable state.
22 -- It can be created from Locations.
24 -- It can create Locations.
26 -- It can be write and read from a stream.
30 IndexedMapOfLocation from TopLoc,
31 ProgressIndicator from Message
34 OutOfRange from Standard
37 Create returns LocationSet from TopTools;
38 ---Purpose: Returns an empty set of locations.
41 ---Purpose: Clears the content of the set.
44 Add(me : in out; L : Location from TopLoc) returns Integer
45 ---Purpose: Incorporate a new Location in the set and returns
49 Location(me; I : Integer) returns Location from TopLoc
50 ---Purpose: Returns the location of index <I>.
52 ---C++: return const &
54 OutOfRange from Standard
57 Index(me; L : Location from TopLoc) returns Integer
58 ---Purpose: Returns the index of <L>.
61 Dump(me; OS : in out OStream)
62 ---Purpose: Dumps the content of me on the stream <OS>.
65 Write(me; OS : in out OStream)
66 ---Purpose: Writes the content of me on the stream <OS> in a
67 -- format that can be read back by Read.
70 Read(me : in out; IS : in out IStream)
71 ---Purpose: Reads the content of me from the stream <IS>. me
76 SetProgress(me : in out; PR : ProgressIndicator from Message);
78 GetProgress(me) returns ProgressIndicator from Message;
81 myMap : IndexedMapOfLocation from TopLoc;
82 myProgress : ProgressIndicator from Message;