PLaSK library
|
ReindexedContainer instantiation is class which objects have reference to original container and operator[]. More...
#include <plask/utils/iterators.hpp>
Public Member Functions | |
ReindexedContainer (ContainerType &originalContainer, int firstIndex=0, int delta=1) | |
auto | operator[] (const std::size_t &this_index) -> decltype(originalContainer[0]) |
auto | operator[] (const std::size_t &this_index) const -> decltype(const_cast< const ContainerType & >(originalContainer)[0]) |
Public Attributes | |
ContainerType & | originalContainer |
int | firstIndex |
int | delta |
ReindexedContainer instantiation is class which objects have reference to original container and operator[].
All calls to operator[] are delegated to original container, but argument of call is changed (reindexed) using formula: firstIndex + given_index * delta where:
ContainerType | type of original container |
Definition at line 457 of file iterators.hpp.
|
inline |
Definition at line 463 of file iterators.hpp.
|
inline |
Definition at line 466 of file iterators.hpp.
|
inline |
Definition at line 470 of file iterators.hpp.
int plask::ReindexedContainer< ContainerType >::delta |
Definition at line 461 of file iterators.hpp.
int plask::ReindexedContainer< ContainerType >::firstIndex |
Definition at line 461 of file iterators.hpp.
ContainerType& plask::ReindexedContainer< ContainerType >::originalContainer |
Definition at line 459 of file iterators.hpp.