OGLplus  (0.59.0) a C++ wrapper for rendering APIs

eagine::enum_class_container< EnumClass, Container > Class Template Reference

Template for containers of enum_class. More...

#include <eagine/enum_class.hpp>

Additional Inherited Members

- Public Types inherited from eagine::basic_wrapping_container< Container, EnumClass, EnumClass::value_type >
using const_iterator = transforming_iterator< typename Container::const_iterator, EnumClass, EnumClass::value_type, typename EnumClass ::transform >
 Alias for the const iterator type.
 
- Public Member Functions inherited from eagine::basic_wrapping_container< Container, EnumClass, EnumClass::value_type >
constexpr basic_wrapping_container () noexcept
 Default constructor.
 
constexpr basic_wrapping_container (typename Container::size_type count)
 Resizing constructor.
 
 basic_wrapping_container (basic_wrapping_container &&temp) noexcept
 Move constructible.
 
constexpr basic_wrapping_container (const basic_wrapping_container &)=default
 Copy constructible.
 
auto operator= (basic_wrapping_container &&temp) noexcept -> basic_wrapping_container &
 Move assignable.
 
constexpr auto operator= (const basic_wrapping_container &) -> basic_wrapping_container &=default
 Copy assignable.
 
constexpr operator basic_wrapping_container< span< EnumClass::value_type >, EnumClass, EnumClass::value_type, EnumClass::value_type {}, typename EnumClass ::transform > () noexcept
 Implicit conversion to mutable view container.
 
constexpr operator basic_wrapping_container< span< const EnumClass::value_type >, EnumClass, EnumClass::value_type, EnumClass::value_type {}, typename EnumClass ::transform > () noexcept
 Implicit conversion to const view container.
 
constexpr auto empty () const noexcept -> bool
 Indicates if this container is empty. More...
 
constexpr auto size () const noexcept
 Returns the number of elements in this container. More...
 
constexpr auto operator[] (span_size_t index) const noexcept
 Subscript access. More...
 
constexpr auto at (span_size_t index) const
 Access the element at the specified index.
 
constexpr auto begin () const noexcept -> const_iterator
 Returns an iterator to the first element in this container.
 
constexpr auto end () const noexcept -> const_iterator
 Returns an iterator past the last element in this container.
 
constexpr auto raw_items () noexcept
 Returns view of the elements as they are stored, without transfomation.
 
constexpr auto raw_items () const noexcept
 Returns view of the elements as they are stored, without transfomation.
 

Detailed Description

template<typename EnumClass, typename Container>
class eagine::enum_class_container< EnumClass, Container >

Template for containers of enum_class.

See also
enum_class
enum_class_span
enum_class_view
enum_class_array

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

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).