00001 // Copyright 2009-2010 Sandia Corporation. Under the terms 00002 // of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. 00003 // Government retains certain rights in this software. 00004 // 00005 // Copyright (c) 2009-2010, Sandia Corporation 00006 // All rights reserved. 00007 // 00008 // This file is part of the SST software package. For license 00009 // information, see the LICENSE file in the top level directory of the 00010 // distribution. 00011 00012 00013 00014 #ifndef _SST_POOL_H 00015 #define _SST_POOL_H 00016 00017 namespace SST { 00018 00019 template <typename ObjectT> 00020 class Pool { 00021 public: 00022 ObjectT *Alloc() { 00023 return new ObjectT; 00024 } 00025 void Dealloc( ObjectT *obj ) { 00026 delete obj; 00027 } 00028 private: 00029 }; 00030 00031 } 00032 00033 #endif