IceShard 1
A personal game engine project, with development focused on 2D/2.5D games.
Loading...
Searching...
No Matches
ice::container::AssociativeContainer Struct Reference

#include <ice/container/associative_container.hxx>

Inheritance diagram for ice::container::AssociativeContainer:
ice::container::BasicContainer ice::container::AssociativeResizableContainer ice::HashMap< Type, ice::Constant_DefaultContainerLogic< Type > > ice::HashMap< Type, Logic > ice::MultiHashMap< Type, Logic >

Public Member Functions

template<ice::concepts::AssociativeContainer Self, ice::concepts::HashableKeyType KeyType>
bool has (this Self const &self, KeyType const &key) noexcept
template<ice::concepts::AssociativeContainer Self, ice::concepts::HashableKeyType KeyType>
bool missing (this Self const &self, KeyType const &key) noexcept
template<ice::concepts::AssociativeContainer Self, ice::concepts::HashableKeyType KeyType, typename InValueType = typename std::remove_reference_t<Self>::ValueType>
auto get (this Self const &self, KeyType const &key, InValueType const &fallback_value) noexcept -> ice::container::ValueRef< Self const >
template<ice::concepts::AssociativeContainer Self, ice::concepts::HashableKeyType KeyType>
auto try_get (this Self &&self, KeyType const &key) noexcept -> ice::container::ValuePtr< Self >
Public Member Functions inherited from ice::container::BasicContainer
template<ice::concepts::Container Self>
constexpr bool is_empty (this Self const &self) noexcept
template<ice::concepts::Container Self>
constexpr bool not_empty (this Self const &self) noexcept

Member Function Documentation

◆ get()

template<ice::concepts::AssociativeContainer Self, ice::concepts::HashableKeyType KeyType, typename InValueType = typename std::remove_reference_t<Self>::ValueType>
auto ice::container::AssociativeContainer::get ( this Self const & self,
KeyType const & key,
InValueType const & fallback_value ) -> ice::container::ValueRef< Self const >
inlinenoexcept

◆ has()

bool ice::container::AssociativeContainer::has ( this Self const & self,
KeyType const & key )
inlinenoexcept

◆ missing()

bool ice::container::AssociativeContainer::missing ( this Self const & self,
KeyType const & key )
inlinenoexcept

◆ try_get()

auto ice::container::AssociativeContainer::try_get ( this Self && self,
KeyType const & key ) -> ice::container::ValuePtr< Self >
inlinenoexcept

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