Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::dynamic_bitset< Block, Allocator > Singleton Reference

#include <dynamic_bitset_fwd.hpp>

Classes

class  reference
 

Public Types

typedef Block block_type
 
typedef Allocator allocator_type
 
typedef std::size_t size_type
 
typedef buffer_type::size_type block_width_type
 
typedef bool const_reference
 

Public Member Functions

 BOOST_STATIC_CONSTANT (block_width_type, bits_per_block=(std::numeric_limits< Block >::digits))
 
 BOOST_STATIC_CONSTANT (size_type, npos=static_cast< size_type >(-1))
 
 dynamic_bitset (const Allocator &alloc=Allocator())
 
 dynamic_bitset (size_type num_bits, unsigned long value=0, const Allocator &alloc=Allocator())
 
template<typename CharT , typename Traits , typename Alloc >
 dynamic_bitset (const std::basic_string< CharT, Traits, Alloc > &s, typename std::basic_string< CharT, Traits, Alloc >::size_type pos, typename std::basic_string< CharT, Traits, Alloc >::size_type n, size_type num_bits=npos, const Allocator &alloc=Allocator())
 
template<typename CharT , typename Traits , typename Alloc >
 dynamic_bitset (const std::basic_string< CharT, Traits, Alloc > &s, typename std::basic_string< CharT, Traits, Alloc >::size_type pos=0)
 
template<typename BlockInputIterator >
 dynamic_bitset (BlockInputIterator first, BlockInputIterator last, const Allocator &alloc=Allocator())
 
template<typename T >
void dispatch_init (T num_bits, unsigned long value, detail::dynamic_bitset_impl::value_to_type< true >)
 
template<typename T >
void dispatch_init (T first, T last, detail::dynamic_bitset_impl::value_to_type< false >)
 
template<typename BlockIter >
void init_from_block_range (BlockIter first, BlockIter last)
 
 dynamic_bitset (const dynamic_bitset &b)
 
 ~dynamic_bitset ()
 
void swap (dynamic_bitset &b)
 
dynamic_bitsetoperator= (const dynamic_bitset &b)
 
 dynamic_bitset (dynamic_bitset &&src)
 
dynamic_bitsetoperator= (dynamic_bitset &&src)
 
allocator_type get_allocator () const
 
void resize (size_type num_bits, bool value=false)
 
void clear ()
 
void push_back (bool bit)
 
void append (Block block)
 
template<typename BlockInputIterator >
void m_append (BlockInputIterator first, BlockInputIterator last, std::input_iterator_tag)
 
template<typename BlockInputIterator >
void m_append (BlockInputIterator first, BlockInputIterator last, std::forward_iterator_tag)
 
template<typename BlockInputIterator >
void append (BlockInputIterator first, BlockInputIterator last)
 
dynamic_bitsetoperator&= (const dynamic_bitset &b)
 
dynamic_bitsetoperator|= (const dynamic_bitset &b)
 
dynamic_bitsetoperator^= (const dynamic_bitset &b)
 
dynamic_bitsetoperator-= (const dynamic_bitset &b)
 
dynamic_bitsetoperator<<= (size_type n)
 
dynamic_bitsetoperator>>= (size_type n)
 
dynamic_bitset operator<< (size_type n) const
 
dynamic_bitset operator>> (size_type n) const
 
dynamic_bitsetset (size_type n, bool val=true)
 
dynamic_bitsetset ()
 
dynamic_bitsetreset (size_type n)
 
dynamic_bitsetreset ()
 
dynamic_bitsetflip (size_type n)
 
dynamic_bitsetflip ()
 
bool test (size_type n) const
 
bool test_set (size_type n, bool val=true)
 
bool all () const
 
bool any () const
 
bool none () const
 
dynamic_bitset operator~ () const
 
size_type count () const BOOST_NOEXCEPT
 
reference operator[] (size_type pos)
 
bool operator[] (size_type pos) const
 
unsigned long to_ulong () const
 
size_type size () const BOOST_NOEXCEPT
 
size_type num_blocks () const BOOST_NOEXCEPT
 
size_type max_size () const BOOST_NOEXCEPT
 
bool empty () const BOOST_NOEXCEPT
 
bool is_subset_of (const dynamic_bitset &a) const
 
bool is_proper_subset_of (const dynamic_bitset &a) const
 
bool intersects (const dynamic_bitset &a) const
 
size_type find_first () const
 
size_type find_next (size_type pos) const
 

Friends

class bit_appender
 
template<typename B , typename A >
bool operator== (const dynamic_bitset< B, A > &a, const dynamic_bitset< B, A > &b)
 
template<typename B , typename A >
bool operator< (const dynamic_bitset< B, A > &a, const dynamic_bitset< B, A > &b)
 
template<typename B , typename A , typename BlockOutputIterator >
void to_block_range (const dynamic_bitset< B, A > &b, BlockOutputIterator result)
 
template<typename BlockIterator , typename B , typename A >
void from_block_range (BlockIterator first, BlockIterator last, dynamic_bitset< B, A > &result)
 
template<typename CharT , typename Traits , typename B , typename A >
std::basic_istream< CharT,
Traits > & 
operator>> (std::basic_istream< CharT, Traits > &is, dynamic_bitset< B, A > &b)
 
template<typename B , typename A , typename stringT >
void to_string_helper (const dynamic_bitset< B, A > &b, stringT &s, bool dump_all)
 

Member Typedef Documentation

template<typename Block, typename Allocator>
typedef Allocator boost::dynamic_bitset< Block, Allocator >::allocator_type
template<typename Block, typename Allocator>
typedef Block boost::dynamic_bitset< Block, Allocator >::block_type
template<typename Block, typename Allocator>
typedef buffer_type::size_type boost::dynamic_bitset< Block, Allocator >::block_width_type
template<typename Block, typename Allocator>
typedef bool boost::dynamic_bitset< Block, Allocator >::const_reference
template<typename Block, typename Allocator>
typedef std::size_t boost::dynamic_bitset< Block, Allocator >::size_type

Constructor & Destructor Documentation

template<typename Block , typename Allocator>
boost::dynamic_bitset< Block, Allocator >::dynamic_bitset ( const Allocator &  alloc = Allocator())
explicit
template<typename Block , typename Allocator>
boost::dynamic_bitset< Block, Allocator >::dynamic_bitset ( size_type  num_bits,
unsigned long  value = 0,
const Allocator &  alloc = Allocator() 
)
explicit
template<typename Block, typename Allocator>
template<typename CharT , typename Traits , typename Alloc >
boost::dynamic_bitset< Block, Allocator >::dynamic_bitset ( const std::basic_string< CharT, Traits, Alloc > &  s,
typename std::basic_string< CharT, Traits, Alloc >::size_type  pos,
typename std::basic_string< CharT, Traits, Alloc >::size_type  n,
size_type  num_bits = npos,
const Allocator &  alloc = Allocator() 
)
inline
template<typename Block, typename Allocator>
template<typename CharT , typename Traits , typename Alloc >
boost::dynamic_bitset< Block, Allocator >::dynamic_bitset ( const std::basic_string< CharT, Traits, Alloc > &  s,
typename std::basic_string< CharT, Traits, Alloc >::size_type  pos = 0 
)
inlineexplicit
template<typename Block, typename Allocator>
template<typename BlockInputIterator >
boost::dynamic_bitset< Block, Allocator >::dynamic_bitset ( BlockInputIterator  first,
BlockInputIterator  last,
const Allocator &  alloc = Allocator() 
)
inline
template<typename Block , typename Allocator>
boost::dynamic_bitset< Block, Allocator >::dynamic_bitset ( const dynamic_bitset< Block, Allocator > &  b)
inline
template<typename Block , typename Allocator >
boost::dynamic_bitset< Block, Allocator >::~dynamic_bitset ( )
inline
template<typename Block , typename Allocator>
boost::dynamic_bitset< Block, Allocator >::dynamic_bitset ( dynamic_bitset< Block, Allocator > &&  src)
inline

Member Function Documentation

template<typename Block , typename Allocator >
bool boost::dynamic_bitset< Block, Allocator >::all ( ) const
template<typename Block , typename Allocator >
bool boost::dynamic_bitset< Block, Allocator >::any ( ) const
template<typename Block, typename Allocator >
void boost::dynamic_bitset< Block, Allocator >::append ( Block  block)
template<typename Block, typename Allocator>
template<typename BlockInputIterator >
void boost::dynamic_bitset< Block, Allocator >::append ( BlockInputIterator  first,
BlockInputIterator  last 
)
inline
template<typename Block, typename Allocator>
boost::dynamic_bitset< Block, Allocator >::BOOST_STATIC_CONSTANT ( block_width_type  ,
bits_per_block  = (std::numeric_limits< Block >::digits) 
)
template<typename Block, typename Allocator>
boost::dynamic_bitset< Block, Allocator >::BOOST_STATIC_CONSTANT ( size_type  ,
npos  = static_cast< size_type >(-1) 
)
template<typename Block , typename Allocator >
void boost::dynamic_bitset< Block, Allocator >::clear ( )

Referenced by boost::operator>>().

template<typename Block , typename Allocator >
dynamic_bitset< Block, Allocator >::size_type boost::dynamic_bitset< Block, Allocator >::count ( ) const
template<typename Block, typename Allocator>
template<typename T >
void boost::dynamic_bitset< Block, Allocator >::dispatch_init ( T  num_bits,
unsigned long  value,
detail::dynamic_bitset_impl::value_to_type< true >   
)
inline
template<typename Block, typename Allocator>
template<typename T >
void boost::dynamic_bitset< Block, Allocator >::dispatch_init ( T  first,
T  last,
detail::dynamic_bitset_impl::value_to_type< false >   
)
inline
template<typename Block , typename Allocator >
bool boost::dynamic_bitset< Block, Allocator >::empty ( ) const
inline
template<typename Block , typename Allocator >
dynamic_bitset< Block, Allocator >::size_type boost::dynamic_bitset< Block, Allocator >::find_first ( ) const
template<typename Block , typename Allocator >
dynamic_bitset< Block, Allocator >::size_type boost::dynamic_bitset< Block, Allocator >::find_next ( size_type  pos) const
template<typename Block , typename Allocator >
dynamic_bitset< Block, Allocator > & boost::dynamic_bitset< Block, Allocator >::flip ( size_type  n)
template<typename Block , typename Allocator >
dynamic_bitset< Block, Allocator > & boost::dynamic_bitset< Block, Allocator >::flip ( )
template<typename Block , typename Allocator >
dynamic_bitset< Block, Allocator >::allocator_type boost::dynamic_bitset< Block, Allocator >::get_allocator ( ) const
inline
template<typename Block, typename Allocator>
template<typename BlockIter >
void boost::dynamic_bitset< Block, Allocator >::init_from_block_range ( BlockIter  first,
BlockIter  last 
)
inline
template<typename Block , typename Allocator >
bool boost::dynamic_bitset< Block, Allocator >::intersects ( const dynamic_bitset< Block, Allocator > &  a) const
template<typename Block , typename Allocator >
bool boost::dynamic_bitset< Block, Allocator >::is_proper_subset_of ( const dynamic_bitset< Block, Allocator > &  a) const
template<typename Block , typename Allocator >
bool boost::dynamic_bitset< Block, Allocator >::is_subset_of ( const dynamic_bitset< Block, Allocator > &  a) const
template<typename Block, typename Allocator>
template<typename BlockInputIterator >
void boost::dynamic_bitset< Block, Allocator >::m_append ( BlockInputIterator  first,
BlockInputIterator  last,
std::input_iterator_tag   
)
inline
template<typename Block, typename Allocator>
template<typename BlockInputIterator >
void boost::dynamic_bitset< Block, Allocator >::m_append ( BlockInputIterator  first,
BlockInputIterator  last,
std::forward_iterator_tag   
)
inline
template<typename Block , typename Allocator >
dynamic_bitset< Block, Allocator >::size_type boost::dynamic_bitset< Block, Allocator >::max_size ( ) const
inline

Referenced by boost::operator>>().

template<typename Block , typename Allocator >
bool boost::dynamic_bitset< Block, Allocator >::none ( ) const
inline

References boost::fusion::any().

template<typename Block , typename Allocator >
dynamic_bitset< Block, Allocator > & boost::dynamic_bitset< Block, Allocator >::operator&= ( const dynamic_bitset< Block, Allocator > &  b)
template<typename Block , typename Allocator >
dynamic_bitset< Block, Allocator > & boost::dynamic_bitset< Block, Allocator >::operator-= ( const dynamic_bitset< Block, Allocator > &  b)
template<typename Block , typename Allocator >
dynamic_bitset< Block, Allocator > boost::dynamic_bitset< Block, Allocator >::operator<< ( size_type  n) const

References boost::n.

template<typename Block , typename Allocator >
dynamic_bitset< Block, Allocator > & boost::dynamic_bitset< Block, Allocator >::operator<<= ( size_type  n)
template<typename Block , typename Allocator >
dynamic_bitset< Block, Allocator > & boost::dynamic_bitset< Block, Allocator >::operator= ( const dynamic_bitset< Block, Allocator > &  b)
template<typename Block , typename Allocator >
dynamic_bitset< Block, Allocator > & boost::dynamic_bitset< Block, Allocator >::operator= ( dynamic_bitset< Block, Allocator > &&  src)
inline
template<typename Block , typename Allocator >
dynamic_bitset< Block, Allocator > boost::dynamic_bitset< Block, Allocator >::operator>> ( size_type  n) const

References boost::n.

template<typename Block, typename Allocator>
reference boost::dynamic_bitset< Block, Allocator >::operator[] ( size_type  pos)
inline
template<typename Block, typename Allocator>
bool boost::dynamic_bitset< Block, Allocator >::operator[] ( size_type  pos) const
inline
template<typename Block , typename Allocator >
dynamic_bitset< Block, Allocator > & boost::dynamic_bitset< Block, Allocator >::operator^= ( const dynamic_bitset< Block, Allocator > &  b)
template<typename Block , typename Allocator >
dynamic_bitset< Block, Allocator > & boost::dynamic_bitset< Block, Allocator >::operator|= ( const dynamic_bitset< Block, Allocator > &  b)
template<typename Block , typename Allocator >
dynamic_bitset< Block, Allocator > boost::dynamic_bitset< Block, Allocator >::operator~ ( ) const
template<typename Block , typename Allocator >
void boost::dynamic_bitset< Block, Allocator >::push_back ( bool  bit)
template<typename Block , typename Allocator >
dynamic_bitset< Block, Allocator > & boost::dynamic_bitset< Block, Allocator >::reset ( size_type  n)
template<typename Block , typename Allocator >
dynamic_bitset< Block, Allocator > & boost::dynamic_bitset< Block, Allocator >::reset ( )

References std::fill().

template<typename Block , typename Allocator >
void boost::dynamic_bitset< Block, Allocator >::resize ( size_type  num_bits,
bool  value = false 
)
template<typename Block , typename Allocator >
dynamic_bitset< Block, Allocator > & boost::dynamic_bitset< Block, Allocator >::set ( size_type  n,
bool  val = true 
)
template<typename Block , typename Allocator >
dynamic_bitset< Block, Allocator > & boost::dynamic_bitset< Block, Allocator >::set ( )

References std::fill().

template<typename Block , typename Allocator >
void boost::dynamic_bitset< Block, Allocator >::swap ( dynamic_bitset< Block, Allocator > &  b)
inline

References boost::swap().

Referenced by boost::swap().

template<typename Block , typename Allocator >
bool boost::dynamic_bitset< Block, Allocator >::test ( size_type  n) const
template<typename Block , typename Allocator >
bool boost::dynamic_bitset< Block, Allocator >::test_set ( size_type  n,
bool  val = true 
)
template<typename Block , typename Allocator >
unsigned long boost::dynamic_bitset< Block, Allocator >::to_ulong ( ) const

Friends And Related Function Documentation

template<typename Block, typename Allocator>
friend class bit_appender
friend
template<typename Block, typename Allocator>
template<typename BlockIterator , typename B , typename A >
void from_block_range ( BlockIterator  first,
BlockIterator  last,
dynamic_bitset< B, A > &  result 
)
friend
template<typename Block, typename Allocator>
template<typename B , typename A >
bool operator< ( const dynamic_bitset< B, A > &  a,
const dynamic_bitset< B, A > &  b 
)
friend
template<typename Block, typename Allocator>
template<typename B , typename A >
bool operator== ( const dynamic_bitset< B, A > &  a,
const dynamic_bitset< B, A > &  b 
)
friend
template<typename Block, typename Allocator>
template<typename CharT , typename Traits , typename B , typename A >
std::basic_istream<CharT, Traits>& operator>> ( std::basic_istream< CharT, Traits > &  is,
dynamic_bitset< B, A > &  b 
)
friend
template<typename Block, typename Allocator>
template<typename B , typename A , typename BlockOutputIterator >
void to_block_range ( const dynamic_bitset< B, A > &  b,
BlockOutputIterator  result 
)
friend
template<typename Block, typename Allocator>
template<typename B , typename A , typename stringT >
void to_string_helper ( const dynamic_bitset< B, A > &  b,
stringT &  s,
bool  dump_all 
)
friend

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