Loki::Private::TwoRefCountInfo Class Reference
[StrongPtr Ownership policies]

#include <StrongPtr.h>

List of all members.

Public Member Functions

 TwoRefCountInfo (bool strong)
 TwoRefCountInfo (void *p, bool strong)
 ~TwoRefCountInfo (void)
bool HasStrongPointer (void) const
bool HasWeakPointer (void) const
void IncStrongCount (void)
void IncWeakCount (void)
void DecStrongCount (void)
void DecWeakCount (void)
void ZapPointer (void)
void SetPointer (void *p)
void * GetPointer (void) const
void *& GetPointerRef (void) const


Detailed Description

Implementation detail for reference counting strong and weak pointers. It maintains a void pointer and 2 reference counts. Since it is just a class for managing implementation details, it is not intended to be used directly - which is why it is in a private namespace. Each instance is a shared resource for all copointers, and there should be only one of these for each set of copointers. This class is small, trivial, and inline.

Definition at line 318 of file StrongPtr.h.


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