Vcsn  2.1
Be Rational
vcsn::detail::wet_bitset Class Reference

#include <wet.hh>

Collaboration diagram for vcsn::detail::wet_bitset:

Classes

struct  iterator_impl
 Iterator. More...
 

Public Types

using self_t = wet_bitset
 
using key_t = unsigned
 
using value_t = bool
 
using welement_t = welement< key_t, value_t >
 
using value_type = welement_t
 
using iterator = iterator_impl< value_type, set_t >
 Mutable iterator. More...
 
using const_iterator = iterator_impl< const value_type, const set_t >
 Const iterator. More...
 

Public Member Functions

 wet_bitset ()
 
 wet_bitset (size_t size)
 
 wet_bitset (const std::initializer_list< value_type > &p)
 
 wet_bitset (set_t &&set)
 
const set_tset () const
 
set_tset ()
 FIXME: Avoid this by exposing more interfaces. More...
 
void clear ()
 
bool empty () const
 
size_t size () const
 
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, value_t v=true)
 
void set (const char k, value_t v=true)
 
void set (const iterator &, const value_t v=true)
 
auto erase (const_iterator pos) -> void
 
void erase (key_t k)
 
void erase (char k)
 
auto find (key_t k) const -> const_iterator
 
auto find (key_t k) -> iterator
 
auto find (char k) const -> const_iterator
 
auto find (char k) -> iterator
 

Static Public Member Functions

static key_t key (char k)
 Special for char: map -1 to 255 (MAX_UCHAR), not MAX_INT. More...
 

Static Public Attributes

static constexpr wet_kind_t kind = wet_kind_t::bitset
 
static constexpr size_t npos = set_t::npos
 

Private Types

using set_t = boost::dynamic_bitset<>
 

Private Attributes

set_t set_
 

Detailed Description

Definition at line 497 of file wet.hh.

Member Typedef Documentation

Const iterator.

Definition at line 639 of file wet.hh.

Mutable iterator.

Definition at line 636 of file wet.hh.

Definition at line 506 of file wet.hh.

Definition at line 504 of file wet.hh.

using vcsn::detail::wet_bitset::set_t = boost::dynamic_bitset<>
private

Definition at line 500 of file wet.hh.

Definition at line 507 of file wet.hh.

Definition at line 509 of file wet.hh.

Definition at line 508 of file wet.hh.

Constructor & Destructor Documentation

vcsn::detail::wet_bitset::wet_bitset ( )
inline

Definition at line 518 of file wet.hh.

vcsn::detail::wet_bitset::wet_bitset ( size_t  size)
inline

Definition at line 520 of file wet.hh.

vcsn::detail::wet_bitset::wet_bitset ( const std::initializer_list< value_type > &  p)
inline

Definition at line 524 of file wet.hh.

References vcsn::label_of(), set(), and vcsn::weight_of().

Here is the call graph for this function:

vcsn::detail::wet_bitset::wet_bitset ( set_t &&  set)
inline

Definition at line 530 of file wet.hh.

References set().

Here is the call graph for this function:

Member Function Documentation

auto vcsn::detail::wet_bitset::begin ( ) -> iterator
inline

Definition at line 641 of file wet.hh.

auto vcsn::detail::wet_bitset::begin ( ) const -> const_iterator
inline

Definition at line 647 of file wet.hh.

References cbegin().

Here is the call graph for this function:

auto vcsn::detail::wet_bitset::cbegin ( ) const -> const_iterator
inline

Definition at line 644 of file wet.hh.

Referenced by begin().

auto vcsn::detail::wet_bitset::cend ( ) const -> const_iterator
inline

Definition at line 645 of file wet.hh.

References set_.

Referenced by end().

void vcsn::detail::wet_bitset::clear ( )
inline

Definition at line 545 of file wet.hh.

bool vcsn::detail::wet_bitset::empty ( ) const
inline

Definition at line 550 of file wet.hh.

auto vcsn::detail::wet_bitset::end ( ) -> iterator
inline

Definition at line 642 of file wet.hh.

References set_.

Referenced by find().

auto vcsn::detail::wet_bitset::end ( ) const -> const_iterator
inline

Definition at line 648 of file wet.hh.

References cend().

Here is the call graph for this function:

auto vcsn::detail::wet_bitset::erase ( const_iterator  pos) -> void
inline

Definition at line 673 of file wet.hh.

Referenced by erase().

void vcsn::detail::wet_bitset::erase ( key_t  k)
inline

Definition at line 679 of file wet.hh.

void vcsn::detail::wet_bitset::erase ( char  k)
inline

Definition at line 684 of file wet.hh.

References erase(), and key().

Here is the call graph for this function:

auto vcsn::detail::wet_bitset::find ( key_t  k) const -> const_iterator
inline

Definition at line 689 of file wet.hh.

References end(), and set_.

Referenced by find().

Here is the call graph for this function:

auto vcsn::detail::wet_bitset::find ( key_t  k) -> iterator
inline

Definition at line 698 of file wet.hh.

References end(), and set_.

Here is the call graph for this function:

auto vcsn::detail::wet_bitset::find ( char  k) const -> const_iterator
inline

Definition at line 707 of file wet.hh.

References find(), and key().

Here is the call graph for this function:

auto vcsn::detail::wet_bitset::find ( char  k) -> iterator
inline

Definition at line 713 of file wet.hh.

References find(), and key().

Here is the call graph for this function:

static key_t vcsn::detail::wet_bitset::key ( char  k)
inlinestatic

Special for char: map -1 to 255 (MAX_UCHAR), not MAX_INT.

Definition at line 651 of file wet.hh.

Referenced by erase(), find(), and set().

const set_t& vcsn::detail::wet_bitset::set ( ) const
inline

Definition at line 534 of file wet.hh.

References set_.

Referenced by set(), and wet_bitset().

set_t& vcsn::detail::wet_bitset::set ( )
inline

FIXME: Avoid this by exposing more interfaces.

Definition at line 540 of file wet.hh.

References set_.

void vcsn::detail::wet_bitset::set ( const key_t  k,
value_t  v = true 
)
inline

Definition at line 656 of file wet.hh.

References vcsn::v, and vcsn::detail::void.

void vcsn::detail::wet_bitset::set ( const char  k,
value_t  v = true 
)
inline

Definition at line 662 of file wet.hh.

References key(), set(), and vcsn::v.

Here is the call graph for this function:

void vcsn::detail::wet_bitset::set ( const iterator ,
const value_t  v = true 
)
inline

Definition at line 668 of file wet.hh.

References vcsn::v, and vcsn::detail::void.

size_t vcsn::detail::wet_bitset::size ( ) const
inline

Definition at line 555 of file wet.hh.

Member Data Documentation

constexpr wet_kind_t vcsn::detail::wet_bitset::kind = wet_kind_t::bitset
static

Definition at line 505 of file wet.hh.

constexpr size_t vcsn::detail::wet_bitset::npos = set_t::npos
static

Definition at line 560 of file wet.hh.

set_t vcsn::detail::wet_bitset::set_
private

Definition at line 501 of file wet.hh.

Referenced by cend(), end(), find(), and set().


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