Allocator.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    Allocator.h
00006  *
00007  *  Allocator.h,v 1.3 2005/11/02 07:13:02 ossama Exp
00008  *
00009  *  @author Johnny Willemsen (jwillemsen@remedy.nl)
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 /* ACE_LACKS_PRAGMA_ONCE */
00021 
00022 #include "tao/Versioned_Namespace.h"
00023 
00024 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00025 
00026 namespace TAO
00027 {
00028   /**
00029    * @class TAO_Allocator
00030    *
00031    * @brief Abstract class for TAO allocators. This will be used for derived
00032    * allocator templates that are capable of allocating a specific type of
00033    * objects
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 /* TAO_ALLOCATOR_H */

Generated on Thu Nov 9 11:54:07 2006 for TAO by doxygen 1.3.6