neuray API Programmer's Manual

neuraylib/iallocator.h File Reference

Description

Abstract interface for allocators.

Code Example

neuraylib/iallocator.h

‎/***************************************************************************************************
 * Copyright 2023 NVIDIA Corporation. All rights reserved.
 **************************************************************************************************/

#ifndef MI_NEURAYLIB_IALLOCATOR_H
#define MI_NEURAYLIB_IALLOCATOR_H

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

namespace mi {

namespace neuraylib {








class IAllocator : public
    mi::base::Interface_declare<0x952af060,0xe2a6,0x4bd7,0xa2,0x52,0x9f,0x6d,0x39,0xfb,0x50,0xa3,
                                base::IAllocator>
{
public:
    virtual void* malloc(Size size) = 0;

    virtual void free(void* memory) = 0;

    virtual Size 
               get_used_extra_memory() = 0;
};
 // end group mi_neuray_ineuray

} // namespace neuraylib

} // namespace mi

#endif // MI_NEURAYLIB_IALLOCATOR_H

Namespaces

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

Classes

class 
The Allocator interface class supports allocating and releasing memory dynamically and querying the amount of extra memory used in the integrating application. More...