Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

singleton Class Template Reference

ensure that only one object of a class may be constructed. More...

#include <boost_util.h>

Inheritance diagram for rs::rs_boost::singleton:

Inheritance graph
[legend]
Collaboration diagram for singleton:

Collaboration graph
[legend]
List of all members.

Public Methods

 singleton ()
 throws err::InternalError when a second instance is constructed. More...

 ~singleton ()

Detailed Description

template<class X>
class rs::rs_boost::singleton< X >

ensure that only one object of a class may be constructed.

Simply derive your class from singleton.

            class MyClass : singleton<MyClass> { ... };

Definition at line 112 of file boost_util.h.


Constructor & Destructor Documentation

singleton   [inline]
 

throws err::InternalError when a second instance is constructed.

Definition at line 115 of file boost_util.h.

~singleton   [inline]
 

Definition at line 118 of file boost_util.h.


The documentation for this class was generated from the following file:
Contact me in case of errors or questions.
This documentation is powered by Doxygen.
(C) 2000-2002 Doxygen