1 -- Created on: 2004-06-15
2 -- Created by: Sergey ZARITCHNY <szy@opencascade.com>
3 -- Copyright (c) 2004-2014 OPEN CASCADE SAS
5 -- This file is part of Open CASCADE Technology software library.
7 -- This library is free software; you can redistribute it and/or modify it under
8 -- the terms of the GNU Lesser General Public License version 2.1 as published
9 -- by the Free Software Foundation, with special exception defined in the file
10 -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 -- distribution for complete text of the license and disclaimer of any warranty.
13 -- Alternatively, this file may be used under the terms of Open CASCADE
14 -- commercial license or contractual agreement.
16 class LocationSet from BinTools
18 ---Purpose: The class LocationSet stores a set of location in
19 -- a relocatable state.
21 -- It can be created from Locations.
23 -- It can create Locations.
28 IndexedMapOfLocation from TopLoc
31 OutOfRange from Standard
34 Create returns LocationSet from BinTools;
35 ---Purpose: Returns an empty set of locations.
38 ---Purpose: Clears the content of the set.
41 Add(me : in out; L : Location from TopLoc) returns Integer
42 ---Purpose: Incorporate a new Location in the set and returns
46 Location(me; I : Integer) returns Location from TopLoc
47 ---Purpose: Returns the location of index <I>.
49 ---C++: return const &
51 OutOfRange from Standard
54 Index(me; L : Location from TopLoc) returns Integer
55 ---Purpose: Returns the index of <L>.
58 NbLocations(me) returns Integer
59 ---Purpose: Returns number of locations.
62 Write(me; OS : in out OStream)
63 ---Purpose: Writes the content of me on the stream <OS> in a
64 -- format that can be read back by Read.
67 Read(me : in out; IS : in out IStream)
68 ---Purpose: Reads the content of me from the stream <IS>. me
75 myMap : IndexedMapOfLocation from TopLoc;