summaryrefslogtreecommitdiff
path: root/inc/NCollection_DefineDoubleMap.hxx
blob: a6949395428cd823775967f88e6a687b78dc4d94 (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
27
28
29
// File:        NCollection_DefineDoubleMap.hxx
// Created:     Thu Apr 24 15:02:53 2002
// Author:      Alexander KARTOMIN (akm)
//              <akm@opencascade.com>
//
// Purpose:     The DoubleMap  is used to  bind  pairs (Key1,Key2)
//              and retrieve them in linear time.
//              
//              See Map from NCollection for a discussion about the number
//              of buckets
//              

#ifndef NCollection_DefineDoubleMap_HeaderFile
#define NCollection_DefineDoubleMap_HeaderFile

#include <NCollection_DefineBaseCollection.hxx>
#include <NCollection_DoubleMap.hxx>

#ifdef WNT
// Disable the warning "operator new unmatched by delete"
#pragma warning (disable:4291)
#endif

// *********************************************** Class DoubleMap ************

#define DEFINE_DOUBLEMAP(_ClassName_, _BaseCollection_, TheKey1Type, TheKey2Type) \
        typedef NCollection_DoubleMap <TheKey1Type, TheKey2Type > _ClassName_;

#endif