OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
include
ossim
base
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>
17
class
ossimPoolObject
18
{
19
public
:
20
~ossimPoolObject
()
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
32
bool
theAvailableFlag
;
33
T*
theObjectPtr
;
34
};
35
#endif
/* #ifndef ossimPoolObject_HEADER */
ossimPoolObject::~ossimPoolObject
~ossimPoolObject()
Definition:
ossimPoolObject.h:20
ossimPoolObject
Templated container for an object pointer and a flag.
Definition:
ossimPoolObject.h:17
ossimPoolObject::theAvailableFlag
bool theAvailableFlag
Definition:
ossimPoolObject.h:32
ossimPoolObject::theObjectPtr
T * theObjectPtr
Definition:
ossimPoolObject.h:33
Generated on Fri Aug 3 2018 08:46:52 for OSSIM - Open Source Software Image Map by
1.8.14