NAVTOR SDK  v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
memory_interface.h
Go to the documentation of this file.
1 #ifndef SDK_BASE_LIBRARY_MEMORY_INTERFACE_H_
11 #define SDK_BASE_LIBRARY_MEMORY_INTERFACE_H_
12 
13 #include <base/inc/platform.h>
14 #include <base/inc/base_types.h>
15 #include <base/inc/sdk_results.h>
17 
21 {
25  // SDKAllocatorType_FixedSize = 0x03, ///< optimized for same size allocations. (Small object allocator.)
26  // SDKAllocatorType_FixedSize_MT = 0x04, ///< optimized for same size allocations, thread safe. (Small object allocator.)
28 };
29 
32 SDK_EXTERN_C SDK_BASE_LIBRARY_EXPORT_API SDKResult SDK_APICALLTYPE
33  SDKCreateMemoryAllocator(SDKAllocatorType type, const SDKAny& parameter,
34  sdk::base::IMemoryAllocator** allocator);
35 
36 #endif // SDK_BASE_LIBRARY_MEMORY_INTERFACE_H_
sdk_results.h
A list of SDK error/return results.
base_types.h
SDK base types.
SDKAllocatorType_Default
@ SDKAllocatorType_Default
ordinary new / delete are used.
Definition: memory_interface.h:22
SDKAllocatorType
SDKAllocatorType
Allocator types.
Definition: memory_interface.h:20
SDKAllocatorType_PrivateHeap
@ SDKAllocatorType_PrivateHeap
all memory operation goes to separate heap.
Definition: memory_interface.h:27
SDKAllocatorType_Buffer
@ SDKAllocatorType_Buffer
optimized for short time w/o free allocation.
Definition: memory_interface.h:23
SDKAllocatorType_Buffer_MT
@ SDKAllocatorType_Buffer_MT
optimized for short time w/o free allocation, thread safe.
Definition: memory_interface.h:24
SDKResult
SDKInt32 SDKResult
Type of all error or return codes which SDK functions can end with.
Definition: sdk_results.h:17
sdk::base::IMemoryAllocator
Memory allocator interface.
Definition: allocator_interface.h:26
allocator_interface.h
Memory allocator interface.
platform.h
Describes the platform constants.
SDKCreateMemoryAllocator
SDK_EXTERN_C SDK_BASE_LIBRARY_EXPORT_API SDKResult SDK_APICALLTYPE SDKCreateMemoryAllocator(SDKAllocatorType type, const SDKAny &parameter, sdk::base::IMemoryAllocator **allocator)
Creates specified allocator.