AMDiS 2.10
The Adaptive Multi-Dimensional Simulation Toolbox
FakeContainer< T, value > Class Template Reference

A container-like data-structure not storing anything and with empty implementations in many container-interface functions. More...

#include <FakeContainer.hpp>

Inherits FakeAssigner.

Classes

struct  const_iterator
 

Public Types

using value_type = T
 
using size_type = std::size_t
 

Public Member Functions

template<class... Args>
constexpr FakeContainer (Args &&...) noexcept
 
template<class S >
constexpr void init (S const &, bool) noexcept
 
constexpr void finish () noexcept
 
template<class... Args>
constexpr void scatter (Args &&...) noexcept
 
template<class Arg >
constexpr void push_back (Arg &&) noexcept
 
template<class... Args>
constexpr void emplace_back (Args &&...) noexcept
 
template<class Size >
constexpr void reserve (Size &&) noexcept
 
template<class Size >
constexpr void resize (Size &&) noexcept
 
constexpr bool empty () const noexcept
 This container is never empty.
 
template<class Index >
constexpr FakeContaineroperator[] (Index &&) noexcept
 
template<class Index >
constexpr FakeContainer const & operator[] (Index &&) const noexcept
 
template<class Index >
constexpr FakeContainerat (Index &&) noexcept
 Mutable element access.
 
template<class Index >
constexpr FakeContainer const & at (Index &&) const noexcept
 Const element access.
 
constexpr FakeContainerfront () noexcept
 
constexpr FakeContainer const & front () const noexcept
 
constexpr operator T () const noexcept
 Container can be cast to the constant integral value.
 
constexpr const_iterator begin () const noexcept
 Return iterator that always redirects to a bool true.
 
constexpr const_iterator cbegin () const noexcept
 Return iterator that always redirects to a bool true.
 
template<class T >
constexpr FakeAssigneroperator= (T &&) noexcept
 Assignment operators from a fake assigner.
 
template<class T >
constexpr FakeAssigneroperator+= (T &&) noexcept
 
template<class T >
constexpr FakeAssigneroperator-= (T &&) noexcept
 
template<class T >
constexpr FakeAssigneroperator*= (T &&) noexcept
 
template<class T >
constexpr FakeAssigneroperator/= (T &&) noexcept
 
- Public Member Functions inherited from FakeAssigner
template<class T >
constexpr FakeAssigneroperator= (T &&) noexcept
 
template<class T >
constexpr FakeAssigneroperator+= (T &&) noexcept
 
template<class T >
constexpr FakeAssigneroperator-= (T &&) noexcept
 
template<class T >
constexpr FakeAssigneroperator*= (T &&) noexcept
 
template<class T >
constexpr FakeAssigneroperator/= (T &&) noexcept
 

Detailed Description

template<class T, T value>
class AMDiS::FakeContainer< T, value >

A container-like data-structure not storing anything and with empty implementations in many container-interface functions.

This container that does nothing can be used as a dummy argument to functions expecting a container, in order to omit specializations of these functions for not providing a container.

Member Function Documentation

◆ operator[]() [1/2]

constexpr FakeContainer const & operator[] ( Index &&  ) const
inlineconstexprnoexcept

Const element access does return the container itself This allows to emulate nested containers

◆ operator[]() [2/2]

constexpr FakeContainer & operator[] ( Index &&  )
inlineconstexprnoexcept

Mutable element access does return the container itself This allows to emulate nested containers


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