summaryrefslogtreecommitdiff
path: root/src/reference.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/reference.h')
-rw-r--r--src/reference.h14
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: