NVIDIA Iray: Base API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
iallocator.h
Go to the documentation of this file.
1 //*****************************************************************************
2 // Copyright 1986, 2014 NVIDIA Corporation. All rights reserved.
3 //*****************************************************************************
9 //*****************************************************************************
10 
11 #ifndef MI_BASE_IALLOCATOR_H
12 #define MI_BASE_IALLOCATOR_H
13 
14 #include <mi/base/types.h>
15 #include <mi/base/iinterface.h>
17 
18 namespace mi
19 {
20 
21 namespace base
22 {
23 
49 class IAllocator : public
50  Interface_declare<0xa1836db8,0x6f63,0x4079,0x82,0x82,0xb3,0x5d,0x17,0x36,0x96,0xef>
51 {
52 public:
74  virtual void* malloc(Size size) = 0;
75 
84  virtual void free(void* memory) = 0;
85 };
86 
87  // end group mi_base_iallocator
89 
90 } // namespace base
91 } // namespace mi
92 
93 #endif // MI_BASE_IALLOCATOR_H