Vcsn  2.3
Be Rational
vcsn::detail::wet_set< Key, Compare > Class Template Reference

Weighted set: weights are bools. More...

#include <wet.hh>

Collaboration diagram for vcsn::detail::wet_set< Key, Compare >:

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_
 

Detailed Description

template<typename Key, typename Compare>
class vcsn::detail::wet_set< Key, Compare >

Weighted set: weights are bools.

Definition at line 395 of file wet.hh.

Member Typedef Documentation

template<typename Key , typename Compare >
using vcsn::detail::wet_set< Key, Compare >::const_iterator = iterator_impl<const value_type, typename set_t::const_iterator>

Const iterator.

Definition at line 481 of file wet.hh.

template<typename Key , typename Compare >
using vcsn::detail::wet_set< Key, Compare >::iterator = iterator_impl<value_type, typename set_t::iterator>

Mutable iterator.

Definition at line 477 of file wet.hh.

template<typename Key , typename Compare >
using vcsn::detail::wet_set< Key, Compare >::key_t = Key

Definition at line 404 of file wet.hh.

template<typename Key , typename Compare >
using vcsn::detail::wet_set< Key, Compare >::self_t = wet_set

Definition at line 402 of file wet.hh.

template<typename Key , typename Compare >
using vcsn::detail::wet_set< Key, Compare >::set_t = std::set<Key, Compare>
private

Definition at line 398 of file wet.hh.

template<typename Key , typename Compare >
using vcsn::detail::wet_set< Key, Compare >::value_t = bool

Definition at line 405 of file wet.hh.

template<typename Key , typename Compare >
using vcsn::detail::wet_set< Key, Compare >::value_type = welement_t

Definition at line 407 of file wet.hh.

template<typename Key , typename Compare >
using vcsn::detail::wet_set< Key, Compare >::welement_t = welement<key_t, value_t>

Definition at line 406 of file wet.hh.

Constructor & Destructor Documentation

template<typename Key , typename Compare >
vcsn::detail::wet_set< Key, Compare >::wet_set ( )
default
template<typename Key , typename Compare >
vcsn::detail::wet_set< Key, Compare >::wet_set ( std::initializer_list< value_type p)
inline

Definition at line 410 of file wet.hh.

References vcsn::label_of(), vcsn::detail::wet_set< Key, Compare >::set(), and vcsn::weight_of().

Here is the call graph for this function:

Member Function Documentation

template<typename Key , typename Compare >
auto vcsn::detail::wet_set< Key, Compare >::begin ( ) -> iterator
inline

Definition at line 483 of file wet.hh.

template<typename Key , typename Compare >
auto vcsn::detail::wet_set< Key, Compare >::begin ( ) const -> const_iterator
inline

Definition at line 487 of file wet.hh.

References vcsn::detail::wet_set< Key, Compare >::cbegin().

Here is the call graph for this function:

template<typename Key , typename Compare >
auto vcsn::detail::wet_set< Key, Compare >::cbegin ( ) const -> const_iterator
inline

Definition at line 485 of file wet.hh.

Referenced by vcsn::detail::wet_set< Key, Compare >::begin().

template<typename Key , typename Compare >
auto vcsn::detail::wet_set< Key, Compare >::cend ( ) const -> const_iterator
inline

Definition at line 486 of file wet.hh.

Referenced by vcsn::detail::wet_set< Key, Compare >::end().

template<typename Key , typename Compare >
template<typename... Args>
auto vcsn::detail::wet_set< Key, Compare >::clear ( Args &&...  args) -> decltype(set_. clear (std::forward<Args>(args)...))
inline

Definition at line 532 of file wet.hh.

template<typename Key , typename Compare >
template<typename... Args>
auto vcsn::detail::wet_set< Key, Compare >::empty ( Args &&...  args) const -> decltype(set_. empty (std::forward<Args>(args)...))
inline

Definition at line 534 of file wet.hh.

template<typename Key , typename Compare >
auto vcsn::detail::wet_set< Key, Compare >::end ( ) -> iterator
inline

Definition at line 484 of file wet.hh.

template<typename Key , typename Compare >
auto vcsn::detail::wet_set< Key, Compare >::end ( ) const -> const_iterator
inline

Definition at line 488 of file wet.hh.

References vcsn::detail::wet_set< Key, Compare >::cend().

Here is the call graph for this function:

template<typename Key , typename Compare >
auto vcsn::detail::wet_set< Key, Compare >::erase ( const_iterator  pos) -> iterator
inline

Definition at line 502 of file wet.hh.

template<typename Key , typename Compare >
template<typename... Args>
auto vcsn::detail::wet_set< Key, Compare >::erase ( Args &&...  args) -> decltype(set_. erase (std::forward<Args>(args)...))
inline

Definition at line 533 of file wet.hh.

template<typename Key , typename Compare >
template<typename... Args>
auto vcsn::detail::wet_set< Key, Compare >::find ( Args &&...  args) const -> const_iterator
inline

Definition at line 509 of file wet.hh.

template<typename Key , typename Compare >
template<typename... Args>
auto vcsn::detail::wet_set< Key, Compare >::find ( Args &&...  args) -> iterator
inline

Definition at line 516 of file wet.hh.

template<typename Key , typename Compare >
void vcsn::detail::wet_set< Key, Compare >::set ( const key_t k,
const value_t v 
)
inline

Definition at line 490 of file wet.hh.

References vcsn::detail::void.

Referenced by vcsn::detail::wet_set< Key, Compare >::wet_set().

template<typename Key , typename Compare >
void vcsn::detail::wet_set< Key, Compare >::set ( const iterator ,
const value_t v 
)
inline

Definition at line 497 of file wet.hh.

References vcsn::detail::void.

template<typename Key , typename Compare >
template<typename... Args>
auto vcsn::detail::wet_set< Key, Compare >::size ( Args &&...  args) const -> decltype(set_. size (std::forward<Args>(args)...))
inline

Definition at line 535 of file wet.hh.

Member Data Documentation

template<typename Key , typename Compare >
constexpr wet_kind_t vcsn::detail::wet_set< Key, Compare >::kind = wet_kind_t::set
static

Definition at line 403 of file wet.hh.

template<typename Key , typename Compare >
set_t vcsn::detail::wet_set< Key, Compare >::set_
private

Definition at line 399 of file wet.hh.


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