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

#include <map_value.hpp>

Public Types

using key_type = array_traits::value_type
 
using const_key_reference = array_traits::const_reference
 
using mapped_type = array_traits::value_type
 
using const_mapped_reference = array_traits::const_reference
 
using value_type = std::pair<key_type, mapped_type>
 
using const_reference = std::pair<const_key_reference, const_mapped_reference>
 
using size_type = std::size_t
 
using functor_type = detail::layout_value_functor<const map_value, const_reference>
 
using const_iterator = functor_index_iterator<functor_type>
 
using const_reverser_iterator = std::reverse_iterator<const_iterator>
 

Public Member Functions

 map_value ()=default
 
 map_value (const array_wrapper *flat_keys, const array_wrapper *flat_items, size_type index_begin, size_type index_end, bool keys_sorted)
 
bool empty () const noexcept
 
size_type size () const noexcept
 
const_mapped_reference at (const key_type &key) const
 
const_mapped_reference operator[] (const key_type &key) const
 
bool contains (const key_type &key) const
 
const_iterator find (const key_type &key) const
 
const_iterator begin () const
 
const_iterator cbegin () const
 
const_iterator end () const
 
const_iterator cend () const
 
const_reverser_iterator rbegin () const
 
const_reverser_iterator crbegin () const
 
const_reverser_iterator rend () const
 
const_reverser_iterator crend () const
 

Friends

class detail::layout_value_functor< const map_value, const_reference >
 

Detailed Description

Definition at line 26 of file map_value.hpp.

Member Typedef Documentation

◆ const_iterator

◆ const_key_reference

◆ const_mapped_reference

◆ const_reference

◆ const_reverser_iterator

Definition at line 41 of file map_value.hpp.

◆ functor_type

◆ key_type

◆ mapped_type

◆ size_type

using sparrow::map_value::size_type = std::size_t

Definition at line 37 of file map_value.hpp.

◆ value_type

Definition at line 35 of file map_value.hpp.

Constructor & Destructor Documentation

◆ map_value() [1/2]

sparrow::map_value::map_value ( )
default
Here is the caller graph for this function:

◆ map_value() [2/2]

sparrow::map_value::map_value ( const array_wrapper * flat_keys,
const array_wrapper * flat_items,
size_type index_begin,
size_type index_end,
bool keys_sorted )

Member Function Documentation

◆ at()

const_mapped_reference sparrow::map_value::at ( const key_type & key) const
nodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ begin()

const_iterator sparrow::map_value::begin ( ) const
nodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cbegin()

const_iterator sparrow::map_value::cbegin ( ) const
nodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cend()

const_iterator sparrow::map_value::cend ( ) const
nodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ contains()

bool sparrow::map_value::contains ( const key_type & key) const
nodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ crbegin()

const_reverser_iterator sparrow::map_value::crbegin ( ) const
nodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ crend()

const_reverser_iterator sparrow::map_value::crend ( ) const
nodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ empty()

bool sparrow::map_value::empty ( ) const
nodiscardnoexcept

◆ end()

const_iterator sparrow::map_value::end ( ) const
nodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ find()

const_iterator sparrow::map_value::find ( const key_type & key) const
nodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator[]()

const_mapped_reference sparrow::map_value::operator[] ( const key_type & key) const
nodiscard

◆ rbegin()

const_reverser_iterator sparrow::map_value::rbegin ( ) const
nodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rend()

const_reverser_iterator sparrow::map_value::rend ( ) const
nodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ size()

size_type sparrow::map_value::size ( ) const
nodiscardnoexcept
Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ detail::layout_value_functor< const map_value, const_reference >

Definition at line 82 of file map_value.hpp.


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