GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
loadable_const_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_const_forward_iterator::loadable_const_forward_iterator(vector<filesystem::path>&& data, size_t index) noexcept :
10 data(move(data)),
11 currentIndex(index)
12 {
13
14 }
15
16 const filesystem::path* loadable_const_forward_iterator::operator * () const noexcept
17 {
18 return &data[currentIndex];
19 }
20
21 const filesystem::path* loadable_const_forward_iterator::operator -> () const noexcept
22 {
23 return &data[currentIndex];
24 }
25
27 {
28 currentIndex++;
29
30 return *this;
31 }
32
34 {
36
37 currentIndex++;
38
39 return tem;
40 }
41
46
51 }
52}
IBaseConstForwardIterator implementation for BaseLoadableHolder.
const std::filesystem::path * operator->() const noexcept override
bool operator!=(const interfaces::IBaseConstForwardIterator< std::filesystem::path, loadable_const_forward_iterator > &loadable_const_forward_iterator) const noexcept override
const std::filesystem::path * operator*() const noexcept override
loadable_const_forward_iterator & operator++() noexcept override
loadable_const_forward_iterator(std::vector< std::filesystem::path > &&data, size_t index) noexcept
bool operator==(const interfaces::IBaseConstForwardIterator< std::filesystem::path, loadable_const_forward_iterator > &loadable_const_forward_iterator) const noexcept override