neuray API Programmer's Manual

base/iallocator.h File Reference

Description

Allocator interface class to dynamically allocate and deallocate memory. See Interface Framework Technology.

Code Example

base/iallocator.h

‎//*****************************************************************************
// Copyright 1986, 2016 NVIDIA Corporation. All rights reserved.
//*****************************************************************************
//*****************************************************************************

#ifndef MI_BASE_IALLOCATOR_H
#define MI_BASE_IALLOCATOR_H

#include <mi/base/types.h>
#include <mi/base/iinterface.h>
#include <mi/base/interface_declare.h>

namespace mi
{

namespace base
{

class IAllocator : public
    Interface_declare<0xa1836db8,0x6f63,0x4079,0x82,0x82,0xb3,0x5d,0x17,0x36,0x96,0xef>
{
public:
    virtual void* malloc(Size size) = 0;

    virtual void free(void* memory) = 0;
};

 // end group mi_base_iallocator

} // namespace base
} // namespace mi

#endif // MI_BASE_IALLOCATOR_H

Namespaces

namespace 
Common namespace for APIs of NVIDIA Advanced Rendering Center GmbH. More...
namespace 
Namespace for the Base API. More...

Classes

class 
The IAllocator interface class supports allocating and releasing memory dynamically. More...