GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
loadable_forward_iterator.cpp
Go to the documentation of this file.
2
3using namespace std;
4
5namespace gui_framework
6{
7 namespace iterators
8 {
9 loadable_forward_iterator::loadable_forward_iterator(vector<filesystem::path>&& data, size_t index) noexcept :
10 data(move(data)),
11 currentIndex(index)
12 {
13
14 }
15
16 filesystem::path* loadable_forward_iterator::operator * () noexcept
17 {
18 return &data[currentIndex];
19 }
20
21 const filesystem::path* loadable_forward_iterator::operator * () const noexcept
22 {
23 return &data[currentIndex];
24 }
25
26 filesystem::path* loadable_forward_iterator::operator -> () noexcept
27 {
28 return &data[currentIndex];
29 }
30
31 const filesystem::path* loadable_forward_iterator::operator -> () const noexcept
32 {
33 return &data[currentIndex];
34 }
35
37 {
38 currentIndex++;
39
40 return *this;
41 }
42
44 {
46
47 currentIndex++;
48
49 return tem;
50 }
51
56
61 }
62}
IBaseForwardIterator implementation for BaseLoadableHolder.
std::filesystem::path * operator->() noexcept override
bool operator!=(const interfaces::IBaseConstForwardIterator< std::filesystem::path, loadable_forward_iterator > &loadable_const_forward_iterator) const noexcept override
loadable_forward_iterator & operator++() noexcept override
loadable_forward_iterator(std::vector< std::filesystem::path > &&data, size_t index) noexcept
bool operator==(const interfaces::IBaseConstForwardIterator< std::filesystem::path, loadable_forward_iterator > &loadable_const_forward_iterator) const noexcept override
std::filesystem::path * operator*() noexcept override