OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimPoolObject.h
Go to the documentation of this file.
1 //*******************************************************************
2 //
3 // License: See top level LICENSE.txt file.
4 //
5 // Author: David Burken
6 //
7 //**********************************************************************
8 // $Id: ossimPoolObject.h 9968 2006-11-29 14:01:53Z gpotts $
9 #ifndef ossimPoolObject_HEADER
10 #define ossimPoolObject_HEADER
11 
12 
16 template <class T>
18 {
19  public:
21  {
22  if(theObjectPtr)
23  {
24  cout << "deleting obj: " << (hex) << theObjectPtr << endl;
25  delete theObjectPtr;
26  theObjectPtr = NULL;
27  }
28  theAvailableFlag = false;
29  }
30 
31 
34 };
35 #endif /* #ifndef ossimPoolObject_HEADER */
Templated container for an object pointer and a flag.