Main Page   Namespace List   Class Hierarchy   Compound List   Namespace Members   Compound Members  

LazyInstantiation Class Reference

#include <Singleton.h>

List of all members.

Static Protected Methods

template<class T> void create (T *&ptr)


Detailed Description

Author:
Eric Crahen <crahen@cse.buffalo.edu>
Date:
<2002-06-19T07:21:52-0400>
Version:
2.2.0
The LazyInstantiation policy allows the creation and lifetime of an instance of a particular type to be managed using dynamic allocation and a singleton destroyer. This will abide by the standard C++ rules for static objects lifetimes.


Member Function Documentation

void create T *&    ptr [inline, static, protected]
 

Create an instance of an object, using new, that will be destroyed when an associated Destroyer object (allocated statically) goes out of scope.

Parameters:
ptr  reference to location to receive the address of the allocated object


The documentation for this class was generated from the following file:
Generated on Tue Aug 27 07:43:12 2002 for ZThread by doxygen1.2.17