TelepathyQt4: RefCounted Class Reference

| Home · All Classes · All Namespaces · Modules · Functions · Files

# RefCounted Class Reference

`#include <>>`

Inherited by MethodInvocationContext<>, AbstractClient, Account, AccountManager, Channel, ChannelDispatchOperation, ChannelRequest, ClientRegistrar, Connection, ConnectionManager, MediaStream, and MethodInvocationContext< T1, T2, T3, T4, T5, T6, T7, T8 >.

List of all members.

## Public Member Functions

- RefCounted ()
- virtual ~RefCounted ()
- void ref ()
- bool deref ()

## Public Attributes

- QAtomicInt strongref
- WeakData * wd

## Detailed Description

<TelepathyQt4/SharedPtr>

The RefCounted is designed to be used with SharedPtr or WeakPtr to implement custom {explicitly shared} classes.

See SharedPtr and WeakPtr for details.

## Constructor & Destructor Documentation

RefCounted | ( |  | ) | `[inline]`

Constructs a RefCounted object with a reference count of 0.

virtual ~RefCounted | ( |  | ) | `[inline, virtual]`

## Member Function Documentation

void ref | ( |  | ) | `[inline]`

bool deref | ( |  | ) | `[inline]`

## Member Data Documentation

QAtomicInt strongref`[mutable]`

WeakData* wd