OpenRTM-aist  1.2.1
Public Member Functions | List of all members
coil::Allocator Class Reference

Allocator class. More...

#include <Allocator.h>

Inheritance diagram for coil::Allocator:
Inheritance graph
[legend]
Collaboration diagram for coil::Allocator:
Collaboration graph
[legend]

Public Member Functions

virtual ~Allocator ()
 Destructor. More...
 
virtual void * New (size_t t) throw (std::bad_alloc)
 Create of memory allocation. More...
 
virtual void Delete (void *p) throw ()
 Delete of memory allocation. More...
 
virtual void * NewArray (size_t t) throw (std::bad_alloc)
 Create of array memory allocation. More...
 
virtual void DeleteArray (void *p) throw ()
 Delete of array memory allocation. More...
 

Additional Inherited Members

- Public Types inherited from coil::Singleton< Allocator >
typedef AllocatorSingletonClassPtr
 
typedef ::coil::Mutex Mutex
 
- Static Public Member Functions inherited from coil::Singleton< Allocator >
static Allocatorinstance ()
 Create instance. More...
 
- Protected Member Functions inherited from coil::Singleton< Allocator >
 Singleton ()
 Constructor. More...
 
 ~Singleton ()
 Destructor. More...
 
- Static Protected Attributes inherited from coil::Singleton< Allocator >
static coil::Mutex m_mutex
 Mutual exclusion object. More...
 
static Allocatorm_instance
 SingletonClass object. More...
 

Detailed Description

Allocator class.

Constructor & Destructor Documentation

virtual coil::Allocator::~Allocator ( )
inlinevirtual

Destructor.

Destructor

References Delete(), DeleteArray(), New(), and NewArray().

Member Function Documentation

virtual void coil::Allocator::Delete ( void *  p)
throw (
)
virtual

Delete of memory allocation.

Delete of memory allocation.

Parameters
pPointer to a memory allocation.

Referenced by ~Allocator().

virtual void coil::Allocator::DeleteArray ( void *  p)
throw (
)
virtual

Delete of array memory allocation.

Delete of array memory allocation.

Parameters
pPointer to a memory allocation.

Referenced by ~Allocator().

virtual void* coil::Allocator::New ( size_t  t)
throw (std::bad_alloc
)
virtual

Create of memory allocation.

Create of memory allocation.

Parameters
tAllocation size.
Returns
Pointer to a memory allocation.

Referenced by ~Allocator().

virtual void* coil::Allocator::NewArray ( size_t  t)
throw (std::bad_alloc
)
virtual

Create of array memory allocation.

Create of array memory allocation.

Parameters
tAllocation size.
Returns
Pointer to a memory allocation.

Referenced by ~Allocator().


The documentation for this class was generated from the following file: