libcppa  Version 0.1
Public Member Functions
cppa::ref_counted Class Reference

#include <ref_counted.hpp>

Inheritance diagram for cppa::ref_counted:
cppa::channel cppa::message_queue cppa::process_information cppa::actor cppa::group cppa::detail::abstract_actor< actor > cppa::local_actor cppa::actor_proxy cppa::detail::abstract_actor< local_actor > cppa::detail::converted_thread_context cppa::detail::scheduled_actor

List of all members.

Public Member Functions

void ref ()
bool deref ()
bool unique ()

Detailed Description

A (thread safe) base class for reference counted objects with an atomic reference count.

Serves the requirements of intrusive_ptr.


Member Function Documentation

bool cppa::ref_counted::deref ( )

Decreases reference cound by one.

Returns:
true if there are still references to this object (reference count > 0); otherwise false.
void cppa::ref_counted::ref ( )

Increases reference count by one.

bool cppa::ref_counted::unique ( )

Queries if there is exactly one reference.

Returns:
true if reference count is one; otherwise false.

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