diff options
author | Stef Walter <stef@memberwebs.com> | 2004-07-22 22:30:48 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2004-07-22 22:30:48 +0000 |
commit | 879f4addd4c94492c21c36c0be98122a879907bf (patch) | |
tree | 81dba160573131e476cad13e8421aff07ccb5d11 /src/reference.h | |
parent | 7c93b2bab50b1ee28aee190a064b11daed247d83 (diff) |
- Comments and formatting changes.
Diffstat (limited to 'src/reference.h')
-rw-r--r-- | src/reference.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/reference.h b/src/reference.h index 1e68515..1a78d4c 100644 --- a/src/reference.h +++ b/src/reference.h @@ -39,6 +39,11 @@ #ifndef __REFERENCE_H__ #define __REFERENCE_H__ +/* + * Reference + * + * A basic reference counting pointer + */ template<typename C> class Reference { @@ -60,9 +65,7 @@ public: } ~Reference() - { - release(); - } + { release(); } Reference(const Reference& orig) { @@ -126,6 +129,11 @@ private: C* m_ptr; }; +/* + * Instance + * + * A basic reference counted object. + */ class Instance { public: |