X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/fc2ab478989fb4effc14c06aa56fdb29d3143b35..b7ad5fb99d32d43fe4e083a8ffc2ebfbd046d2db:/src/kitemviews/kitemset.h diff --git a/src/kitemviews/kitemset.h b/src/kitemviews/kitemset.h index 385010f7d..5afe24df5 100644 --- a/src/kitemviews/kitemset.h +++ b/src/kitemviews/kitemset.h @@ -20,6 +20,8 @@ #ifndef KITEMSET_H #define KITEMSET_H +#include "dolphin_export.h" + #include /** @@ -40,11 +42,13 @@ * The complexity of most operations depends on the number of ranges. */ -class KItemSet +class DOLPHIN_EXPORT KItemSet { public: KItemSet(); KItemSet(const KItemSet& other); + ~KItemSet(); + KItemSet& operator=(const KItemSet& other); /** * Returns the number of items in the set. @@ -80,6 +84,8 @@ public: return *this; } + ~iterator() = default; + int operator*() const { return m_rangeIt->index + m_offset; @@ -170,6 +176,8 @@ public: return *this; } + ~const_iterator() = default; + int operator*() const { return m_rangeIt->index + m_offset; @@ -297,6 +305,14 @@ inline KItemSet::KItemSet(const KItemSet& other) : { } +inline KItemSet::~KItemSet() = default; + +inline KItemSet& KItemSet::operator=(const KItemSet& other) +{ + m_itemRanges=other.m_itemRanges; + return *this; +} + inline int KItemSet::count() const { int result = 0;