#include <RefCount.h>
Inheritance diagram for RefCount:


Public Methods | |
| RefCount (T s) | |
| Constructor a new refcounted T instance. | |
| RefCount (T *s=0) | |
| Refcounts the given pointer (Default). | |
| RefCount (const RefCount &s) | |
| Copy contructor, increases the reference count. | |
| ~RefCount () | |
| Destrutor. More... | |
| RefCount | copy () |
| Makes a copy of impl and returns a new reference count. | |
| void | swap (RefCount &s) |
| Swaps imp and count pointers from this and s. | |
| RefCount & | operator= (const RefCount &s) |
| Normal assignment operator. | |
| template<typename S> RefCount & | operator= (const RefCount< S > &s) |
| Polymorphic assignment operator template. | |
| RefCount & | operator= (T *s) |
| Assignment operator. More... | |
| T * | operator-> () |
| Returns the pointer to impl. | |
| T * | data () const |
| Returns the pointer to impl. More... | |
| unsigned int * | getCount () const |
| Returns the count. More... | |
|
|||||||||
|
Destrutor. Decreases the reference count and deletes impl if the count reaches 0. |
|
|||||||||
|
Returns the pointer to impl.
|
|
|||||||||
|
Returns the count.
|
|
||||||||||
|
Assignment operator. RefCount takes ownership of s. |