VR-Link API Documentation for HLA 1.3
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vl
objIdHashLst.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*********************************************************************/
5
6
9
10
#ifndef DtObjectIdHashlist_H_
11
#define DtObjectIdHashlist_H_
12
13
#include <
vlutil/vlHashlist.h
>
14
#include "
objectId.h
"
15
19
class
DT_DLL_VL
DtObjectIdHashlist
20
{
21
public
:
22
25
DtObjectIdHashlist
(
bool
intrusive =
false
);
26
28
virtual
~
DtObjectIdHashlist
();
29
37
38
virtual
DtListItem
* add(
39
const
DtObjectId
& key,
void
* data,
void
** oldData = NULL);
40
43
virtual
void
*
remove
(
const
DtObjectId
& key);
44
46
virtual
void
* lookup(
const
DtObjectId
& key)
const
;
47
virtual
void
* operator[](
const
DtObjectId
& key)
const
;
48
51
virtual
const
DtList
* list()
const
;
52
54
virtual
void
empty();
55
56
protected
:
57
59
DtObjectIdHashlist
(
const
DtObjectIdHashlist
& orig);
60
62
DtObjectIdHashlist
& operator=(
const
DtObjectIdHashlist
& orig);
63
64
protected
:
65
66
DtList
*
myList
;
67
DtHashlist
*
myHashlist
;
68
};
69
70
typedef
DtObjectIdHashlist
DtObjectIdHashList
;
71
72
inline
void
*
DtObjectIdHashlist::operator[]
(
const
DtObjectId
& key)
const
73
{
74
return
lookup
(key);
75
}
76
77
#endif
78
Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)