Allocator.cpp
Go to the documentation of this file.
1 // -*- C++ -*-
20 #include <coil/Allocator.h>
21 
22 namespace coil
23 {
24 
32  void* Allocator::New(size_t t) throw (std::bad_alloc)
33  {
34  return operator new(t);
35  }
36 
44  void Allocator::Delete(void* p) throw ()
45  {
46  operator delete(p);
47  }
48 
56  void* Allocator::NewArray(size_t t) throw (std::bad_alloc)
57  {
58  return operator new [](t);
59  }
60 
68  void Allocator::DeleteArray(void* p) throw ()
69  {
70  operator delete[](p);
71  }
72 };
73 
virtual void * NewArray(size_t t)
Create of array memory allocation.
Definition: Allocator.cpp:56
virtual void Delete(void *p)
Delete of memory allocation.
Definition: Allocator.cpp:44
virtual void DeleteArray(void *p)
Delete of array memory allocation.
Definition: Allocator.cpp:68
virtual void * New(size_t t)
Create of memory allocation.
Definition: Allocator.cpp:32
Common Object Interface Layer.


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Jun 10 2019 14:07:50