OGS
BaseLib::detail::PolymorphicRandomAccessContainerViewInterface< Element > Struct Template Referenceabstract

Detailed Description

template<typename Element>
struct BaseLib::detail::PolymorphicRandomAccessContainerViewInterface< Element >

Definition at line 124 of file ContainerTools.h.

#include <ContainerTools.h>

Inheritance diagram for BaseLib::detail::PolymorphicRandomAccessContainerViewInterface< Element >:
[legend]

Public Member Functions

PolymorphicRandomAccessContainerViewIterator< Element > begin () const noexcept
 
PolymorphicRandomAccessContainerViewIterator< Element > end () const noexcept
 
virtual std::size_t size () const noexcept=0
 
virtual Element & operator[] (std::size_t) const =0
 
virtual ~PolymorphicRandomAccessContainerViewInterface ()=default
 

Constructor & Destructor Documentation

◆ ~PolymorphicRandomAccessContainerViewInterface()

Member Function Documentation

◆ begin()

template<typename Element >
PolymorphicRandomAccessContainerViewIterator< Element > BaseLib::detail::PolymorphicRandomAccessContainerViewInterface< Element >::begin ( ) const
inlinenoexcept

Definition at line 126 of file ContainerTools.h.

128 {
129 return {0, this};
130 }

◆ end()

template<typename Element >
PolymorphicRandomAccessContainerViewIterator< Element > BaseLib::detail::PolymorphicRandomAccessContainerViewInterface< Element >::end ( ) const
inlinenoexcept

Definition at line 131 of file ContainerTools.h.

133 {
134 return {size(), this};
135 }

References BaseLib::detail::PolymorphicRandomAccessContainerViewInterface< Element >::size().

◆ operator[]()

template<typename Element >
virtual Element & BaseLib::detail::PolymorphicRandomAccessContainerViewInterface< Element >::operator[] ( std::size_t ) const
pure virtual

◆ size()


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