VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
globalIdHashlist.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 DtGlobalIdHashlist_H_
11 #define DtGlobalIdHashlist_H_
12 
13 #include <vlutil/vlHashlist.h>
14 #include "globalObjectDesignator.h"
15 
16 
22 {
23 public:
24 
27  DtGlobalIdHashlist(bool intrusive = false);
28 
30  virtual ~DtGlobalIdHashlist();
31 
36 
38  virtual DtListItem* add(const DtGlobalObjectDesignator& key, void* data);
39 
42  virtual void* remove(const DtGlobalObjectDesignator& key);
43 
45  virtual void* lookup(const DtGlobalObjectDesignator& key) const;
46  virtual void* operator[](const DtGlobalObjectDesignator& key) const;
47 
50  virtual const DtList* list() const;
51 
52 protected:
53 
56 
58  DtGlobalIdHashlist& operator=(const DtGlobalIdHashlist& orig);
59 
60 protected:
61 
64 };
65 
67 
69  const DtGlobalObjectDesignator& key) const
70 {
71  return lookup(key);
72 }
73 
74 #endif
75 
Instances of DtGlobalIdHashlist are hash lists, where you can store associations between DtGlobalObje...
Definition: globalIdHashlist.h:21
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
virtual void * lookup(const DtGlobalObjectDesignator &key) const
Lookup the data associated with key.
This file contains typedefs used to represent objects in a protocol neutral way.
DtGlobalIdHashlist DtGlobalIdHashList
Definition: globalIdHashlist.h:66
Defines DtHashlist and several helper functions.
DtList is deprecated, please use std::list&lt;T&gt;.
Definition: vlList.h:71
DtList * myList
Definition: globalIdHashlist.h:62
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
DtHashlist * myHashlist
Definition: globalIdHashlist.h:63
DtHashlist is deprecated and provided for backwards compatibility only.
Definition: vlHashlist.h:69
virtual void * operator[](const DtGlobalObjectDesignator &key) const
Definition: globalIdHashlist.h:68
lint -e266
Definition: vlList.h:25

Document ID: Generated on Mon Apr 25 03:39:01 EDT 2022 from SVN revision 242502
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)