Loki::TwoRefCounts Class Reference
[StrongPtr Ownership policies]

#include <StrongPtr.h>

Collaboration diagram for Loki::TwoRefCounts:

List of all members.

Protected Member Functions

 TwoRefCounts (bool strong)
 TwoRefCounts (const void *p, bool strong)
 TwoRefCounts (const TwoRefCounts &rhs, bool strong)
bool Release (bool strong)
void Increment (bool strong)
bool Decrement (bool strong)
bool HasStrongPointer (void) const
void Swap (TwoRefCounts &rhs)
void SetPointer (void *p)
void ZapPointer (void)
void *& GetPointerRef (void) const
void * GetPointer (void) const

Detailed Description

This implementation of StrongPtr's OwnershipPolicy uses a pointer to a shared instance of TwoRefCountInfo. This is the default policy for OwnershipPolicy. Some functions are trivial enough to be inline, while others are implemented elsewhere. It is not thread safe, and is intended for single-threaded environments.

Definition at line 550 of file StrongPtr.h.

The documentation for this class was generated from the following files:
Generated on Sun Feb 25 16:52:48 2007 for Loki by  doxygen 1.5.1-p1