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

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

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 2461 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 2474 of file thread.h.


The documentation for this class was generated from the following file:
Generated by  doxygen 1.6.2-20100208