KIMAP Library
KIMAP::ImapInterval Class Reference
Represents a single interval in an ImapSet. More...
#include <imapset.h>
Public Types | |
typedef qint64 | Id |
typedef QList< ImapInterval > | List |
Public Member Functions | |
Id | begin () const |
Id | end () const |
bool | hasDefinedBegin () const |
bool | hasDefinedEnd () const |
ImapInterval (Id begin, Id end=0) | |
ImapInterval (const ImapInterval &other) | |
ImapInterval () | |
ImapInterval & | operator= (const ImapInterval &other) |
bool | operator== (const ImapInterval &other) const |
void | setBegin (Id value) |
void | setEnd (Id value) |
Id | size () const |
QByteArray | toImapSequence () const |
~ImapInterval () |
Detailed Description
Represents a single interval in an ImapSet.This class is implicitly shared.
Definition at line 37 of file imapset.h.
Member Typedef Documentation
typedef qint64 KIMAP::ImapInterval::Id |
typedef QList<ImapInterval> KIMAP::ImapInterval::List |
Constructor & Destructor Documentation
ImapInterval::ImapInterval | ( | ) |
ImapInterval::ImapInterval | ( | const ImapInterval & | other | ) |
Create a new interval.
- Parameters:
-
begin The begin of the interval. end Keep default (0) to just set the interval begin
Definition at line 69 of file imapset.cpp.
ImapInterval::~ImapInterval | ( | ) |
Member Function Documentation
ImapInterval::Id ImapInterval::begin | ( | ) | const |
Returns the begin of this interval.
The value is the smallest value part of the interval. Only valid if begin is defined.
Definition at line 104 of file imapset.cpp.
ImapInterval::Id ImapInterval::end | ( | ) | const |
Returns the end of this interval.
This value is the largest value part of the interval. Only valid if hasDefinedEnd() returned true.
Definition at line 114 of file imapset.cpp.
bool ImapInterval::hasDefinedBegin | ( | ) | const |
bool ImapInterval::hasDefinedEnd | ( | ) | const |
ImapInterval & ImapInterval::operator= | ( | const ImapInterval & | other | ) |
bool ImapInterval::operator== | ( | const ImapInterval & | other | ) | const |
void ImapInterval::setBegin | ( | Id | value | ) |
void ImapInterval::setEnd | ( | Id | value | ) |
ImapInterval::Id ImapInterval::size | ( | ) | const |
Returns the size of this interval.
Size is only defined for finite intervals.
Definition at line 92 of file imapset.cpp.
QByteArray ImapInterval::toImapSequence | ( | ) | const |
The documentation for this class was generated from the following files: