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

MCRefCountAccessorBase Class Reference

Deriving from this class allows controlled manipulation of reference count objects. More...

#include <mcllib/MCRefCountAccessor.h>

Inheritance diagram for MCRefCountAccessorBase:

MCRefCountAccessorTmpl MCRefCountAccessorTmpl< MCThreadModel::THRMODELMULTI > MCRefCountAccessorTmpl< MCThreadModel::THRMODELSINGLE > MCRefPtr MCRefCountGetter MCRefPtrAttacher MCRefPtrDetacher List of all members.

Protected Member Functions

mcatomic_t getCnt (MCRefCount *pCtr) const
 Get the current ref count from a reference counted object.
mcatomic_t safeDecCnt (MCRefCount *pCtr) const
 Decrement the ref count for the specified object in a thread safe manner.
mcatomic_t safeIncCnt (MCRefCount *pCtr) const
 Increment the ref count for the specified object in a thread safe manner.
mcatomic_t unsafeDecCnt (MCRefCount *pCtr) const
 Decrement the ref count for the specified object in a thread unsafe manner.
mcatomic_t unsafeIncCnt (MCRefCount *pCtr) const
 Increment the ref count for the specified object in a thread unsafe manner.

Detailed Description

Deriving from this class allows controlled manipulation of reference count objects.


Member Function Documentation

mcatomic_t getCnt MCRefCount pCtr  )  const [inline, protected]
 

Get the current ref count from a reference counted object.

Parameters:
pCtr the reference counted object to obtain the count from
Returns:
the reference count of the object

mcatomic_t safeDecCnt MCRefCount pCtr  )  const [protected]
 

Decrement the ref count for the specified object in a thread safe manner.

Parameters:
pCtr the reference counted object to adjust the count on
Returns:
the new reference count

mcatomic_t safeIncCnt MCRefCount pCtr  )  const [protected]
 

Increment the ref count for the specified object in a thread safe manner.

Parameters:
pCtr the reference counted object to adjust the count on
Returns:
the new reference count

mcatomic_t unsafeDecCnt MCRefCount pCtr  )  const [inline, protected]
 

Decrement the ref count for the specified object in a thread unsafe manner.

Parameters:
pCtr the reference counted object to adjust the count on
Returns:
the new reference count

mcatomic_t unsafeIncCnt MCRefCount pCtr  )  const [inline, protected]
 

Increment the ref count for the specified object in a thread unsafe manner.

Parameters:
pCtr the reference counted object to adjust the count on
Returns:
the new reference count


Generated on Wed Jan 12 19:05:49 2005 for MCLLIB by  doxygen 1.3.9.1