From dafac00334ffa0ccc32696a208b2531cb4f44947 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sun, 17 Jul 2005 20:18:14 +0000 Subject: Added unit tests for smart pointer. --- src/object.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/object.cpp') 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 object::thisWeakRef() const } +const int object::getStrongRefCount() const +{ + return m_strongCount; +} + + +const int object::getWeakRefCount() const +{ + return static_cast (m_weakRefs.size()); +} + + } // vmime -- cgit v1.2.3