GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
composite_forward_iterator.cpp
Go to the documentation of this file.
2
4
5using namespace std;
6
7namespace gui_framework
8{
9 namespace iterators
10 {
12 currentComponent(component)
13 {
14
15 }
16
18 {
19 return currentComponent;
20 }
21
23 {
24 return currentComponent;
25 }
26
28 {
29 return currentComponent;
30 }
31
33 {
34 return currentComponent;
35 }
36
43
45 {
47
48 utility::getNextComponent(currentComponent, parents, indices);
49
50 return tem;
51 }
52
53 bool composite_forward_iterator::operator == (const IBaseConstForwardIterator<BaseComponent, composite_forward_iterator>& composite_forward_iterator) const noexcept
54 {
55 return currentComponent == *composite_forward_iterator;
56 }
57
58 bool composite_forward_iterator::operator != (const IBaseConstForwardIterator<BaseComponent, composite_forward_iterator>& composite_forward_iterator) const noexcept
59 {
60 return currentComponent != *composite_forward_iterator;
61 }
62 }
63}
Base class for all windows, controls, etc.
IBaseForwardIterator implementation for BaseComponent.
bool operator!=(const IBaseConstForwardIterator< BaseComponent, composite_forward_iterator > &composite_forward_iterator) const noexcept override
IBaseConstForwardIterator< BaseComponent, composite_forward_iterator > & operator++() noexcept override
bool operator==(const IBaseConstForwardIterator< BaseComponent, composite_forward_iterator > &composite_forward_iterator) const noexcept override
void getNextComponent(BaseComponent *&currentComponent, stack< BaseComponent * > &parents, stack< size_t > &indices)