Google
Web alhem.net

Cgi::RefCount Class Reference

#include <RefCount.h>

Collaboration diagram for Cgi::RefCount:

Collaboration graph
List of all members.

Public Member Functions

 RefCount ()
 ~RefCount ()
int Increase ()
int Decrease ()

Private Member Functions

 RefCount (const RefCount &)
RefCountoperator= (const RefCount &)

Private Attributes

int m_count

Detailed Description

Definition at line 9 of file RefCount.h.


Constructor & Destructor Documentation

Cgi::RefCount::RefCount (  ) 

Definition at line 10 of file RefCount.cpp.

00010                    : m_count(1)
00011 {
00012 }

Cgi::RefCount::~RefCount (  ) 

Definition at line 15 of file RefCount.cpp.

00016 {
00017 }

Cgi::RefCount::RefCount ( const RefCount  )  [inline, private]

Definition at line 19 of file RefCount.h.

00019 {} // copy constructor


Member Function Documentation

int Cgi::RefCount::Increase (  ) 

Definition at line 20 of file RefCount.cpp.

References m_count.

00021 {
00022         return ++m_count;
00023 }

int Cgi::RefCount::Decrease (  ) 

Definition at line 26 of file RefCount.cpp.

References m_count.

00027 {
00028         return --m_count;
00029 }

RefCount& Cgi::RefCount::operator= ( const RefCount  )  [inline, private]

Definition at line 20 of file RefCount.h.

00020 { return *this; } // assignment operator


Member Data Documentation

int Cgi::RefCount::m_count [private]

Definition at line 22 of file RefCount.h.

Referenced by Decrease(), and Increase().


The documentation for this class was generated from the following files:
Generated for cgi++ by doxygen 1.3.7

Page, code, and content Copyright (C) 2004 by Anders Hedström