qBittorrent
|
#include <indexrange.h>
Classes | |
class | Iterator |
Public Types | |
using | IndexType = Index |
using | IndexDiffType = IndexDiff |
Public Member Functions | |
constexpr | IndexRange () |
constexpr | IndexRange (const IndexType first, const IndexDiffType size) |
constexpr | IndexRange (const IndexInterval< IndexType > &interval) |
constexpr Iterator | begin () const |
constexpr Iterator | end () const |
constexpr IndexDiffType | size () const |
constexpr IndexType | first () const |
constexpr IndexType | last () const |
constexpr bool | isEmpty () const |
Private Attributes | |
IndexType | m_first |
IndexDiffType | m_size |
Definition at line 70 of file indexrange.h.
using IndexRange< Index, IndexDiff >::IndexDiffType = IndexDiff |
Definition at line 74 of file indexrange.h.
using IndexRange< Index, IndexDiff >::IndexType = Index |
Definition at line 73 of file indexrange.h.
|
inlineconstexpr |
Definition at line 118 of file indexrange.h.
|
inlineconstexpr |
Definition at line 124 of file indexrange.h.
|
inlineconstexpr |
Definition at line 130 of file indexrange.h.
|
inlineconstexpr |
Definition at line 136 of file indexrange.h.
References IndexRange< Index, IndexDiff >::m_first.
|
inlineconstexpr |
Definition at line 141 of file indexrange.h.
References IndexRange< Index, IndexDiff >::m_first, and IndexRange< Index, IndexDiff >::m_size.
|
inlineconstexpr |
Definition at line 151 of file indexrange.h.
References IndexRange< Index, IndexDiff >::m_first.
Referenced by BitTorrent::TorrentImpl::applyFirstLastPiecePriority(), TorrentsController::filesAction(), and anonymous_namespace{piecesbar.cpp}::PieceIndexToImagePos::imagePos().
|
inlineconstexpr |
Definition at line 161 of file indexrange.h.
References IndexRange< Index, IndexDiff >::m_size.
Referenced by BitTorrent::TorrentImpl::availableFileFractions().
|
inlineconstexpr |
Definition at line 156 of file indexrange.h.
References IndexRange< Index, IndexDiff >::m_first, and IndexRange< Index, IndexDiff >::m_size.
Referenced by BitTorrent::TorrentImpl::applyFirstLastPiecePriority(), TorrentsController::filesAction(), and anonymous_namespace{piecesbar.cpp}::PieceIndexToImagePos::imagePos().
|
inlineconstexpr |
Definition at line 146 of file indexrange.h.
References IndexRange< Index, IndexDiff >::m_size.
Referenced by BitTorrent::TorrentImpl::availableFileFractions().
|
private |
Definition at line 167 of file indexrange.h.
Referenced by IndexRange< Index, IndexDiff >::begin(), IndexRange< Index, IndexDiff >::end(), IndexRange< Index, IndexDiff >::first(), and IndexRange< Index, IndexDiff >::last().
|
private |
Definition at line 168 of file indexrange.h.
Referenced by IndexRange< Index, IndexDiff >::end(), IndexRange< Index, IndexDiff >::isEmpty(), IndexRange< Index, IndexDiff >::last(), and IndexRange< Index, IndexDiff >::size().