 |
NAVTOR SDK
v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
|
|
Go to the documentation of this file. 1 #ifndef SDK_BASE_MEMORY_ALLOCATOR_INTERFACE_H_
11 #define SDK_BASE_MEMORY_ALLOCATOR_INTERFACE_H_
21 class IMemoryAllocator;
30 virtual SDKResult SDK_CALLTYPE
Alloc(SDKUInt64 size,
void** ptr)
throw() = 0;
33 void** ptr)
throw() = 0;
45 #endif // SDK_BASE_MEMORY_ALLOCATOR_INTERFACE_H_
A list of SDK error/return results.
Interfaces wrapper with reference count control.
SDKInt32 SDKResult
Type of all error or return codes which SDK functions can end with.
Definition: sdk_results.h:17
Memory allocator interface.
Definition: allocator_interface.h:26
A smart pointer class for managing SDK components interface pointers.
Definition: sdk_ref_ptr.h:23
Common base SDK interfaces.
virtual SDKResult SDK_CALLTYPE Realloc(SDKUInt64 new_size, void **ptr)=0
Reallocates memory.
Base interface for all SDK interfaces.
Definition: sdk_component_interface.h:41
virtual SDKResult SDK_CALLTYPE Alloc(SDKUInt64 size, void **ptr)=0
Allocates memory.
virtual SDKResult SDK_CALLTYPE Free(void **ptr)=0
Frees memory.