UCommon
Public Member Functions
ucommon::locked_pointer< T > Class Template Reference

Templated locked pointer for referencing locked objects of specific type. More...

#include <thread.h>

Inheritance diagram for ucommon::locked_pointer< T >:
Inheritance graph
[legend]
Collaboration diagram for ucommon::locked_pointer< T >:
Collaboration graph
[legend]

Public Member Functions

T * dup (void)
 Create a duplicate reference counted instance of the current typed object. More...
 
 locked_pointer ()
 Create an instance of a typed locked pointer.
 
T * operator* ()
 Create a duplicate reference counted instance of the current typed object by pointer reference. More...
 
void operator= (T *object)
 Replace existing object through assignment. More...
 
void replace (T *object)
 Replace existing typed object with a new one for next request. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ucommon::LockedPointer
ObjectProtocoldup (void)
 Create a duplicate reference counted instance of the current object. More...
 
 LockedPointer ()
 Create an instance of a locked pointer.
 
void operator= (ObjectProtocol *object)
 Replace existing object through assignment. More...
 
void replace (ObjectProtocol *object)
 Replace existing object with a new one for next request. More...
 

Detailed Description

template<class T>
class ucommon::locked_pointer< T >

Templated locked pointer for referencing locked objects of specific type.

This is used as typed template for the LockedPointer object reference management class. This is used to supply a typed locked instances to the typed locked_instance template class.

Author
David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org

Definition at line 1643 of file thread.h.

Member Function Documentation

template<class T>
T* ucommon::locked_pointer< T >::dup ( void  )
inline

Create a duplicate reference counted instance of the current typed object.

Returns
duplicate reference counted typed object.

Definition at line 1656 of file thread.h.

Here is the call graph for this function:

template<class T>
T* ucommon::locked_pointer< T >::operator* ( )
inline

Create a duplicate reference counted instance of the current typed object by pointer reference.

Returns
duplicate reference counted typed object.

Definition at line 1678 of file thread.h.

Here is the call graph for this function:

template<class T>
void ucommon::locked_pointer< T >::operator= ( T *  object)
inline

Replace existing object through assignment.

Parameters
objectto assign.

Definition at line 1670 of file thread.h.

template<class T>
void ucommon::locked_pointer< T >::replace ( T *  object)
inline

Replace existing typed object with a new one for next request.

Parameters
objectto register with pointer.

Definition at line 1663 of file thread.h.


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