KIMAP
imapset.cpp
318 std::sort(d->intervals.begin(), d->intervals.end(), [](const ImapInterval &lhs, const ImapInterval &rhs) {
T & first()
KCALENDARCORE_EXPORT QDataStream & operator<<(QDataStream &out, const KCalendarCore::Alarm::Ptr &)
bool hasDefinedBegin() const
Returns true if this interval has a defined begin.
Definition: imapset.cpp:95
int count(const T &value) const const
static ImapSet fromImapSequenceSet(const QByteArray &sequence)
Return the set corresponding to the given IMAP-compatible QByteArray representation.
Definition: imapset.cpp:285
QByteArray number(int n, int base)
QList< QByteArray > split(char sep) const const
QList::const_iterator constBegin() const const
QByteArray toImapSequence() const
Converts this set into an IMAP compatible sequence.
Definition: imapset.cpp:132
void reserve(int alloc)
Represents a set of natural numbers (1->∞) in a as compact as possible form.
Definition: imapset.h:126
bool isEmpty() const const
ImapInterval::List intervals() const
Returns the intervals this set consists of.
Definition: imapset.cpp:300
QList::const_iterator constEnd() const const
QByteArray toImapSequenceSet() const
Returns a IMAP-compatible QByteArray representation of this set.
Definition: imapset.cpp:262
QList::iterator begin()
void optimize()
Optimizes the ImapSet by sorting and merging overlapping intervals.
Definition: imapset.cpp:310
static ImapInterval fromImapSequence(const QByteArray &sequence)
Return the interval corresponding to the given IMAP-compatible QByteArray representation.
Definition: imapset.cpp:149
QList::iterator end()
bool hasDefinedEnd() const
Returns true if this intercal has been defined.
Definition: imapset.cpp:105
bool isEmpty() const
Returns true if this set doesn't contains any values.
Definition: imapset.cpp:305
QVector< V > values(const QMultiHash< K, V > &c)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Dec 3 2023 03:51:44 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Dec 3 2023 03:51:44 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.