All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
blaze::RefCount Class Reference

Reference count management class for a particular memory resource.The RefCount class manages the reference counting for a shared memory resource. More...

#include <SharedPtr.h>

Public Member Functions

 RefCount ()
 Default constructor for RefCount.
 
template<typename Type >
 RefCount (Type *ptr)
 Initialization constructor for RefCount.
 
 RefCount (const RefCount &count)
 Copy constructor for RefCount. More...
 
 ~RefCount ()
 Destructor for RefCount.
 
RefCountoperator= (const RefCount &count)
 Copy assignement operator for RefCount. More...
 
Utility variables
void swap (RefCount &count) throw ()
 Swapping the contents of two reference counters. More...
 

Private Attributes

Member variables
SharedCountBasecounter_
 Shared reference counter.
 

Detailed Description

Reference count management class for a particular memory resource.

The RefCount class manages the reference counting for a shared memory resource.

Constructor & Destructor Documentation

blaze::RefCount::RefCount ( const RefCount count)
inline

Copy constructor for RefCount.

Parameters
countThe reference counter to be copied.

Member Function Documentation

RefCount & blaze::RefCount::operator= ( const RefCount count)
inline

Copy assignement operator for RefCount.

Parameters
countThe reference counter to be copied.
Returns
Reference to the assigned reference counter.
void blaze::RefCount::swap ( RefCount count) throw ()
inline

Swapping the contents of two reference counters.

Parameters
countThe reference counter to be swapped.
Returns
void
Exceptions
no-throwguarantee.

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