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

counted Class Template Reference

counts the number of instances. More...

#include <boost_util.h>

Inheritance diagram for rs::rs_boost::counted:

Inheritance graph
[legend]
Collaboration diagram for counted:

Collaboration graph
[legend]
List of all members.

Public Methods

 counted ()
 ~counted ()
size_t get_instances () const
size_t get_max_instances () const

Static Private Attributes

size_t instances = 0
size_t max_instances = 0

Detailed Description

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

counts the number of instances.

When a class X is derived from counted<X> the current and maximum number of instances of X (and all classes derived from X) can be determined

Definition at line 84 of file boost_util.h.


Constructor & Destructor Documentation

counted   [inline]
 

Definition at line 88 of file boost_util.h.

~counted   [inline]
 

Definition at line 92 of file boost_util.h.


Member Function Documentation

size_t get_instances   const [inline]
 

Definition at line 94 of file boost_util.h.

Referenced by singleton< XML_Document >::singleton().

size_t get_max_instances   const [inline]
 

Definition at line 95 of file boost_util.h.


Member Data Documentation

size_t instances = 0 [static, private]
 

Definition at line 98 of file boost_util.h.

Referenced by counted< XML_Document >::counted(), counted< XML_Document >::get_instances(), and counted< XML_Document >::~counted().

size_t max_instances = 0 [static, private]
 

Definition at line 99 of file boost_util.h.

Referenced by counted< XML_Document >::counted(), and counted< XML_Document >::get_max_instances().


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