ETL  0.04.19
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
shared_object Class Reference

Shared Object Base Class. More...

#include <ETL/handle>

Inheritance diagram for shared_object:
rshared_object

Public Member Functions

virtual void ref () const
virtual bool unref () const
 Returns false if object needs to be deleted.
virtual bool unref_inactive () const
int count () const

Protected Member Functions

 shared_object ()
virtual ~shared_object ()

Private Attributes

int refcount

Detailed Description

Shared Object Base Class.

See Also
handle, loose_handle
Todo:
This needs to be documented

Definition at line 66 of file _handle.h.

Constructor & Destructor Documentation

shared_object::shared_object ( )
inlineprotected

Definition at line 75 of file _handle.h.

virtual shared_object::~shared_object ( )
inlineprotectedvirtual

Definition at line 78 of file _handle.h.

Member Function Documentation

virtual void shared_object::ref ( ) const
inlinevirtual

Definition at line 84 of file _handle.h.

References refcount.

virtual bool shared_object::unref ( ) const
inlinevirtual

Returns false if object needs to be deleted.

Definition at line 94 of file _handle.h.

References refcount.

virtual bool shared_object::unref_inactive ( ) const
inlinevirtual

Decrease reference counter without deletion of object Returns false if references exeed and object should be deleted

Definition at line 122 of file _handle.h.

References refcount.

int shared_object::count ( ) const
inline

Definition at line 140 of file _handle.h.

References refcount.

Member Data Documentation

int shared_object::refcount
mutableprivate

Definition at line 69 of file _handle.h.

Referenced by count(), ref(), unref(), and unref_inactive().


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