Public Types | Public Member Functions | Public Attributes | List of all members
util::details::ContainerStorageBase< Cont > Struct Template Reference

#include <MappedContainer.h>

Inheritance diagram for util::details::ContainerStorageBase< Cont >:
util::details::ContainerStorage< Cont > util::details::ContainerStorage< Cont, typename > util::details::ContainerStorage                    < Cont, std::enable_if_t< util::is_reference_wrapper_v< Cont > > >

Public Types

using Container_t = Cont
 
using Traits_t = details::ContainerTraits< Container_t >
 
using index_type = typename Traits_t::size_type
 
using value_type = typename Traits_t::value_type
 
using size_type = typename Traits_t::size_type
 
using difference_type = typename Traits_t::difference_type
 
using reference = typename Traits_t::reference
 
using const_reference = typename Traits_t::const_reference
 

Public Member Functions

 ContainerStorageBase ()=default
 
 ContainerStorageBase (Container_t const &cont)
 
 ContainerStorageBase (Container_t &&cont)
 
decltype(auto) container () const
 
decltype(auto) container ()
 
auto size () const
 
decltype(auto) operator[] (index_type index)
 
decltype(auto) operator[] (index_type index) const
 

Public Attributes

Container_t fCont
 

Detailed Description

template<typename Cont>
struct util::details::ContainerStorageBase< Cont >

Definition at line 467 of file MappedContainer.h.

Member Typedef Documentation

template<typename Cont>
using util::details::ContainerStorageBase< Cont >::const_reference = typename Traits_t::const_reference

Definition at line 478 of file MappedContainer.h.

template<typename Cont>
using util::details::ContainerStorageBase< Cont >::Container_t = Cont

Definition at line 469 of file MappedContainer.h.

template<typename Cont>
using util::details::ContainerStorageBase< Cont >::difference_type = typename Traits_t::difference_type

Definition at line 476 of file MappedContainer.h.

template<typename Cont>
using util::details::ContainerStorageBase< Cont >::index_type = typename Traits_t::size_type

Definition at line 472 of file MappedContainer.h.

template<typename Cont>
using util::details::ContainerStorageBase< Cont >::reference = typename Traits_t::reference

Definition at line 477 of file MappedContainer.h.

template<typename Cont>
using util::details::ContainerStorageBase< Cont >::size_type = typename Traits_t::size_type

Definition at line 475 of file MappedContainer.h.

Definition at line 470 of file MappedContainer.h.

template<typename Cont>
using util::details::ContainerStorageBase< Cont >::value_type = typename Traits_t::value_type

Definition at line 474 of file MappedContainer.h.

Constructor & Destructor Documentation

template<typename Cont>
util::details::ContainerStorageBase< Cont >::ContainerStorageBase ( )
default
template<typename Cont>
util::details::ContainerStorageBase< Cont >::ContainerStorageBase ( Container_t const &  cont)
inlineexplicit

Definition at line 483 of file MappedContainer.h.

483 : fCont(cont) {}
template<typename Cont>
util::details::ContainerStorageBase< Cont >::ContainerStorageBase ( Container_t &&  cont)
inlineexplicit

Definition at line 484 of file MappedContainer.h.

485  : fCont(std::move(cont)) {}
def move(depos, offset)
Definition: depos.py:107

Member Function Documentation

template<typename Cont>
decltype(auto) util::details::ContainerStorageBase< Cont >::container ( ) const
inline

Definition at line 487 of file MappedContainer.h.

decltype(auto) collection_from_reference(CollRef &collRef)
Returns the object referenced by collRef as a C++ reference.
template<typename Cont>
decltype(auto) util::details::ContainerStorageBase< Cont >::container ( )
inline

Definition at line 489 of file MappedContainer.h.

decltype(auto) collection_from_reference(CollRef &collRef)
Returns the object referenced by collRef as a C++ reference.
template<typename Cont>
decltype(auto) util::details::ContainerStorageBase< Cont >::operator[] ( index_type  index)
inline

Definition at line 494 of file MappedContainer.h.

495  { return container()[index]; }
decltype(auto) container() const
template<typename Cont>
decltype(auto) util::details::ContainerStorageBase< Cont >::operator[] ( index_type  index) const
inline

Definition at line 496 of file MappedContainer.h.

497  { return container()[index]; }
decltype(auto) container() const
template<typename Cont>
auto util::details::ContainerStorageBase< Cont >::size ( void  ) const
inline

Definition at line 492 of file MappedContainer.h.

492 { using std::size; return size(container()); }
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:92
decltype(auto) container() const

Member Data Documentation

template<typename Cont>
Container_t util::details::ContainerStorageBase< Cont >::fCont

Definition at line 480 of file MappedContainer.h.


The documentation for this struct was generated from the following file: