reference_counted_object Class Reference

#include <reference_counted_object.hpp>

Inheritance diagram for reference_counted_object:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 reference_counted_object ()
 reference_counted_object (const reference_counted_object &)
reference_counted_objectoperator= (const reference_counted_object &)
virtual ~reference_counted_object ()
void add_ref () const
void dec_ref () const
int refcount () const

Protected Member Functions

void turn_reference_counting_off ()

Private Attributes

int count_


Detailed Description

Definition at line 6 of file reference_counted_object.hpp.


Constructor & Destructor Documentation

reference_counted_object::reference_counted_object (  )  [inline]

Definition at line 9 of file reference_counted_object.hpp.

reference_counted_object::reference_counted_object ( const reference_counted_object  )  [inline]

Definition at line 10 of file reference_counted_object.hpp.

virtual reference_counted_object::~reference_counted_object (  )  [inline, virtual]

Definition at line 14 of file reference_counted_object.hpp.


Member Function Documentation

reference_counted_object& reference_counted_object::operator= ( const reference_counted_object  )  [inline]

Definition at line 11 of file reference_counted_object.hpp.

void reference_counted_object::add_ref (  )  const [inline]

void reference_counted_object::dec_ref (  )  const [inline]

Definition at line 17 of file reference_counted_object.hpp.

References count_.

Referenced by intrusive_ptr_release().

int reference_counted_object::refcount (  )  const [inline]

Definition at line 19 of file reference_counted_object.hpp.

References count_.

Referenced by variant::refcount().

void reference_counted_object::turn_reference_counting_off (  )  [inline, protected]


Member Data Documentation

int reference_counted_object::count_ [mutable, private]


The documentation for this class was generated from the following file:

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs