Public Member Functions | Private Member Functions | Private Attributes
karto::Referenced Class Reference

#include <Referenced.h>

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

List of all members.

Public Member Functions

kt_int32s GetReferenceCount ()
kt_int32s Reference () const
 Referenced ()
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

Default constructor

Definition at line 51 of file Referenced.cpp.

karto::Referenced::Referenced ( const Referenced ) [private]

Member Function Documentation

Gets the reference count

Returns:
reference count

Definition at line 110 of file Referenced.cpp.

const Referenced& karto::Referenced::operator= ( const Referenced ) [private]

Increases the reference count

Returns:
reference count

Definition at line 68 of file Referenced.cpp.

Decreases the reference count

Returns:
reference count

Definition at line 77 of file Referenced.cpp.

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

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 Mon Oct 6 2014 02:44:18