ADTF
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
z
Variables
Typedefs
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
i
l
m
o
r
s
t
v
Enumerator
a
b
c
d
e
g
i
l
m
n
o
r
s
t
u
v
w
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
_
a
b
c
d
e
f
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Typedefs
_
a
b
c
d
e
f
h
i
m
n
o
p
r
s
t
u
v
x
Enumerations
a
c
d
e
f
i
m
p
r
s
t
Enumerator
a
b
c
d
e
f
h
i
l
m
n
o
p
q
r
s
t
u
Related Symbols
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
w
Functions
_
o
r
Variables
Typedefs
Macros
_
a
b
c
d
e
f
g
i
l
m
o
p
r
s
t
u
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
memory_allocator_intf.h
Go to the documentation of this file.
1
7
#pragma once
8
#include <
adtfucom3/adtf_ucom3.h
>
9
11
#define CID_ADTF_MEMORY_ALLOCATOR "memory_allocator.service.adtf.cid"
12
13
namespace
adtf
14
{
15
namespace
services
16
{
17
namespace
ant
18
{
19
23
class
IMemoryAllocator
:
public
adtf::ucom::IObject
24
{
25
public
:
30
ADTF_IID
(
IMemoryAllocator
,
"memory_allocator.ant.services.adtf.iid"
);
31
32
public
:
40
virtual
tResult
Alloc
(
size_t
nBytes,
void
*& pMemory,
size_t
& nCapacity) = 0;
41
47
virtual
tResult
Free
(
void
* pMemory) = 0;
48
};
23
class
IMemoryAllocator
:
public
adtf::ucom::IObject
{
…
};
49
50
}
51
52
using
ant::IMemoryAllocator
;
53
54
}
55
56
}
adtf_ucom3.h
Copyright © Audi Electronics Venture GmbH.
tResult
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Definition
builds/digitalwerk/solutions/adtf_content/adtf_base/adtf_core/src/libraries/a_utils/include/a_utils/core/result.h:632
adtf::services::ant::IMemoryAllocator
Interface for allocation and releasing of memory.
Definition
memory_allocator_intf.h:24
adtf::services::ant::IMemoryAllocator::ADTF_IID
ADTF_IID(IMemoryAllocator, "memory_allocator.ant.services.adtf.iid")
Marks the IMemoryAllocator to be castable with the ucom_cast<>
adtf::services::ant::IMemoryAllocator::Alloc
virtual tResult Alloc(size_t nBytes, void *&pMemory, size_t &nCapacity)=0
Allocates a contigeous block of memory which is at least of size nBytes.
adtf::services::ant::IMemoryAllocator::Free
virtual tResult Free(void *pMemory)=0
Releases a block of memory that has been allocated with Alloc.
adtf::ucom::IObject
ant::IObject IObject
Alias always bringing the latest version of ant::IObject into scope.
Definition
object_intf.h:109
adtf
Namespace for entire ADTF SDK.
Definition
ddl_specification_legacy.dox:2
src
libraries
systemsdk
include
adtfsystemsdk
services
memory_allocator_intf.h
Copyright © CARIAD SE. All rights reserved | Generated on Fri May 16 2025 by doxygen 1.13.2 | GIT Commit Hash: 3eaf013baf4da4ea65dcbcfed4e240e03fe89ca2