|
ML 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.
| using ml::ContainerProxy< T, R, I, Count, Access >::const_iterator = const iterator |
Definition at line 158 of file mlContainerHelpers.h.
| using ml::ContainerProxy< T, R, I, Count, Access >::value_type = R * |
Definition at line 70 of file mlContainerHelpers.h.
|
inlineexplicit |
Definition at line 72 of file mlContainerHelpers.h.
Referenced by ContainerProxy(), ContainerProxy(), ml::ContainerProxy< T, R, I, Count, Access >::iterator::iterator(), operator=(), and operator=().
|
default |
References ContainerProxy().
|
default |
References ContainerProxy().
|
inline |
Definition at line 160 of file mlContainerHelpers.h.
Referenced by cbegin().
|
inline |
Definition at line 170 of file mlContainerHelpers.h.
References begin().
|
inline |
Definition at line 175 of file mlContainerHelpers.h.
References end().
|
inline |
Definition at line 165 of file mlContainerHelpers.h.
Referenced by cend().
|
default |
References ContainerProxy().
|
default |
References ContainerProxy().