Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
karto::Referenced Class Reference

#include <Referenced.h>

Inheritance diagram for karto::Referenced:
Inheritance graph
[legend]

Public Member Functions

 Referenced ()
 

Protected Member Functions

kt_int32s GetReferenceCount ()
 
kt_int32s Reference () const
 
kt_int32s Unreference () const
 
kt_int32s UnreferenceNoDelete () const
 

Private Member Functions

const Referencedoperator= (const Referenced &)
 
 Referenced (const Referenced &)
 

Private Attributes

ReferencedPrivatem_pReferencedPrivate
 

Detailed Description

Base class for reference-counted objects. Combined with SmartPointer<T>, any subclass of Referenced will automatically be garbage collected when unreferenced.

Definition at line 42 of file Referenced.h.

Constructor & Destructor Documentation

karto::Referenced::Referenced ( )

Default constructor

Definition at line 51 of file Referenced.cpp.

karto::Referenced::Referenced ( const Referenced )
private

Member Function Documentation

kt_int32s karto::Referenced::GetReferenceCount ( )
protected

Gets the reference count

Returns
reference count

Definition at line 110 of file Referenced.cpp.

const Referenced& karto::Referenced::operator= ( const Referenced )
private
kt_int32s karto::Referenced::Reference ( ) const
protected

public: /** Increases the reference count

Returns
reference count

Definition at line 68 of file Referenced.cpp.

kt_int32s karto::Referenced::Unreference ( ) const
protected

Decreases the reference count

Returns
reference count

Definition at line 77 of file Referenced.cpp.

kt_int32s karto::Referenced::UnreferenceNoDelete ( ) const
protected

Decreases the reference count. Does not delete the object if the reference count goes to 0.

Returns
reference count

Definition at line 99 of file Referenced.cpp.

Member Data Documentation

ReferencedPrivate* karto::Referenced::m_pReferencedPrivate
private

Definition at line 91 of file Referenced.h.


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


nav2d_karto
Author(s): Sebastian Kasperski
autogenerated on Tue Nov 7 2017 06:02:36