Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / tao / Allocator.h
blobc4d7436e2d9ce6c4ff69a9444c360d673bf151df
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Allocator.h
7 * @author Johnny Willemsen (jwillemsen@remedy.nl)
8 */
9 //=============================================================================
11 #ifndef TAO_ALLOCATOR_H
12 #define TAO_ALLOCATOR_H
14 #include /**/ "ace/pre.h"
16 #if !defined (ACE_LACKS_PRAGMA_ONCE)
17 # pragma once
18 #endif /* ACE_LACKS_PRAGMA_ONCE */
20 #include /**/ "tao/Versioned_Namespace.h"
22 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
24 namespace TAO
26 /**
27 * @class TAO_Allocator
29 * @brief Abstract class for TAO allocators. This will be used for derived
30 * allocator templates that are capable of allocating a specific type of
31 * objects
33 template <typename handler_type>
34 class TAO_Allocator
36 public:
37 virtual ~TAO_Allocator () {}
39 virtual handler_type *allocate () = 0;
40 virtual void release (handler_type *ptr) = 0;
44 TAO_END_VERSIONED_NAMESPACE_DECL
46 #include /**/ "ace/post.h"
47 #endif /* TAO_ALLOCATOR_H */