sparrow 0.3.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>
 

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
 

Detailed Description

Definition at line 28 of file struct_value.hpp.

Member Typedef Documentation

◆ child_ptr

◆ const_reference

◆ size_type

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

Definition at line 34 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

◆ empty()

bool sparrow::struct_value::empty ( ) 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: