TermOx
Public Member Functions | List of all members
ox::Array< Layout_t, N > Class Template Reference

Homogeneous collection of Widgets within a Layout_t<Widget_t>. More...

#include <array.hpp>

Inheritance diagram for ox::Array< Layout_t, N >:
ox::detail::Confirm_page

Public Member Functions

template<typename... Args>
 Array (Args &&... args)
 args will be copied into each Widget's constructor call.
 
template<typename Child_t = typename Layout_t::Child_t, typename = std::enable_if_t< std::is_constructible_v<Child_t, typename Child_t::Parameters>, void>>
 Array (std::array< typename Layout_t::Child_t::Parameters, N > parameters)
 
 Array (std::array< std::unique_ptr< typename Layout_t::Child_t >, N > widget_ptrs)
 
template<std::size_t Index>
auto get () -> auto &
 Get child by index.
 
template<std::size_t Index>
auto get () const -> auto const &
 Get child by index.
 

Detailed Description

template<typename Layout_t, std::size_t N>
class ox::Array< Layout_t, N >

Homogeneous collection of Widgets within a Layout_t<Widget_t>.

Depends on Layout_t::make_child(args...) to construct the Widget_t.


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