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 65 of file mlContainerHelpers.h.
Definition at line 158 of file mlContainerHelpers.h.
Definition at line 70 of file mlContainerHelpers.h.
Definition at line 72 of file mlContainerHelpers.h.
|
default |
|
default |
Definition at line 160 of file mlContainerHelpers.h.
|
inline |
Definition at line 170 of file mlContainerHelpers.h.
|
inline |
Definition at line 175 of file mlContainerHelpers.h.
Definition at line 165 of file mlContainerHelpers.h.
References mlrange_cast().
|
default |
|
default |