MAK Data Logger API Documentation for HLA
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
lgrUtil
multiKeyMap.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
******************************************************************************/
5
8
9
#ifndef multiKeyMap_H_
10
#define multiKeyMap_H_
11
12
#include <map>
13
14
namespace
MAKLogger
15
{
20
template
<
typename
Key1,
typename
Key2,
typename
Value>
21
class
DtMultiKeyMap
:
public
std::map<std::pair<Key1,Key2>,Value>
22
{
23
public
:
25
26
typedef
std::pair<Key1,Key2>
KeyPair
;
27
typedef
std::map<KeyPair,Value>
KeyPairValueMap
;
28
typedef
typename
KeyPairValueMap::iterator
iterator
;
29
typedef
typename
KeyPairValueMap::const_iterator
const_iterator
;
31
33
DtMultiKeyMap
();
34
36
virtual
~DtMultiKeyMap
();
37
39
DtMultiKeyMap
(
const
DtMultiKeyMap<Key1,Key2,Value>
&);
40
42
DtMultiKeyMap<Key1,Key2,Value>
&
operator=
(
43
const
DtMultiKeyMap<Key1,Key2,Value>
&);
44
46
iterator
insert
(Key1 key1,Key2 key2,
Value
value);
47
49
50
iterator
find
(
const
Key1& key1);
51
const_iterator
find
(
const
Key1& key1)
const
;
53
55
56
iterator
find
(
const
Key2& key2);
57
const_iterator
find
(
const
Key2& key2)
const
;
59
61
Value
&
operator[]
(
const
Key1& key1);
62
64
Value
&
operator[]
(
const
Key2& key2);
65
66
protected
:
68
std::map<Key1,Key2>
key2LookUp
;
70
std::map<Key2,Key1>
key1LookUp
;
71
};
72
}
73
74
#define multiKeyMap_INC_
75
#include "multiKeyMap.inl"
76
#undef multiKeyMap_INC_
77
78
#endif
Document ID: Generated on Wed Jun 5 18:45:18 EDT 2019 from SVN revision 198968
Copyright © 2019 VT MAK. All Rights Reserved (
www.mak.com
)