b311480e |
1 | // Created on: 2003-10-16 |
2 | // Created by: Alexander Solovyov |
973c2be1 |
3 | // Copyright (c) 2003-2014 OPEN CASCADE SAS |
b311480e |
4 | // |
973c2be1 |
5 | // This file is part of Open CASCADE Technology software library. |
b311480e |
6 | // |
d5f74e42 |
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 |
973c2be1 |
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. |
b311480e |
12 | // |
973c2be1 |
13 | // Alternatively, this file may be used under the terms of Open CASCADE |
14 | // commercial license or contractual agreement. |
7fd59977 |
15 | |
16 | #ifndef _SelectMgr_DataMapOfObjectOwners_HeaderFile |
17 | #define _SelectMgr_DataMapOfObjectOwners_HeaderFile |
18 | |
19 | #include <NCollection_DefineDataMap.hxx> |
cb389a77 |
20 | #include <SelectMgr_SelectableObject.hxx> |
7fd59977 |
21 | #include <SelectMgr_SequenceOfOwner.hxx> |
22 | |
23 | inline Standard_Boolean IsEqual (const Handle_SelectMgr_SelectableObject& theH1, |
24 | const Handle_SelectMgr_SelectableObject& theH2) |
25 | { |
26 | return (theH1 == theH2); |
27 | } |
28 | |
29 | DEFINE_BASECOLLECTION(SelectMgr_CollectionOfSequenceOfOwner, SelectMgr_SequenceOfOwner) |
30 | DEFINE_DATAMAP(SelectMgr_DataMapOfObjectOwners, SelectMgr_CollectionOfSequenceOfOwner, |
31 | Handle(SelectMgr_SelectableObject), SelectMgr_SequenceOfOwner) |
32 | |
33 | typedef SelectMgr_DataMapOfObjectOwners::Iterator |
34 | SelectMgr_DataMapIteratorOfMapOfObjectOwners; |
35 | |
36 | |
37 | #endif |