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

Weighted set: general, ordered, case. More...

#include <wet.hh>

Collaboration diagram for vcsn::detail::wet_map< Key, Value, Compare >:

Public Types

using self_t = wet_map
 
using key_t = Key
 
using value_t = Value
 
using welement_t = welement< key_t, value_t >
 
using mapped_type = typename map_t::mapped_type
 
using value_type = typename map_t::value_type
 
using iterator = typename map_t::iterator
 
using const_iterator = typename map_t::const_iterator
 

Public Member Functions

 wet_map ()=default
 
 wet_map (std::initializer_list< value_type > l)
 
void set (const key_t &k, const value_t &v)
 
void set (const iterator &i, const value_t &v)
 
template<typename Fun >
void for_each (Fun f) const
 
template<typename... Args>
auto key_comp (Args &&...args) const -> decltype(map_.key_comp(std::forward< Args >(args)...))
 
template<typename... Args>
auto emplace (Args &&...args) -> decltype(map_.emplace(std::forward< Args >(args)...))
 
template<typename... Args>
auto clear (Args &&...args) -> decltype(map_.clear(std::forward< Args >(args)...))
 
template<typename... Args>
auto begin (Args &&...args) const -> decltype(map_.begin(std::forward< Args >(args)...))
 
template<typename... Args>
auto find (Args &&...args) const -> decltype(map_.find(std::forward< Args >(args)...))
 
template<typename... Args>
auto find (Args &&...args) -> decltype(map_.find(std::forward< Args >(args)...))
 
template<typename... Args>
auto erase (Args &&...args) -> decltype(map_.erase(std::forward< Args >(args)...))
 
template<typename... Args>
auto end (Args &&...args) const -> decltype(map_.end(std::forward< Args >(args)...))
 
template<typename... Args>
auto begin (Args &&...args) -> decltype(map_.begin(std::forward< Args >(args)...))
 
template<typename... Args>
auto end (Args &&...args) -> decltype(map_.end(std::forward< Args >(args)...))
 
template<typename... Args>
auto empty (Args &&...args) const -> decltype(map_.empty(std::forward< Args >(args)...))
 
template<typename... Args>
auto size (Args &&...args) const -> decltype(map_.size(std::forward< Args >(args)...))
 

Static Public Member Functions

static const key_tkey_of (const value_type &p)
 
static const value_tvalue_of (const value_type &p)
 

Static Public Attributes

static constexpr wet_kind_t kind = wet_kind_t::map
 

Private Types

using map_t = std::map< Key, Value, Compare >
 

Private Attributes

map_t map_
 

Detailed Description

template<typename Key, typename Value, typename Compare>
class vcsn::detail::wet_map< Key, Value, Compare >

Weighted set: general, ordered, case.

Definition at line 234 of file wet.hh.

Member Typedef Documentation

template<typename Key , typename Value , typename Compare >
using vcsn::detail::wet_map< Key, Value, Compare >::const_iterator = typename map_t::const_iterator

Definition at line 249 of file wet.hh.

template<typename Key , typename Value , typename Compare >
using vcsn::detail::wet_map< Key, Value, Compare >::iterator = typename map_t::iterator

Definition at line 248 of file wet.hh.

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

Definition at line 243 of file wet.hh.

template<typename Key , typename Value , typename Compare >
using vcsn::detail::wet_map< Key, Value, Compare >::map_t = std::map<Key, Value, Compare>
private

Definition at line 237 of file wet.hh.

template<typename Key , typename Value , typename Compare >
using vcsn::detail::wet_map< Key, Value, Compare >::mapped_type = typename map_t::mapped_type

Definition at line 246 of file wet.hh.

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

Definition at line 241 of file wet.hh.

template<typename Key , typename Value , typename Compare >
using vcsn::detail::wet_map< Key, Value, Compare >::value_t = Value

Definition at line 244 of file wet.hh.

template<typename Key , typename Value , typename Compare >
using vcsn::detail::wet_map< Key, Value, Compare >::value_type = typename map_t::value_type

Definition at line 247 of file wet.hh.

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

Definition at line 245 of file wet.hh.

Constructor & Destructor Documentation

template<typename Key , typename Value , typename Compare >
vcsn::detail::wet_map< Key, Value, Compare >::wet_map ( )
default
template<typename Key , typename Value , typename Compare >
vcsn::detail::wet_map< Key, Value, Compare >::wet_map ( std::initializer_list< value_type l)
inline

Definition at line 253 of file wet.hh.

Member Function Documentation

template<typename Key , typename Value , typename Compare >
template<typename... Args>
auto vcsn::detail::wet_map< Key, Value, Compare >::begin ( Args &&...  args) const -> decltype(map_. begin (std::forward<Args>(args)...))
inline

Definition at line 296 of file wet.hh.

Referenced by vcsn::detail::wet_map< Key, Value, Compare >::for_each().

template<typename Key , typename Value , typename Compare >
template<typename... Args>
auto vcsn::detail::wet_map< Key, Value, Compare >::begin ( Args &&...  args) -> decltype(map_. begin (std::forward<Args>(args)...))
inline

Definition at line 301 of file wet.hh.

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

Definition at line 295 of file wet.hh.

template<typename Key , typename Value , typename Compare >
template<typename... Args>
auto vcsn::detail::wet_map< Key, Value, Compare >::emplace ( Args &&...  args) -> decltype(map_. emplace (std::forward<Args>(args)...))
inline

Definition at line 294 of file wet.hh.

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

Definition at line 303 of file wet.hh.

template<typename Key , typename Value , typename Compare >
template<typename... Args>
auto vcsn::detail::wet_map< Key, Value, Compare >::end ( Args &&...  args) const -> decltype(map_. end (std::forward<Args>(args)...))
inline

Definition at line 300 of file wet.hh.

Referenced by vcsn::detail::wet_map< Key, Value, Compare >::for_each().

template<typename Key , typename Value , typename Compare >
template<typename... Args>
auto vcsn::detail::wet_map< Key, Value, Compare >::end ( Args &&...  args) -> decltype(map_. end (std::forward<Args>(args)...))
inline

Definition at line 302 of file wet.hh.

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

Definition at line 299 of file wet.hh.

template<typename Key , typename Value , typename Compare >
template<typename... Args>
auto vcsn::detail::wet_map< Key, Value, Compare >::find ( Args &&...  args) const -> decltype(map_. find (std::forward<Args>(args)...))
inline

Definition at line 297 of file wet.hh.

template<typename Key , typename Value , typename Compare >
template<typename... Args>
auto vcsn::detail::wet_map< Key, Value, Compare >::find ( Args &&...  args) -> decltype(map_. find (std::forward<Args>(args)...))
inline

Definition at line 298 of file wet.hh.

template<typename Key , typename Value , typename Compare >
template<typename Fun >
void vcsn::detail::wet_map< Key, Value, Compare >::for_each ( Fun  f) const
inline

Definition at line 278 of file wet.hh.

References vcsn::detail::wet_map< Key, Value, Compare >::begin(), and vcsn::detail::wet_map< Key, Value, Compare >::end().

Here is the call graph for this function:

template<typename Key , typename Value , typename Compare >
template<typename... Args>
auto vcsn::detail::wet_map< Key, Value, Compare >::key_comp ( Args &&...  args) const -> decltype(map_. key_comp (std::forward<Args>(args)...))
inline

Definition at line 293 of file wet.hh.

template<typename Key , typename Value , typename Compare >
static const key_t& vcsn::detail::wet_map< Key, Value, Compare >::key_of ( const value_type p)
inlinestatic

Definition at line 257 of file wet.hh.

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

Definition at line 267 of file wet.hh.

References vcsn::detail::v.

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

Definition at line 272 of file wet.hh.

References vcsn::detail::v.

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

Definition at line 304 of file wet.hh.

template<typename Key , typename Value , typename Compare >
static const value_t& vcsn::detail::wet_map< Key, Value, Compare >::value_of ( const value_type p)
inlinestatic

Definition at line 262 of file wet.hh.

Member Data Documentation

template<typename Key , typename Value , typename Compare >
constexpr wet_kind_t vcsn::detail::wet_map< Key, Value, Compare >::kind = wet_kind_t::map
static

Definition at line 242 of file wet.hh.

template<typename Key , typename Value , typename Compare >
map_t vcsn::detail::wet_map< Key, Value, Compare >::map_
private

Definition at line 238 of file wet.hh.


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