mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-19 01:04:20 +00:00
Added missing ValueTree::Iterator::operator==
This commit is contained in:
parent
7019f322ae
commit
4d753ed9e4
2 changed files with 8 additions and 9 deletions
|
|
@ -863,21 +863,19 @@ ValueTree ValueTree::getChild (int index) const
|
|||
return {};
|
||||
}
|
||||
|
||||
ValueTree::Iterator::Iterator (const ValueTree& v, bool isEnd) noexcept
|
||||
ValueTree::Iterator::Iterator (const ValueTree& v, bool isEnd)
|
||||
: internal (v.object != nullptr ? (isEnd ? v.object->children.end() : v.object->children.begin()) : nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
ValueTree::Iterator& ValueTree::Iterator::operator++() noexcept
|
||||
ValueTree::Iterator& ValueTree::Iterator::operator++()
|
||||
{
|
||||
internal = static_cast<SharedObject**> (internal) + 1;
|
||||
return *this;
|
||||
}
|
||||
|
||||
bool ValueTree::Iterator::operator!= (const Iterator& other) const noexcept
|
||||
{
|
||||
return internal != other.internal;
|
||||
}
|
||||
bool ValueTree::Iterator::operator== (const Iterator& other) const { return internal == other.internal; }
|
||||
bool ValueTree::Iterator::operator!= (const Iterator& other) const { return internal != other.internal; }
|
||||
|
||||
ValueTree ValueTree::Iterator::operator*() const
|
||||
{
|
||||
|
|
|
|||
|
|
@ -400,10 +400,11 @@ public:
|
|||
*/
|
||||
struct Iterator
|
||||
{
|
||||
Iterator (const ValueTree&, bool isEnd) noexcept;
|
||||
Iterator& operator++() noexcept;
|
||||
Iterator (const ValueTree&, bool isEnd);
|
||||
Iterator& operator++();
|
||||
|
||||
bool operator!= (const Iterator&) const noexcept;
|
||||
bool operator== (const Iterator&) const;
|
||||
bool operator!= (const Iterator&) const;
|
||||
ValueTree operator*() const;
|
||||
|
||||
using difference_type = std::ptrdiff_t;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue