![]() |
VR-Link API Documentation for HLA 1.3
|
00001 /********************************************************************* 00002 ** Copyright (c) 1992-2010 VT MAK 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 00006 00009 00010 #ifndef DtGlobalIdHashlist_H_ 00011 #define DtGlobalIdHashlist_H_ 00012 00013 #include <vlutil/vlHashlist.h> 00014 #include "globalObjDes.h" 00015 00016 00021 class DT_DLL_VL DtGlobalIdHashlist 00022 { 00023 public: 00024 00027 DtGlobalIdHashlist(bool intrusive = false); 00028 00030 virtual ~DtGlobalIdHashlist(); 00031 00036 00038 virtual DtListItem* add(const DtGlobalObjectDesignator& key, void* data); 00039 00042 virtual void* remove(const DtGlobalObjectDesignator& key); 00043 00045 virtual void* lookup(const DtGlobalObjectDesignator& key) const; 00046 virtual void* operator[](const DtGlobalObjectDesignator& key) const; 00047 00050 virtual const DtList* list() const; 00051 00052 protected: 00053 00055 DtGlobalIdHashlist(const DtGlobalIdHashlist& orig); 00056 00058 DtGlobalIdHashlist& operator=(const DtGlobalIdHashlist& orig); 00059 00060 protected: 00061 00062 DtList* myList; 00063 DtHashlist* myHashlist; 00064 }; 00065 00066 typedef DtGlobalIdHashlist DtGlobalIdHashList; 00067 00068 inline void* DtGlobalIdHashlist::operator[]( 00069 const DtGlobalObjectDesignator& key) const 00070 { 00071 return lookup(key); 00072 } 00073 00074 #endif 00075