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

#include <ice/container/associative_container.hxx>

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

Public Member Functions

template<ice::concepts::AssociativeResizableContainer Self, ice::concepts::HashableKeyType KeyType, typename InValueType = typename std::remove_reference_t<Self>::ValueType>
requires (std::convertible_to<InValueType, typename Self::ValueType>)
auto set (this Self &self, KeyType const &key, InValueType &&in_value) noexcept -> ice::container::ValueRef< Self >
template<ice::concepts::AssociativeResizableContainer Self, ice::concepts::HashableKeyType KeyType, typename InValueType = typename std::remove_reference_t<Self>::ValueType>
requires (std::convertible_to<InValueType, typename Self::ValueType>)
void set_if_missing (this Self &self, KeyType const &key, InValueType &&in_value) noexcept
template<ice::concepts::AssociativeContainer Self, ice::concepts::HashableKeyType KeyType, typename InValueType = typename std::remove_reference_t<Self>::ValueType>
auto get_or_set (this Self &&self, KeyType const &key, InValueType &&in_value) noexcept -> ice::container::ValueRef< Self >
template<ice::concepts::AssociativeContainer Self, ice::concepts::HashableKeyType KeyType>
bool remove (this Self &&self, KeyType const &key) noexcept
Public Member Functions inherited from ice::container::AssociativeContainer
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_or_set()

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

◆ remove()

bool ice::container::AssociativeResizableContainer::remove ( this Self && self,
KeyType const & key )
inlinenoexcept

◆ set()

template<ice::concepts::AssociativeResizableContainer Self, ice::concepts::HashableKeyType KeyType, typename InValueType = typename std::remove_reference_t<Self>::ValueType>
requires (std::convertible_to<InValueType, typename Self::ValueType>)
auto ice::container::AssociativeResizableContainer::set ( this Self & self,
KeyType const & key,
InValueType && in_value ) -> ice::container::ValueRef< Self >
inlinenoexcept

◆ set_if_missing()

template<ice::concepts::AssociativeResizableContainer Self, ice::concepts::HashableKeyType KeyType, typename InValueType = typename std::remove_reference_t<Self>::ValueType>
requires (std::convertible_to<InValueType, typename Self::ValueType>)
void ice::container::AssociativeResizableContainer::set_if_missing ( this Self & self,
KeyType const & key,
InValueType && in_value )
inlinenoexcept

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