Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

# Keos::CRefCount< T > Class Template Reference

Implementation of the OwnershipPolicy used by CSmartPtr Provides a classic external reference counting implementation. More...

`#include <KeosSmartPtrPolicies.h>`

List of all members.

## Public Member Functions

| CRefCount ()
| Default constructor.
T * | Clone (T *Ptr)
| Clone the resource.
void | Release (T *pPtr)
| Manage the liberation of the resource.
void | Swap (CRefCount &RefCount)
| Swap two instances.

## Private Attributes

int * | m_pCounter
| Reference counter.

## Detailed Description

### template<class T>
class Keos::CRefCount< T >

Implementation of the OwnershipPolicy used by CSmartPtr Provides a classic external reference counting implementation.

Definition at line 34 of file KeosSmartPtrPolicies.h.

## Constructor & Destructor Documentation

template<class T>
Keos::CRefCount< T >::CRefCount | ( |  | ) | `[inline]`

| Default constructor. Definition at line 41 of file KeosSmartPtrPolicies.h. References int(), and Keos::CRefCount< T >::m_pCounter.

## Member Function Documentation

template<class T>
T* Keos::CRefCount< T >::Clone | ( | T * | Ptr | ) | `[inline]`

| Clone the resource. Definition at line 48 of file KeosSmartPtrPolicies.h. References Keos::CRefCount< T >::m_pCounter.

template<class T>
void Keos::CRefCount< T >::Release | ( | T * | pPtr | ) | `[inline]`

| Manage the liberation of the resource. Definition at line 57 of file KeosSmartPtrPolicies.h. References Keos::CRefCount< T >::m_pCounter.

template<class T>
void Keos::CRefCount< T >::Swap | ( | CRefCount< T > & | RefCount | ) | `[inline]`

| Swap two instances. Definition at line 69 of file KeosSmartPtrPolicies.h. References Keos::CRefCount< T >::m_pCounter.

## Member Data Documentation

template<class T>
int* Keos::CRefCount< T >::m_pCounter`[private]`

| Reference counter. Definition at line 77 of file KeosSmartPtrPolicies.h. Referenced by Keos::CRefCount< T >::Clone(), Keos::CRefCount< T >::CRefCount(), Keos::CRefCount< T >::Release(), and Keos::CRefCount< T >::Swap().

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

- KeosEngine/KeosSmartPtrPolicies.h