GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
composite_const_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
33
35 {
37
38 utility::getNextComponent(currentComponent, parents, indices);
39
40 return tem;
41 }
42
43 bool composite_const_forward_iterator::operator == (const IBaseConstForwardIterator<BaseComponent, composite_const_forward_iterator>& composite_forward_iterator) const noexcept
44 {
45 return currentComponent == *composite_forward_iterator;
46 }
47
48 bool composite_const_forward_iterator::operator != (const IBaseConstForwardIterator<BaseComponent, composite_const_forward_iterator>& composite_forward_iterator) const noexcept
49 {
50 return currentComponent != *composite_forward_iterator;
51 }
52 }
53}
Base class for all windows, controls, etc.
IBaseConstForwardIterator implementation for BaseComponent.
bool operator==(const IBaseConstForwardIterator< BaseComponent, composite_const_forward_iterator > &composite_forward_iterator) const noexcept override
bool operator!=(const IBaseConstForwardIterator< BaseComponent, composite_const_forward_iterator > &composite_forward_iterator) const noexcept override
IBaseConstForwardIterator< BaseComponent, composite_const_forward_iterator > & operator++() noexcept override
IBaseForwardIterator implementation for BaseComponent.
void getNextComponent(BaseComponent *&currentComponent, stack< BaseComponent * > &parents, stack< size_t > &indices)