OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Public Attributes | List of all members
ossimPoolObject< T > Class Template Reference

Templated container for an object pointer and a flag. More...

#include <ossimPoolObject.h>

Public Member Functions

 ~ossimPoolObject ()
 

Public Attributes

bool theAvailableFlag
 
T * theObjectPtr
 

Detailed Description

template<class T>
class ossimPoolObject< T >

Templated container for an object pointer and a flag.

Definition at line 17 of file ossimPoolObject.h.

Constructor & Destructor Documentation

◆ ~ossimPoolObject()

template<class T>
ossimPoolObject< T >::~ossimPoolObject ( )
inline

Definition at line 20 of file ossimPoolObject.h.

References ossimPoolObject< T >::theAvailableFlag, and ossimPoolObject< T >::theObjectPtr.

21  {
22  if(theObjectPtr)
23  {
24  cout << "deleting obj: " << (hex) << theObjectPtr << endl;
25  delete theObjectPtr;
26  theObjectPtr = NULL;
27  }
28  theAvailableFlag = false;
29  }

Member Data Documentation

◆ theAvailableFlag

template<class T>
bool ossimPoolObject< T >::theAvailableFlag

◆ theObjectPtr

template<class T>
T* ossimPoolObject< T >::theObjectPtr

The documentation for this class was generated from the following file: