HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GT_Memory.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: GT_Memory.h ( GT Library, C++)
7  *
8  * COMMENTS: Class to keep track of memory usage
9  */
10 
11 #ifndef __GT_Memory__
12 #define __GT_Memory__
13 
14 #include "GT_API.h"
15 #include <UT/UT_Memory.h>
16 
17 enum GT_MemUser {
18  GT_MEM_DEBUG = 0, // This can be used to track down discrepancies
19 
21 
22  GT_MEM_STRUCTS, // Book-keeping structures
23 
24  GT_MEM_DATA, // Memory used by data arrays
25  GT_MEM_PRIMITIVE, // Memory used by primitives
26  GT_MEM_ATTRIBLIST, // Attribute list memory
27 
28  GT_MEM_REFINE, // Memory acquired during refinement
29 
30  GT_MEM_GEO, // Geometry library memory users
31  GT_MEM_USER, // User primitive memory use
32 
33  GT_MEM_TRIM, // Trim curves
34 
35  GT_MEM_XFORM, // Transforms
36 
37  GT_MEM_MISC, // Other memory usage
38 
39  GT_MAX_MEM_USERS // Sentinal
40 };
41 
43 public:
44  SYS_MEMORY_SUBCLASS(static, , theGTMemoryTable)
45 
46 private:
47  static SYS_MemoryTable theGTMemoryTable;
48 };
49 
50 #endif
GT_MemUser
Definition: GT_Memory.h:17
#define GT_API
Definition: GT_API.h:13
#define SYS_MEMORY_SUBCLASS(STATIC, prefix, table)
Definition: SYS_Memory.h:248