Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

Phx::LockedPtrInterface< T > Class Template Reference

The LockedPtrInterface class is like PtrInterface but provides thread-safe reference counting. More...

#include <PhxPtrInterface.h>

List of all members.

Public Types

typedef uint32_t ReferenceCount

Public Member Functions

void newReference (void) const
 Adds a reference to this object.
void deleteReference (void) const
 Deletes a reference to this object.
ReferenceCount referenceCount () const
 Returns the number of references to this object.


Detailed Description

template<class T>
class Phx::LockedPtrInterface< T >

The LockedPtrInterface class is like PtrInterface but provides thread-safe reference counting.

This should be used in place of PtrInterface whenever the object will be shared across threads.

See also:
PtrInterface

Ptr


Member Function Documentation

template<class T>
void Phx::LockedPtrInterface< T >::deleteReference void   )  const [inline]
 

Deletes a reference to this object.

Called by the Ptr class when a reference is dropped.

template<class T>
void Phx::LockedPtrInterface< T >::newReference void   )  const [inline]
 

Adds a reference to this object.

Called by the Ptr class when a new reference is created.

template<class T>
ReferenceCount Phx::LockedPtrInterface< T >::referenceCount  )  const [inline]
 

Returns the number of references to this object.

Returns:
The current reference count of this object.


The documentation for this class was generated from the following file:
Generated on Mon Jul 10 19:45:30 2006 for Phoenix OSFS by  doxygen 1.4.2