TDbiDatabaseManager::Cleaner Struct Reference

Helper class to handle deletion of singleton TDbiDatabaseManager. More...

#include <TDbiDatabaseManager.hxx>

Collaboration diagram for TDbiDatabaseManager::Cleaner:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Cleaner ()
 ~Cleaner ()
void Increment ()

Static Public Attributes

static int fgCount

Detailed Description

Helper class to handle deletion of singleton TDbiDatabaseManager.

Definition at line 79 of file TDbiDatabaseManager.hxx.


Constructor & Destructor Documentation

TDbiDatabaseManager::Cleaner::Cleaner (  )  [inline]

Definition at line 81 of file TDbiDatabaseManager.hxx.

References Increment().

00081 { this->Increment(); }

Here is the call graph for this function:

TDbiDatabaseManager::Cleaner::~Cleaner (  )  [inline]

Definition at line 82 of file TDbiDatabaseManager.hxx.

References fgCount, and TDbiDatabaseManager::fgInstance.

00082               {
00083      if (--fgCount==0 && TDbiDatabaseManager::fgInstance!=0) {
00084        delete TDbiDatabaseManager::fgInstance;
00085        TDbiDatabaseManager::fgInstance = 0;
00086      }
00087    }


Member Function Documentation

void TDbiDatabaseManager::Cleaner::Increment (  )  [inline]

Definition at line 88 of file TDbiDatabaseManager.hxx.

References fgCount.

Referenced by Cleaner().

00088 { ++fgCount; };

Here is the caller graph for this function:


Member Data Documentation

Definition at line 80 of file TDbiDatabaseManager.hxx.

Referenced by Increment(), and ~Cleaner().


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

Generated on 11 Aug 2013 for SKDatabase by  doxygen 1.6.1