| XMP Toolkit SDK 6.0.0

IMemoryAllocator.h
Go to the documentation of this file.
1 #ifndef IMemoryAllocator_h__
2 #define IMemoryAllocator_h__ 1
3
4 // =================================================================================================
5 // Copyright 2014 Adobe
6 // All Rights Reserved.
7 //
8 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms
9 // of the Adobe license agreement accompanying it. If you have received this file from a source other
10 // than Adobe, then your use, modification, or distribution of it requires the prior written permission
11 // of Adobe.
12 // =================================================================================================
13
14 #include "XMPCommon/Interfaces/BaseInterfaces/IVersionable.h"
15
16 #include "XMPCommon/XMPCommonFwdDeclarations.h"
17
18 namespace AdobeXMPCommon {
19
29 class XMP_PUBLIC IMemoryAllocator_v1
30 {
31 public:
38 virtual void * APICALL allocate( sizet size ) __NOTHROW__ = 0;
39
44 virtual void APICALL deallocate( void * ptr ) __NOTHROW__ = 0;
45
55 virtual void * APICALL reallocate( void * ptr, sizet size ) __NOTHROW__ = 0;
56 virtual ~IMemoryAllocator_v1(){}
57
58 protected:
59
60 #ifdef FRIEND_CLASS_DECLARATION
61 FRIEND_CLASS_DECLARATION();
62 #endif
63 REQ_FRIEND_CLASS_DECLARATION();
64 };
65 };
66
67 #endif // IMemoryAllocator_h__
AdobeXMPCommon::IMemoryAllocator_v1
Version1 of the interface that represents an interface to be implemented by client in case he is inte...
Definition: IMemoryAllocator.h:29
__NOTHROW__
#define __NOTHROW__
Definition: XMPCommonDefines.h:147
XMP_PUBLIC
#define XMP_PUBLIC
Definition: XMP_Environment.h:221
AdobeXMPCommon
Definition: IConfigurable.h:21
XMPCommonFwdDeclarations.h
AdobeXMPCommon::sizet
uint32 sizet
Definition: XMPCommonDefines.h:176
REQ_FRIEND_CLASS_DECLARATION
#define REQ_FRIEND_CLASS_DECLARATION()
Definition: XMPCommonDefines.h:137
IVersionable.h
AdobeXMPCommon::IMemoryAllocator_v1::~IMemoryAllocator_v1
virtual ~IMemoryAllocator_v1()
Definition: IMemoryAllocator.h:56