Raytrix Light Field SDK
5.0
|
A memory allocator.
Public Member Functions | |
IAllocator ()=default | |
Default constructor. More... | |
virtual | ~IAllocator ()=default |
Destructor. More... | |
virtual void * | Allocate (std::size_t nSizeInBytes)=0 |
Allocates nSizeInBytes of raw memory. More... | |
virtual void | Deallocate (void *pvPtr, std::size_t nSizeInBytes)=0 |
Deallocates nSizeInBytes of raw memory starting at pPtr. More... | |
Protected Member Functions | |
IAllocator (const IAllocator &)=default | |
Copy constructor. More... | |
IAllocator (IAllocator &&) noexcept=default | |
Move constructor. More... | |
IAllocator & | operator= (const IAllocator &)=default |
Assignment operator. More... | |
IAllocator & | operator= (IAllocator &&) noexcept=default |
Assignment operator. More... | |
|
default |
Default constructor.
|
virtualdefault |
Destructor.
|
protecteddefault |
Copy constructor.
parameter1 | The first parameter. |
|
protecteddefaultnoexcept |
Move constructor.
parameter1 | [in,out] The first parameter. |
|
pure virtual |
Allocates nSizeInBytes of raw memory.
nSizeInBytes | The size of the allocation in bytes. |
|
pure virtual |
Deallocates nSizeInBytes of raw memory starting at pPtr.
If the pointer is null, this operation is a noop.
pvPtr | [in,out] If non-null, the pointer at which the allocation starts. |
nSizeInBytes | The size of the allocation in bytes. |
|
protecteddefault |
Assignment operator.
parameter1 | The first parameter. |
|
protecteddefaultnoexcept |
Assignment operator.
parameter1 | [in,out] The first parameter. |