#include <reference_counted_object.hpp>
Public Member Functions | |
reference_counted_object () | |
reference_counted_object (const reference_counted_object &) | |
reference_counted_object & | operator= (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_ |
Definition at line 6 of file reference_counted_object.hpp.
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.
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] |
Definition at line 16 of file reference_counted_object.hpp.
References count_.
Referenced by formula_ai::evaluate(), formula_ai::formula_ai(), intrusive_ptr_add_ref(), and formula_ai::play_turn().
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] |
Definition at line 22 of file reference_counted_object.hpp.
References count_.
Referenced by game_logic::formula_callable_no_ref_count::formula_callable_no_ref_count().
int reference_counted_object::count_ [mutable, private] |
Definition at line 24 of file reference_counted_object.hpp.
Referenced by add_ref(), dec_ref(), refcount(), and turn_reference_counting_off().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |