VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
objectIdHashlist.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 
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 
60 
62  DtObjectIdHashlist& operator=(const DtObjectIdHashlist& orig);
63 
64 protected:
65 
68 };
69 
71 
72 inline void* DtObjectIdHashlist::operator[](const DtObjectId& key) const
73 {
74  return lookup(key);
75 }
76 
77 #endif
78 

Document ID: Generated on Fri May 15 06:36:13 EDT 2015 from SVN revision 153263
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)