shared_object Class Reference

#include <shared.hpp>

Inheritance diagram for shared_object:

Inheritance graph
[legend]
Collaboration diagram for shared_object:

Collaboration graph
[legend]

List of all members.


Detailed Description

Definition at line 46 of file shared.hpp.


Public Member Functions

void attach ()
bool detach ()
 Returns true if the object deleted itself.
const int & get_ref_count () const
 shared_object ()
virtual ~shared_object ()

Private Attributes

int ref_count

Constructor & Destructor Documentation

shared_object (  ) 

Definition at line 42 of file shared.cpp.

~shared_object (  )  [virtual]

Definition at line 48 of file shared.cpp.


Member Function Documentation

void attach (  ) 

bool detach (  ) 

Returns true if the object deleted itself.

Definition at line 59 of file shared.cpp.

References shared_object::ref_count.

Referenced by string::make_null(), string::unshare(), font::~font(), and texture::~texture().

const int& get_ref_count (  )  const [inline]

Definition at line 57 of file shared.hpp.

Referenced by string::unshare().


Member Data Documentation

int ref_count [private]

Definition at line 49 of file shared.hpp.

Referenced by shared_object::attach(), and shared_object::detach().


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

Generated on Sat Mar 1 13:50:06 2008 for Periapsis Project by  doxygen 1.5.5