Singleton Class Reference

Collaboration diagram for Singleton:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ~Singleton ()

Static Public Member Functions

static SingletonGetInstance ()

Public Attributes

int a

Private Member Functions

 Singleton (int _a)
 Singleton (const Singleton &)
Singletonoperator= (const Singleton &other)

Static Private Attributes

static Mutex mutex


Detailed Description

Definition at line 21 of file Singleton.cpp.


Constructor & Destructor Documentation

Singleton::~Singleton (  )  [inline]

Definition at line 25 of file Singleton.cpp.

Singleton::Singleton ( int  _a  )  [inline, private]

Definition at line 28 of file Singleton.cpp.

Singleton::Singleton ( const Singleton  )  [private]


Member Function Documentation

Singleton * Singleton::GetInstance (  )  [static]

Definition at line 40 of file Singleton.cpp.

References mutex.

Referenced by main().

Here is the caller graph for this function:

Singleton& Singleton::operator= ( const Singleton other  )  [private]


Member Data Documentation

Definition at line 24 of file Singleton.cpp.

Referenced by main().

Mutex Singleton::mutex [static, private]

Definition at line 31 of file Singleton.cpp.

Referenced by GetInstance().


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

Generated on Fri Mar 20 12:41:18 2009 for Singleton Design Pattern by  doxygen 1.5.8