Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

RWTSingleton<T>


Base Class

Data Type and Member Function Indexes
(exclusive of constructors and destructors)

Member Functions

Package

Smart Pointer

Header File

#include <rw/pointer/RWTSingleton.h>

Description

Ensures that a class has only one instance, and provides a global point of access to it. This is an Object Creational pattern. For more information, see Design Patterns, by Gamma, Helm, Johnson, and Vlissides.

Example

Protected Constructor

RWTSingleton(void);

Static Public Member Function

static RWTCountingPointer<T, RWSafeCounter>& 
instance(void);

Static Protected Member Function

static RWTCountingPointer<T, RWSafeCounter> & 
get(void);


Previous fileTop of DocumentContentsIndexNext file

©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.