aboutsummaryrefslogtreecommitdiffstats
path: root/src/object.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2005-07-17 20:18:14 +0000
committerVincent Richard <[email protected]>2005-07-17 20:18:14 +0000
commitdafac00334ffa0ccc32696a208b2531cb4f44947 (patch)
tree78323e15fc1daca6522c1ae68336f3ce8f0ba849 /src/object.cpp
parentAdded getName() to retrieve attachment filename. (diff)
downloadvmime-dafac00334ffa0ccc32696a208b2531cb4f44947.tar.gz
vmime-dafac00334ffa0ccc32696a208b2531cb4f44947.zip
Added unit tests for smart pointer.
Diffstat (limited to 'src/object.cpp')
-rw-r--r--src/object.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/object.cpp b/src/object.cpp
index 481a3564..dc4602c7 100644
--- a/src/object.cpp
+++ b/src/object.cpp
@@ -126,5 +126,17 @@ weak_ref <const object> object::thisWeakRef() const
}
+const int object::getStrongRefCount() const
+{
+ return m_strongCount;
+}
+
+
+const int object::getWeakRefCount() const
+{
+ return static_cast <const int>(m_weakRefs.size());
+}
+
+
} // vmime