UCommon
Public Member Functions
ucommon::shared_instance Class Reference

A templated smart pointer instance for shared singleton typed objects. More...

#include <thread.h>

Inheritance diagram for ucommon::shared_instance:
Inheritance graph
[legend]
Collaboration diagram for ucommon::shared_instance:
Collaboration graph
[legend]

Public Member Functions

const T * get (void) const
 Access pointer to typed singleton object this instance locks and references.
const T & operator* () const
 Access shared typed singleton object this instance locks and references.
const T * operator-> () const
 Access member of shared typed singleton object this instance locks and references.
 shared_instance ()
 Construct empty instance to reference shared typed singleton.
 shared_instance (shared_pointer< T > &pointer)
 Construct shared access instance of shared typed singleton from matching shared_pointer.

Detailed Description

A templated smart pointer instance for shared singleton typed objects.

This is used to access the shared lock instance of the singleton.

Author:
David Sugar <dyfet@gnutelephony.org>

Constructor & Destructor Documentation

ucommon::shared_instance::shared_instance ( shared_pointer< T > &  pointer) [inline]

Construct shared access instance of shared typed singleton from matching shared_pointer.

Parameters:
pointerto get instance from.

Definition at line 1979 of file thread.h.


The documentation for this class was generated from the following file: