Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef TAO_ALLOCATOR_H
00014 #define TAO_ALLOCATOR_H
00015
00016 #include "ace/pre.h"
00017
00018 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00019 # pragma once
00020 #endif
00021
00022 #include "tao/Versioned_Namespace.h"
00023
00024 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00025
00026 namespace TAO
00027 {
00028
00029
00030
00031
00032
00033
00034
00035 template <typename handler_type>
00036 class TAO_Allocator
00037 {
00038 public:
00039
00040 virtual ~TAO_Allocator (void) {}
00041
00042 virtual handler_type *allocate () = 0;
00043 virtual void release (handler_type *ptr) = 0;
00044 };
00045 }
00046
00047 TAO_END_VERSIONED_NAMESPACE_DECL
00048
00049 #include "ace/post.h"
00050 #endif