Wrapper for the main collection of a proxy. More...
#include <MainCollectionProxy.h>
Public Types | |
using | main_collection_t = MainColl |
Type of the original collection. More... | |
using | main_element_t = util::collection_value_t< MainColl > |
Type of the elements in the original collection. More... | |
Public Member Functions | |
MainCollectionProxy (main_collection_t const &main) | |
Constructor: wraps the specified collection. More... | |
main_collection_t const & | main () const |
Returns the wrapped collection. More... | |
main_collection_t const & | mainRef () const |
Returns a reference to the wrapped collection. More... | |
main_collection_t const * | mainPtr () const |
Returns a pointer to the wrapped collection. More... | |
Protected Types | |
using | this_t = MainCollectionProxy< main_collection_t > |
This type. More... | |
Protected Member Functions | |
this_t & | mainProxy () |
Return this object as main collection proxy. More... | |
this_t const & | mainProxy () const |
Return this object as main collection proxy. More... | |
auto | getMainAt (std::size_t i) const -> decltype(auto) |
Returns the specified item in the original collection. More... | |
Private Attributes | |
main_collection_t const * | fMain |
Wrapper for the main collection of a proxy.
MainColl | type of the collection being wrapped |
The wrapper contains a pointer to the original collection, which must persist. The original collection is not modified.
The MainColl
type must expose a random access container interface.
Definition at line 40 of file MainCollectionProxy.h.
using proxy::details::MainCollectionProxy< MainColl >::main_collection_t = MainColl |
Type of the original collection.
Definition at line 43 of file MainCollectionProxy.h.
using proxy::details::MainCollectionProxy< MainColl >::main_element_t = util::collection_value_t<MainColl> |
Type of the elements in the original collection.
Definition at line 46 of file MainCollectionProxy.h.
|
protected |
This type.
Definition at line 63 of file MainCollectionProxy.h.
|
inline |
Constructor: wraps the specified collection.
Definition at line 49 of file MainCollectionProxy.h.
|
inlineprotected |
Returns the specified item in the original collection.
Definition at line 72 of file MainCollectionProxy.h.
|
inline |
Returns the wrapped collection.
Definition at line 52 of file MainCollectionProxy.h.
|
inlineprotected |
Return this object as main collection proxy.
Definition at line 66 of file MainCollectionProxy.h.
|
inlineprotected |
Return this object as main collection proxy.
Definition at line 69 of file MainCollectionProxy.h.
|
inline |
Returns a pointer to the wrapped collection.
Definition at line 58 of file MainCollectionProxy.h.
|
inline |
Returns a reference to the wrapped collection.
Definition at line 55 of file MainCollectionProxy.h.
|
private |
Definition at line 76 of file MainCollectionProxy.h.