Vcsn
2.3
Be Rational
|
Weighted set: weights are bools. More...
#include <wet.hh>
Classes | |
struct | iterator_impl |
Iterator. More... | |
Public Types | |
using | self_t = wet_set |
using | key_t = Key |
using | value_t = bool |
using | welement_t = welement< key_t, value_t > |
using | value_type = welement_t |
using | iterator = iterator_impl< value_type, typename set_t::iterator > |
Mutable iterator. More... | |
using | const_iterator = iterator_impl< const value_type, typename set_t::const_iterator > |
Const iterator. More... | |
Public Member Functions | |
wet_set ()=default | |
wet_set (std::initializer_list< value_type > p) | |
auto | begin () -> iterator |
auto | end () -> iterator |
auto | cbegin () const -> const_iterator |
auto | cend () const -> const_iterator |
auto | begin () const -> const_iterator |
auto | end () const -> const_iterator |
void | set (const key_t &k, const value_t &v) |
void | set (const iterator &, const value_t &v) |
auto | erase (const_iterator pos) -> iterator |
template<typename... Args> | |
auto | find (Args &&...args) const -> const_iterator |
template<typename... Args> | |
auto | find (Args &&...args) -> iterator |
template<typename... Args> | |
auto | clear (Args &&...args) -> decltype(set_.clear(std::forward< Args >(args)...)) |
template<typename... Args> | |
auto | erase (Args &&...args) -> decltype(set_.erase(std::forward< Args >(args)...)) |
template<typename... Args> | |
auto | empty (Args &&...args) const -> decltype(set_.empty(std::forward< Args >(args)...)) |
template<typename... Args> | |
auto | size (Args &&...args) const -> decltype(set_.size(std::forward< Args >(args)...)) |
Static Public Attributes | |
static constexpr wet_kind_t | kind = wet_kind_t::set |
Private Types | |
using | set_t = std::set< Key, Compare > |
Private Attributes | |
set_t | set_ |
Weighted set: weights are bools.
using vcsn::detail::wet_set< Key, Compare >::const_iterator = iterator_impl<const value_type, typename set_t::const_iterator> |
using vcsn::detail::wet_set< Key, Compare >::iterator = iterator_impl<value_type, typename set_t::iterator> |
using vcsn::detail::wet_set< Key, Compare >::key_t = Key |
using vcsn::detail::wet_set< Key, Compare >::self_t = wet_set |
|
private |
using vcsn::detail::wet_set< Key, Compare >::value_t = bool |
using vcsn::detail::wet_set< Key, Compare >::value_type = welement_t |
using vcsn::detail::wet_set< Key, Compare >::welement_t = welement<key_t, value_t> |
|
default |
|
inline |
Definition at line 410 of file wet.hh.
References vcsn::label_of(), vcsn::detail::wet_set< Key, Compare >::set(), and vcsn::weight_of().
|
inline |
|
inline |
Definition at line 487 of file wet.hh.
References vcsn::detail::wet_set< Key, Compare >::cbegin().
|
inline |
Definition at line 485 of file wet.hh.
Referenced by vcsn::detail::wet_set< Key, Compare >::begin().
|
inline |
Definition at line 486 of file wet.hh.
Referenced by vcsn::detail::wet_set< Key, Compare >::end().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 488 of file wet.hh.
References vcsn::detail::wet_set< Key, Compare >::cend().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 490 of file wet.hh.
References vcsn::detail::void.
Referenced by vcsn::detail::wet_set< Key, Compare >::wet_set().
|
inline |
Definition at line 497 of file wet.hh.
References vcsn::detail::void.
|
inline |
|
static |
|
private |