![]() |
MySQL 9.6.0
Source Code Documentation
|
CRTP base class/mixin used to define a Nested set based on an implementation that provides the find and upper_bound functions.
More...
#include <nested_set_interface.h>
Public Types | |
| 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 |
Public Member Functions | |
| 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 | Self_t = Self_tp |
Private Member Functions | |
| auto & | self () |
| const auto & | self () const |
CRTP base class/mixin used to define a Nested set based on an implementation that provides the find and upper_bound functions.
This provides the member types and operator[].
| Self_tp | Implementation subclass. |
| Iterator_tp | Iterator type for the subclass. |
| Const_iterator_tp | Const iterator type for the subclass. |
| Set_traits_tp | Set traits. |
| using mysql::sets::detail::Nested_set_interface< Self_tp, Iterator_tp, Const_iterator_tp, Set_traits_tp >::Const_iterator_t = Const_iterator_tp |
| using mysql::sets::detail::Nested_set_interface< Self_tp, Iterator_tp, Const_iterator_tp, Set_traits_tp >::Iterator_t = Iterator_tp |
| using mysql::sets::detail::Nested_set_interface< Self_tp, Iterator_tp, Const_iterator_tp, Set_traits_tp >::Iterator_value_t = mysql::ranges::Iterator_value_type<Iterator_t> |
| using mysql::sets::detail::Nested_set_interface< Self_tp, Iterator_tp, Const_iterator_tp, Set_traits_tp >::Key_t = typename Key_traits_t::Element_t |
| using mysql::sets::detail::Nested_set_interface< Self_tp, Iterator_tp, Const_iterator_tp, Set_traits_tp >::Key_traits_t = typename Set_traits_t::Key_traits_t |
| using mysql::sets::detail::Nested_set_interface< Self_tp, Iterator_tp, Const_iterator_tp, Set_traits_tp >::Mapped_category_t = typename Set_traits_t::Mapped_category_t |
| using mysql::sets::detail::Nested_set_interface< Self_tp, Iterator_tp, Const_iterator_tp, Set_traits_tp >::Mapped_t = typename Iterator_value_t::second_type |
| using mysql::sets::detail::Nested_set_interface< Self_tp, Iterator_tp, Const_iterator_tp, Set_traits_tp >::Mapped_traits_t = typename Set_traits_t::Mapped_traits_t |
|
private |
| using mysql::sets::detail::Nested_set_interface< Self_tp, Iterator_tp, Const_iterator_tp, Set_traits_tp >::Set_category_t = Nested_set_category_tag |
| using mysql::sets::detail::Nested_set_interface< Self_tp, Iterator_tp, Const_iterator_tp, Set_traits_tp >::Set_traits_t = Set_traits_tp |
|
inlinenoexcept |
Return const reference to the mapped Set for the given key.
If the key is not in the set, the behavior is undefined.
| key | Key to look for. |
|
inlinenoexcept |
Return non-const reference to the mapped Set for the given key.
If the key is not in the set, the behavior is undefined.
| key | Key to look for. |
|
inlineprivate |
|
inlineprivate |