blob: ffc07c92c1dfc2fdb14887107bea8a1a7d2f7ec3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/* -*- C++ -*- */
//=============================================================================
/**
* @file Allocator.h
*
* $Id$
*
* @author Johnny Willemsen (jwillemsen@remedy.nl)
*/
//=============================================================================
#ifndef TAO_ALLOCATOR_H
#define TAO_ALLOCATOR_H
#include /**/ "ace/pre.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
namespace TAO
{
/**
* @class TAO_Allocator
*
* @brief Abstract class for TAO allocators. This will be used for derived
* allocator templates that are capable of allocating a specific type of
* objects
*/
template <typename handler_type>
class TAO_Allocator
{
public:
virtual handler_type *allocate () = 0;
virtual void release (handler_type *ptr) = 0;
};
}
#include /**/ "ace/post.h"
#endif /* TAO_ALLOCATOR_H */
|