sparrow 0.9.0
Loading...
Searching...
No Matches
sparrow::struct_value Class Reference

#include <struct_value.hpp>

Public Types

using value_type = array_traits::value_type
 
using const_reference = array_traits::const_reference
 
using size_type = std::size_t
 
using child_ptr = cloning_ptr<array_wrapper>
 
using const_functor_type = detail::layout_bracket_functor<const struct_value, const_reference>
 
using const_iterator = functor_index_iterator<const_functor_type>
 

Public Member Functions

 struct_value ()=default
 
 struct_value (const std::vector< child_ptr > &children, size_type index)
 
size_type size () const
 
bool empty () const
 
const_reference operator[] (size_type i) const
 
const_reference front () const
 
const_reference back () const
 
const_iterator begin () const
 
const_iterator cbegin () const
 
const_iterator end () const
 
const_iterator cend () const
 

Detailed Description

Definition at line 30 of file struct_value.hpp.

Member Typedef Documentation

◆ child_ptr

◆ const_functor_type

◆ const_iterator

◆ const_reference

◆ size_type

using sparrow::struct_value::size_type = std::size_t

Definition at line 36 of file struct_value.hpp.

◆ value_type

Constructor & Destructor Documentation

◆ struct_value() [1/2]

sparrow::struct_value::struct_value ( )
default

◆ struct_value() [2/2]

sparrow::struct_value::struct_value ( const std::vector< child_ptr > & children,
size_type index )

Member Function Documentation

◆ back()

const_reference sparrow::struct_value::back ( ) const
nodiscard

◆ begin()

const_iterator sparrow::struct_value::begin ( ) const
nodiscard

◆ cbegin()

const_iterator sparrow::struct_value::cbegin ( ) const
nodiscard

◆ cend()

const_iterator sparrow::struct_value::cend ( ) const
nodiscard

◆ empty()

bool sparrow::struct_value::empty ( ) const
nodiscard

◆ end()

const_iterator sparrow::struct_value::end ( ) const
nodiscard

◆ front()

const_reference sparrow::struct_value::front ( ) const
nodiscard

◆ operator[]()

const_reference sparrow::struct_value::operator[] ( size_type i) const
nodiscard

◆ size()

size_type sparrow::struct_value::size ( ) const
nodiscard

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