summaryrefslogtreecommitdiff
path: root/inc/SelectMgr_DataMapOfObjectOwners.hxx
blob: 737dd90c20515848ab6b1d093dbbd04ce2d278ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// File:	SelectMgr_DataMapOfObjectOwners.hxx
// Created:	16.10.2003
// Author:      Alexander Solovyov

#ifndef _SelectMgr_DataMapOfObjectOwners_HeaderFile
#define _SelectMgr_DataMapOfObjectOwners_HeaderFile

#include <NCollection_DefineDataMap.hxx>
#include <Handle_SelectMgr_SelectableObject.hxx>
#include <SelectMgr_SequenceOfOwner.hxx>

inline Standard_Boolean IsEqual (const Handle_SelectMgr_SelectableObject& theH1,
				 const Handle_SelectMgr_SelectableObject& theH2)
{
  return (theH1 == theH2);
}

DEFINE_BASECOLLECTION(SelectMgr_CollectionOfSequenceOfOwner, SelectMgr_SequenceOfOwner)
DEFINE_DATAMAP(SelectMgr_DataMapOfObjectOwners, SelectMgr_CollectionOfSequenceOfOwner,
               Handle(SelectMgr_SelectableObject), SelectMgr_SequenceOfOwner)

typedef SelectMgr_DataMapOfObjectOwners::Iterator
  SelectMgr_DataMapIteratorOfMapOfObjectOwners;


#endif