Home · All Classes · All Namespaces · Modules · Functions · Files |
Helper container for safe management of handle lifetimes. Every handle in a ReferencedHandles container is guaranteed to be valid (and stay valid, as long it's in at least one ReferencedHandles container). More...
#include <TelepathyQt4/ReferencedHandles>
Helper container for safe management of handle lifetimes. Every handle in a ReferencedHandles container is guaranteed to be valid (and stay valid, as long it's in at least one ReferencedHandles container).
The class offers a QList-style API. However, from the mutable operations, only the operations for which the validity guarantees can be preserved are provided. This means no functions which can add an arbitrary handle to the container are included - the only way to add handles to the container is to reference them using Connection::referenceHandles() and appending the resulting ReferenceHandles instance.
ReferencedHandles is a implicitly shared class.
typedef UIntList::const_iterator Tp::ReferencedHandles::const_iterator |
Tp::ReferencedHandles::ReferencedHandles | ( | ) |
Tp::ReferencedHandles::ReferencedHandles | ( | const ReferencedHandles & | other | ) |
Tp::ReferencedHandles::~ReferencedHandles | ( | ) |
ConnectionPtr Tp::ReferencedHandles::connection | ( | ) | const |
HandleType Tp::ReferencedHandles::handleType | ( | ) | const |
uint Tp::ReferencedHandles::at | ( | int | i | ) | const |
uint Tp::ReferencedHandles::back | ( | ) | const [inline] |
uint Tp::ReferencedHandles::first | ( | ) | const [inline] |
uint Tp::ReferencedHandles::front | ( | ) | const [inline] |
uint Tp::ReferencedHandles::last | ( | ) | const [inline] |
uint Tp::ReferencedHandles::value | ( | int | i, |
uint | defaultValue = 0 |
||
) | const |
ReferencedHandles::const_iterator Tp::ReferencedHandles::begin | ( | ) | const |
const_iterator Tp::ReferencedHandles::constBegin | ( | ) | const [inline] |
const_iterator Tp::ReferencedHandles::constEnd | ( | ) | const [inline] |
ReferencedHandles::const_iterator Tp::ReferencedHandles::end | ( | ) | const |
bool Tp::ReferencedHandles::contains | ( | uint | handle | ) | const |
int Tp::ReferencedHandles::count | ( | uint | handle | ) | const |
int Tp::ReferencedHandles::count | ( | ) | const [inline] |
bool Tp::ReferencedHandles::empty | ( | ) | const [inline] |
bool Tp::ReferencedHandles::endsWith | ( | uint | handle | ) | const [inline] |
int Tp::ReferencedHandles::indexOf | ( | uint | handle, |
int | from = 0 |
||
) | const |
bool Tp::ReferencedHandles::isEmpty | ( | ) | const |
int Tp::ReferencedHandles::lastIndexOf | ( | uint | handle, |
int | from = -1 |
||
) | const |
int Tp::ReferencedHandles::length | ( | ) | const [inline] |
ReferencedHandles Tp::ReferencedHandles::mid | ( | int | pos, |
int | length = -1 |
||
) | const |
int Tp::ReferencedHandles::size | ( | ) | const |
bool Tp::ReferencedHandles::startsWith | ( | uint | handle | ) | const [inline] |
void Tp::ReferencedHandles::append | ( | const ReferencedHandles & | another | ) | [inline] |
void Tp::ReferencedHandles::clear | ( | ) |
void Tp::ReferencedHandles::move | ( | int | from, |
int | to | ||
) |
void Tp::ReferencedHandles::pop_back | ( | ) | [inline] |
void Tp::ReferencedHandles::pop_front | ( | ) | [inline] |
int Tp::ReferencedHandles::removeAll | ( | uint | handle | ) |
void Tp::ReferencedHandles::removeAt | ( | int | i | ) |
void Tp::ReferencedHandles::removeFirst | ( | ) | [inline] |
void Tp::ReferencedHandles::removeLast | ( | ) | [inline] |
bool Tp::ReferencedHandles::removeOne | ( | uint | handle | ) |
void Tp::ReferencedHandles::swap | ( | int | i, |
int | j | ||
) |
uint Tp::ReferencedHandles::takeAt | ( | int | i | ) |
uint Tp::ReferencedHandles::takeFirst | ( | ) | [inline] |
uint Tp::ReferencedHandles::takeLast | ( | ) | [inline] |
bool Tp::ReferencedHandles::operator!= | ( | const ReferencedHandles & | another | ) | const [inline] |
bool Tp::ReferencedHandles::operator!= | ( | const UIntList & | another | ) | const [inline] |
ReferencedHandles Tp::ReferencedHandles::operator+ | ( | const ReferencedHandles & | another | ) | const |
ReferencedHandles& Tp::ReferencedHandles::operator+= | ( | const ReferencedHandles & | another | ) | [inline] |
ReferencedHandles& Tp::ReferencedHandles::operator<< | ( | const ReferencedHandles & | another | ) | [inline] |
ReferencedHandles & Tp::ReferencedHandles::operator= | ( | const ReferencedHandles & | another | ) |
bool Tp::ReferencedHandles::operator== | ( | const ReferencedHandles & | another | ) | const |
bool Tp::ReferencedHandles::operator== | ( | const UIntList & | list | ) | const |
uint Tp::ReferencedHandles::operator[] | ( | int | i | ) | const [inline] |
UIntList Tp::ReferencedHandles::toList | ( | ) | const |
QSet<uint> Tp::ReferencedHandles::toSet | ( | ) | const [inline] |
std::list<uint> Tp::ReferencedHandles::toStdList | ( | ) | const [inline] |
QVector<uint> Tp::ReferencedHandles::toVector | ( | ) | const [inline] |
Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation | Telepathy-Qt4 0.6.5 |