ucc::shared_instance< T > Class Template Reference

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

#include <thread.h>

Inheritance diagram for ucc::shared_instance< T >:

Inheritance graph
[legend]
Collaboration diagram for ucc::shared_instance< T >:

Collaboration graph
[legend]

Public Member Functions

 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.
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.
const T * get (void) const
 Access pointer to typed singleton object this instance locks and references.

Detailed Description

template<class T>
class ucc::shared_instance< T >

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>

Definition at line 2432 of file thread.h.


Constructor & Destructor Documentation

template<class T >
ucc::shared_instance< T >::shared_instance ( shared_pointer< T > &  pointer  )  [inline]

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

Parameters:
pointer to get instance from.

Definition at line 2445 of file thread.h.


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

Generated on Tue Jul 28 21:43:41 2009 for UCommon by  doxygen 1.5.9