MySQL 9.6.0
Source Code Documentation
mysql::sets::Map_nested_container< Key_traits_tp, Mapped_tp > Class Template Reference

Nested set container using std::map as backing storage. More...

#include <aliases.h>

Inheritance diagram for mysql::sets::Map_nested_container< Key_traits_tp, Mapped_tp >:
[legend]

Public Member Functions

template<class... Args_t>
requires mysql::meta::Not_decayed<This_t, Args_t...>
 Map_nested_container (Args_t &&...args) noexcept
 
- Public Member Functions inherited from mysql::sets::Nested_container< Storage_tp >
template<class... Args_t>
requires mysql::meta::Not_decayed<This_t, Args_t...>
 Nested_container (Args_t &&...args) noexcept
 Construct a new, empty Nested_container. More...
 
auto & storage () noexcept
 Return non-const reference to the underlying storage. More...
 
const auto & storage () const noexcept
 Return const reference to the underlying storage. More...
 
Const_iterator_t find (const Key_t &key) const noexcept
 Return const iterator to the pair having the given key in the first component, or end() if the key is not in the set. More...
 
Iterator_t find (const Key_t &key) noexcept
 Return iterator to the pair having the given key in the first component, or end() if the key is not in the set. More...
 
Const_iterator_t find (Const_iterator_t &cursor, const Key_t &key) const noexcept
 Return const iterator to the pair having the given key in the first component, or end() if the key is not in the set. More...
 
Iterator_t find (Iterator_t &cursor, const Key_t &key) noexcept
 Return iterator to the pair having the given key in the first component, or end() if the key is not in the set. More...
 
template<class... Mapped_args_t>
Return_status_t insert (const Key_t &key, Mapped_args_t &&...mapped_args) noexcept
 Insert the given element (inplace union). More...
 
Return_status_t remove (const Key_t &key, const auto &...value) noexcept
 Remove the given element from the set, if it is there. More...
 
template<class... Mapped_args_t>
auto inplace_union (const Key_t &key, Mapped_args_t &&...mapped_args) noexcept
 Insert the given set (inplace union). More...
 
template<class... Mapped_args_t>
auto inplace_union (Iterator_t &cursor, const Key_t &key, Mapped_args_t &&...mapped_args) noexcept
 Insert the given set (inplace union), reading and updating the given cursor. More...
 
template<Is_nested_set_over_traits_unqualified< Set_traits_t > Other_set_t>
auto inplace_union (Other_set_t &&other_set) noexcept
 Inplace-insert the given set (inplace union) into this container. More...
 
void inplace_subtract (const Key_t &key) noexcept
 Inplace-remove the given key and associated mapped set. More...
 
template<class... Mapped_args_t>
auto inplace_subtract (const Key_t &key, Mapped_args_t &&...mapped_args) noexcept
 Inplace-remove the given mapped set from the mapped set associated with the given key. More...
 
template<class... Mapped_args_t>
auto inplace_subtract (Iterator_t &cursor, const Key_t &key, Mapped_args_t &&...mapped_args) noexcept
 Inplace-remove the given mapped set from the mapped set associated with the given key, reading and updating the given cursor. More...
 
template<Is_nested_set_over_traits_unqualified< Set_traits_t > Other_set_t>
auto inplace_subtract (Other_set_t &&other_set) noexcept
 Inplace-remove the given set from this container. More...
 
void inplace_intersect (const Key_t &key) noexcept
 Inplace-remove all value pairs, except the one for the given key. More...
 
template<class... Mapped_args_t>
auto inplace_intersect (const Key_t &key, Mapped_args_t &&...mapped_args) noexcept
 Inplace-remove all value pairs, except the one for the given key, and inplace-intersect the mapped container for the given key with the given mapped set. More...
 
template<Is_nested_set_over_traits_unqualified< Set_traits_t > Other_set_t>
auto inplace_intersect (Other_set_t &&other_set) noexcept
 Inplace-intersect this set with the given set. More...
 
- Public Member Functions inherited from mysql::sets::Basic_nested_container_wrapper< Nested_container< Storage_tp >, Storage_tp >
 Basic_nested_container_wrapper (Args_t &&...args) noexcept(noexcept(Wrapper_base_t(std::forward< Args_t >(args)...)))
 
- Public Member Functions inherited from mysql::sets::Basic_set_container_wrapper< Self_tp, Wrapped_tp, shall_catch_tp >
template<class... Args_t>
 Basic_set_container_wrapper (Args_t &&...args)
 
template<class Source_t >
requires Can_donate_set<decltype(std::declval<Source_t &&>().wrapped()), Wrapped_tp>
void assign (Source_t &&source)
 Enable move-assign from any Basic_set_container_wrapper for a compatible set type (not necessarily for a derived class). More...
 
template<std::input_iterator First_iterator_t, std::sentinel_for< First_iterator_t > Sentinel_t>
requires requires(Wrapped_t w, First_iterator_t f, Sentinel_t s) { w.assign(f, s); }
auto assign (const First_iterator_t &first, const Sentinel_t &last) noexcept(shall_catch==mysql::utils::Shall_catch::yes||noexcept(std::declval< Wrapped_t >().assign(first, last)))
 Assign a range defined by the two iterators to the wrapped object. More...
 
template<class Other_t >
auto assign (const Other_t &other) noexcept(shall_catch==mysql::utils::Shall_catch::yes||noexcept(std::declval< Self_t >().assign(other.begin(), other.end())))
 Copy-assign the other object to the wrapped object. More...
 
void assign (Self_t &&other) noexcept
 Move-assign the other object to the wrapped object. More...
 
- Public Member Functions inherited from mysql::containers::Basic_container_wrapper< Self_tp, Wrapped_tp, mysql::utils::Shall_catch::no >
 Basic_container_wrapper (Args_t &&...args) noexcept(noexcept(Wrapped_t(std::forward< Args_t >(args)...)))
 Constructor that delegates all parameters to the constructor of the wrapped class. More...
 
auto assign (const First_iterator_t &first, const Sentinel_t &last) noexcept(shall_catch==mysql::utils::Shall_catch::yes||noexcept(std::declval< Wrapped_t >().assign(first, last)))
 Assign a range defined by the two iterators to the wrapped object. More...
 
auto assign (const Other_t &other) noexcept(shall_catch==mysql::utils::Shall_catch::yes||noexcept(std::declval< Self_t >().assign(other.begin(), other.end())))
 Copy-assign the other object to the wrapped object. More...
 
void assign (Self_t &&other) noexcept
 Move-assign the other object to the wrapped object. More...
 
void clear () noexcept
 Clear the wrapped object. More...
 
auto get_memory_resource () const noexcept
 Return the memory resource used by the wrapped object. More...
 
auto get_allocator () const noexcept
 Return the allocator used by the wrapped object. More...
 
auto begin () noexcept
 
auto begin () const noexcept
 
auto end () noexcept
 
auto end () const noexcept
 
auto empty () const noexcept
 
auto size () const noexcept
 
- Public Member Functions inherited from mysql::ranges::Collection_interface< Self_tp >
constexpr auto cbegin () const
 Return constant iterator to the beginning. More...
 
constexpr auto cend () const
 Return constant iterator to the end. More...
 
constexpr auto rbegin ()
 Return reverse iterator to the beginning. More...
 
constexpr auto rend ()
 Return reverse iterator to the end. More...
 
constexpr auto rbegin () const
 Return const reverse iterator to the beginning. More...
 
constexpr auto rend () const
 Return const reverse iterator to the end. More...
 
constexpr auto crbegin () const
 Return const reverse iterator to the beginning. More...
 
constexpr auto crend () const
 Return const reverse iterator to the end. More...
 
constexpr bool empty () const
 Return true if the range is empty, i.e., begin() == end(). More...
 
constexpr operator bool () const
 Return true if the range is non-empty, i.e., begin() != end(). More...
 
constexpr bool operator! () const
 Return true if the range is empty, i.e., begin() == end(). More...
 
constexpr auto size () const
 Return the number of elements in this view, unsigned (size_t), by computing std::ranges::distance(begin, end) More...
 
constexpr auto ssize () const
 Return the number of elements in this view, signed (ptrdiff_t). More...
 
constexpr decltype(auto) front () const
 Return the first element. More...
 
constexpr decltype(auto) back () const
 Return the last element. Enabled if we have bidirectional iterators. More...
 
constexpr decltype(auto) operator[] (std::ptrdiff_t n)
 Return the n'th element, possibly mutable. More...
 
constexpr decltype(auto) operator[] (std::ptrdiff_t n) const
 Return the n'th element, const. More...
 
constexpr auto * data ()
 Return pointer to underlying contiguous memory. More...
 
constexpr auto * data () const
 Return const pointer to underlying contiguous memory. More...
 
- Public Member Functions inherited from mysql::sets::detail::Nested_set_interface< Self_tp, Iterator_tp, Const_iterator_tp, Set_traits_tp >
auto & operator[] (const Key_t &key) noexcept
 Return non-const reference to the mapped Set for the given key. More...
 
const auto & operator[] (const Key_t &key) const noexcept
 Return const reference to the mapped Set for the given key. More...
 

Private Types

using Base_t = detail::Map_nested_container_alias< Key_traits_tp, Mapped_tp >
 
using This_t = Map_nested_container< Key_traits_tp, Mapped_tp >
 

Additional Inherited Members

- Public Types inherited from mysql::sets::Nested_container< Storage_tp >
using Storage_t = Storage_tp
 
using This_t = Nested_container< Storage_t >
 
using Base_t = Basic_nested_container_wrapper< Nested_container< Storage_tp >, Storage_tp >
 
using Set_category_t = Nested_set_category_tag
 
using Memory_resource_t = mysql::allocators::Memory_resource
 
using Return_status_t = mysql::utils::Return_status
 
- Public Types inherited from mysql::containers::Basic_container_wrapper< Self_tp, Wrapped_tp, mysql::utils::Shall_catch::no >
using Wrapped_t = Wrapped_tp
 
- Public Types inherited from mysql::sets::detail::Nested_set_interface< Self_tp, Iterator_tp, Const_iterator_tp, Set_traits_tp >
using Iterator_t = Iterator_tp
 
using Const_iterator_t = Const_iterator_tp
 
using Set_category_t = Nested_set_category_tag
 
using Iterator_value_t = mysql::ranges::Iterator_value_type< Iterator_t >
 
using Set_traits_t = Set_traits_tp
 
using Key_traits_t = typename Set_traits_t::Key_traits_t
 
using Key_t = typename Key_traits_t::Element_t
 
using Mapped_category_t = typename Set_traits_t::Mapped_category_t
 
using Mapped_traits_t = typename Set_traits_t::Mapped_traits_t
 
using Mapped_t = typename Iterator_value_t::second_type
 
- Static Public Attributes inherited from mysql::sets::Nested_container< Storage_tp >
static constexpr Return_status_t return_ok = Return_status_t::ok
 
- Protected Member Functions inherited from mysql::containers::Basic_container_wrapper< Self_tp, Wrapped_tp, mysql::utils::Shall_catch::no >
auto & wrapped () &noexcept
 
const auto & wrapped () const &noexcept
 
auto && wrapped () &&noexcept
 

Detailed Description

template<Is_ordered_set_traits Key_traits_tp, Is_set Mapped_tp>
class mysql::sets::Map_nested_container< Key_traits_tp, Mapped_tp >

Nested set container using std::map as backing storage.

Member Typedef Documentation

◆ Base_t

template<Is_ordered_set_traits Key_traits_tp, Is_set Mapped_tp>
using mysql::sets::Map_nested_container< Key_traits_tp, Mapped_tp >::Base_t = detail::Map_nested_container_alias<Key_traits_tp, Mapped_tp>
private

◆ This_t

template<Is_ordered_set_traits Key_traits_tp, Is_set Mapped_tp>
using mysql::sets::Map_nested_container< Key_traits_tp, Mapped_tp >::This_t = Map_nested_container<Key_traits_tp, Mapped_tp>
private

Constructor & Destructor Documentation

◆ Map_nested_container()

template<Is_ordered_set_traits Key_traits_tp, Is_set Mapped_tp>
template<class... Args_t>
requires mysql::meta::Not_decayed<This_t, Args_t...>
mysql::sets::Map_nested_container< Key_traits_tp, Mapped_tp >::Map_nested_container ( Args_t &&...  args)
inlineexplicitnoexcept

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