|
MeVisLab Toolbox Reference
|
This template implements a proxy for containers that contain a collection of items normally accessed with a get-by-index method. More...
#include <mlContainerHelpers.h>
Classes | |
| class | iterator |
Public Types | |
| using | value_type = R* |
| using | const_iterator = const iterator |
Public Member Functions | |
| ContainerProxy (const T &object) | |
| ContainerProxy (const ContainerProxy &)=default | |
| ContainerProxy & | operator= (const ContainerProxy &)=default |
| ContainerProxy (ContainerProxy &&)=default | |
| ContainerProxy & | operator= (ContainerProxy &&)=default |
| iterator | begin () const |
| iterator | end () const |
| const_iterator | cbegin () const |
| const_iterator | cend () const |
This template implements a proxy for containers that contain a collection of items normally accessed with a get-by-index method.
Due to this structure, it is not possible to use them in any STL-compatible algorithm or range-based for-loop. This way, the proxy provides a begin()/end() pair that follows the standard STL conventions. Note that calling *end() is not advisable.
By defining a proxy like:
Note: It is not wise to add or remove items within any loop!
Definition at line 63 of file mlContainerHelpers.h.
Definition at line 157 of file mlContainerHelpers.h.
Definition at line 68 of file mlContainerHelpers.h.
Definition at line 70 of file mlContainerHelpers.h.
|
default |
|
default |
Definition at line 159 of file mlContainerHelpers.h.
|
inline |
Definition at line 169 of file mlContainerHelpers.h.
|
inline |
Definition at line 174 of file mlContainerHelpers.h.
Definition at line 164 of file mlContainerHelpers.h.
References mlrange_cast().
|
default |
|
default |