OpenRTM-aist
1.2.2
coil
include
coil
Allocator.h
[詳解]
1
// -*- C++ -*-
20
#ifndef COIL_ALLOCATOR_H
21
#define COIL_ALLOCATOR_H
22
23
#include <stddef.h>
24
#include <new>
25
#include <
coil/Singleton.h
>
26
27
namespace
coil
28
{
42
class
Allocator
43
:
public
Singleton
<Allocator>
44
{
45
public
:
61
virtual
~Allocator
(){};
62
86
virtual
void
*
New
(
size_t
t)
throw
(std::bad_alloc);
87
107
virtual
void
Delete
(
void
* p)
throw
();
108
132
virtual
void
*
NewArray
(
size_t
t)
throw
(std::bad_alloc);
133
153
virtual
void
DeleteArray
(
void
* p)
throw
();
154
155
};
156
};
157
#endif // COIL_ALLOCATOR_H
coil::Singleton
Singleton テンプレートクラス
Definition:
Singleton.h:106
coil::Allocator::NewArray
virtual void * NewArray(size_t t)
配列用メモリ領域確保
coil::Allocator::New
virtual void * New(size_t t)
メモリ領域確保
coil::Allocator
Allocator クラス
Definition:
Allocator.h:42
coil::Allocator::DeleteArray
virtual void DeleteArray(void *p)
配列用メモリ領域解放
coil::Allocator::Delete
virtual void Delete(void *p)
メモリ領域解放
Singleton.h
Singleton template class
coil
Common Object Interface Layer
Definition:
Affinity.h:28
coil::Allocator::~Allocator
virtual ~Allocator()
デストラクタ
Definition:
Allocator.h:61
構築:
1.8.17