Fishnet 2.0.1
Framework for Graph-Based Analysis of GIS Vector Data
Loading...
Searching...
No Matches
fishnet::util::StaticMap< Key, Value, Size > Struct Template Reference

Compile-time map for compile-time configurations. More...

#include <StaticMap.hpp>

Collaboration diagram for fishnet::util::StaticMap< Key, Value, Size >:

Public Types

using value_type = std::pair< Key, Value >
 

Public Member Functions

constexpr auto findKeyPredicate (const Key &key) const noexcept
 
constexpr bool contains (const Key &key) const noexcept
 
constexpr std::optional< Value > get (const Key &key) const noexcept
 
constexpr bool try_insert (const Key &key, const Value &value) noexcept
 
constexpr bool erase (const Key &key) noexcept
 
constexpr auto begin () noexcept
 
constexpr auto end () noexcept
 
constexpr auto cbegin () const noexcept
 
constexpr auto cend () const noexcept
 

Public Attributes

std::array< value_type, Size > data
 

Detailed Description

template<typename Key, typename Value, std::size_t Size>
requires std::equality_comparable<Key>
struct fishnet::util::StaticMap< Key, Value, Size >

Compile-time map for compile-time configurations.

Template Parameters
Keykey type
Valuevalue type
Sizesize of the map

Member Typedef Documentation

◆ value_type

template<typename Key , typename Value , std::size_t Size>
using fishnet::util::StaticMap< Key, Value, Size >::value_type = std::pair<Key,Value>

Member Function Documentation

◆ begin()

template<typename Key , typename Value , std::size_t Size>
constexpr auto fishnet::util::StaticMap< Key, Value, Size >::begin ( )
inlineconstexprnoexcept

◆ cbegin()

template<typename Key , typename Value , std::size_t Size>
constexpr auto fishnet::util::StaticMap< Key, Value, Size >::cbegin ( ) const
inlineconstexprnoexcept

◆ cend()

template<typename Key , typename Value , std::size_t Size>
constexpr auto fishnet::util::StaticMap< Key, Value, Size >::cend ( ) const
inlineconstexprnoexcept

◆ contains()

template<typename Key , typename Value , std::size_t Size>
constexpr bool fishnet::util::StaticMap< Key, Value, Size >::contains ( const Key &  key) const
inlineconstexprnoexcept

◆ end()

template<typename Key , typename Value , std::size_t Size>
constexpr auto fishnet::util::StaticMap< Key, Value, Size >::end ( )
inlineconstexprnoexcept

◆ erase()

template<typename Key , typename Value , std::size_t Size>
constexpr bool fishnet::util::StaticMap< Key, Value, Size >::erase ( const Key &  key)
inlineconstexprnoexcept

◆ findKeyPredicate()

template<typename Key , typename Value , std::size_t Size>
constexpr auto fishnet::util::StaticMap< Key, Value, Size >::findKeyPredicate ( const Key &  key) const
inlineconstexprnoexcept

◆ get()

template<typename Key , typename Value , std::size_t Size>
constexpr std::optional< Value > fishnet::util::StaticMap< Key, Value, Size >::get ( const Key &  key) const
inlineconstexprnoexcept

◆ try_insert()

template<typename Key , typename Value , std::size_t Size>
constexpr bool fishnet::util::StaticMap< Key, Value, Size >::try_insert ( const Key &  key,
const Value &  value 
)
inlineconstexprnoexcept

Member Data Documentation

◆ data

template<typename Key , typename Value , std::size_t Size>
std::array<value_type,Size> fishnet::util::StaticMap< Key, Value, Size >::data

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