VR-Link API Documentation for DIS
 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 MAK Technologies, Inc
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 
Contains the DtObjectId class declaration.
virtual void * lookup(const DtObjectId &key) const
Look up the data associated with key.
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
DtHashlist * myHashlist
Definition: objectIdHashlist.h:67
DtList * myList
Definition: objectIdHashlist.h:66
DtObjectIdHashlist DtObjectIdHashList
Definition: objectIdHashlist.h:70
Defines DtHashlist and several helper functions.
DtList is deprecated, please use std::list&lt;T&gt;.
Definition: vlList.h:71
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
virtual void * operator[](const DtObjectId &key) const
Definition: objectIdHashlist.h:72
DtHashlist is deprecated and provided for backwards compatibility only.
Definition: vlHashlist.h:69
Instances of DtObjectIdHashlist are hash lists, where you can store associations between DtObjectIds ...
Definition: objectIdHashlist.h:19
lint -e266
Definition: vlList.h:25

Document ID: Generated on Wed Mar 27 02:04:30 EDT 2024 from SVN revision 264570
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)