The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
reference_counted_object Class Reference

#include <reference_counted_object.hpp>

Inheritance diagram for reference_counted_object:
Inheritance graph

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 () const
 

Private Attributes

int count_
 

Detailed Description

Definition at line 20 of file reference_counted_object.hpp.

Constructor & Destructor Documentation

reference_counted_object::reference_counted_object ( )
inline

Definition at line 23 of file reference_counted_object.hpp.

reference_counted_object::reference_counted_object ( const reference_counted_object )
inline

Definition at line 24 of file reference_counted_object.hpp.

virtual reference_counted_object::~reference_counted_object ( )
inlinevirtual

Definition at line 28 of file reference_counted_object.hpp.

Member Function Documentation

void reference_counted_object::add_ref ( ) const
inline
void reference_counted_object::dec_ref ( ) const
inline

Definition at line 31 of file reference_counted_object.hpp.

References count_.

Referenced by intrusive_ptr_release().

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

Definition at line 25 of file reference_counted_object.hpp.

int reference_counted_object::refcount ( ) const
inline

Definition at line 33 of file reference_counted_object.hpp.

References count_.

Referenced by variant::refcount().

void reference_counted_object::turn_reference_counting_off ( ) const
inlineprotected

Member Data Documentation

int reference_counted_object::count_
mutableprivate

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