VR-Forces 4.1 Class Documentation
debugDrawerNameManager.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2011 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
10 
12 #include "vlutil/vlString.h"
13 #include "vlutil/vlShmPool.h"
14 #include <vector>
15 #include <pthread.h>
16 
18 {
19 public:
21  virtual ~DtDebugDrawerNameManager();
22  virtual void init();
23  virtual DtString addAndCreateNewName(int type);
24  virtual void removeName(const DtString& name);
25 
26  virtual DtString getMemoryBlockNameByIndex(unsigned int index);
27 
28  virtual void lockAccess();
29  virtual void unlockAccess();
30  virtual const std::vector<int> getMemoryBlockIndexListByType(int memoryType);
31 
32  virtual DtString blockDescription();
33 
34 protected:
36  {
38  pthread_rwlock_t mutex;
39  unsigned int count;
40  long memoryBlockNames[10];
41  int memoryBlockTypes[10];
42  };
43 
45  char* myMemoryPtr;
49  DtSharedMemoryPoolManager* myManager;
50 
51  std::vector<int> myCachedIndexList;
53 };
54 

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)