00001 //#include <stdio.h> 00002 00003 #include "RefCount.h" 00004 00005 00006 namespace Cgi 00007 { 00008 00009 00010 RefCount::RefCount() : m_count(1) 00011 { 00012 } 00013 00014 00015 RefCount::~RefCount() 00016 { 00017 } 00018 00019 00020 int RefCount::Increase() 00021 { 00022 return ++m_count; 00023 } 00024 00025 00026 int RefCount::Decrease() 00027 { 00028 return --m_count; 00029 } 00030 00031 00032 } // namespace Cgi 00033 00034