Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Threads Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWTSingleton<T>

Module:  Threads   Package:  Smart Pointer


Base Class

Local Index

Members

Header File

#include <rw/pointer/RWTSingleton.h>

Description

RWTSingleton 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

Static Public Member Function

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

Public Destructor

~RWTSingleton();

Protected Constructor

RWTSingleton();

Static Protected Member Function

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


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.