qosd: добавлены итераторы по узлам

This commit is contained in:
2025-08-01 19:40:48 +07:00
committed by Сергей Маринкевич
parent 5df05f703a
commit 79c9961388
8 changed files with 208 additions and 16 deletions
+14
View File
@@ -0,0 +1,14 @@
#pragma once
/// \brief Интерфейс для классов-итераторов.
/// \tparam T Тип итерируемого элемента.
template <typename T>
class IIterator {
public:
virtual T* operator->() const = 0;
virtual operator const T*() const = 0;
virtual bool operator!=(const IIterator& other) const = 0;
virtual IIterator& operator++() = 0;
};
+1
View File
@@ -14,5 +14,6 @@ public:
virtual void linkChild(const ElemPtr& child) = 0;
virtual void unlinkParent() = 0;
virtual const std::vector<ElemPtr>& children() = 0;
virtual ElemPtr parent() = 0;
virtual LinkPtr getLink() = 0;
};