Whole document tree
    

Whole document tree

Templatestd::bitset class Reference
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

std::bitset< _Nb > Class Template Reference

#include <std_bitset.h>

Inheritance diagram for std::bitset:

Inheritance graph
[legend]
Collaboration diagram for std::bitset< _Nb >:

Collaboration graph
[legend]
List of all members.

Public Methods

 bitset ()
 bitset (unsigned long __val)
template<class _CharT, class _Traits, class _Alloc>  bitset (const basic_string< _CharT, _Traits, _Alloc > &__s, size_t __pos=0)
template<class _CharT, class _Traits, class _Alloc>  bitset (const basic_string< _CharT, _Traits, _Alloc > &__s, size_t __pos, size_t __n)
bitset< _Nb > & operator &= (const bitset< _Nb > &__rhs)
bitset< _Nb > & operator|= (const bitset< _Nb > &__rhs)
bitset< _Nb > & operator^= (const bitset< _Nb > &__rhs)
bitset< _Nb > & operator<<= (size_t __pos)
bitset< _Nb > & operator>>= (size_t __pos)
bitset< _Nb > & _Unchecked_set (size_t __pos)
bitset< _Nb > & _Unchecked_set (size_t __pos, int __val)
bitset< _Nb > & _Unchecked_reset (size_t __pos)
bitset< _Nb > & _Unchecked_flip (size_t __pos)
bool _Unchecked_test (size_t __pos) const
bitset< _Nb > & set ()
bitset< _Nb > & set (size_t __pos, bool __val=true)
bitset< _Nb > & reset ()
bitset< _Nb > & reset (size_t __pos)
bitset< _Nb > & flip ()
bitset< _Nb > & flip (size_t __pos)
bitset< _Nb > operator~ () const
reference operator[] (size_t __pos)
bool operator[] (size_t __pos) const
unsigned long to_ulong () const
template<class _CharT, class _Traits, class _Alloc> basic_string< _CharT, _Traits,
_Alloc > 
to_string () const
template<class _CharT, class _Traits, class _Alloc> void _M_copy_from_string (const basic_string< _CharT, _Traits, _Alloc > &__s, size_t, size_t)
template<class _CharT, class _Traits, class _Alloc> void _M_copy_to_string (basic_string< _CharT, _Traits, _Alloc > &) const
size_t count () const
size_t size () const
bool operator== (const bitset< _Nb > &__rhs) const
bool operator!= (const bitset< _Nb > &__rhs) const
bool test (size_t __pos) const
bool any () const
bool none () const
bitset< _Nb > operator<< (size_t __pos) const
bitset< _Nb > operator>> (size_t __pos) const
size_t _Find_first () const
size_t _Find_next (size_t __prev) const

Private Types

typedef _Base_bitset< __BITSET_WORDS(_Nb) _Base )
typedef unsigned long _WordT

Private Methods

void _M_do_sanitize ()

Friends

class reference

template<size_t _Nb>
class std::bitset< _Nb >


Member Typedef Documentation

template<size_t _Nb>
typedef _Base_bitset<__BITSET_WORDS(_Nb) std::bitset< _Nb >::_Base) [private]
 

Definition at line 421 of file std_bitset.h.

template<size_t _Nb>
typedef unsigned long std::bitset< _Nb >::_WordT [private]
 

Reimplemented from std::_Base_bitset< __BITSET_WORDS(_Nb)>.

Definition at line 422 of file std_bitset.h.


Constructor & Destructor Documentation

template<size_t _Nb>
std::bitset< _Nb >::bitset   [inline]
 

Definition at line 488 of file std_bitset.h.

template<size_t _Nb>
std::bitset< _Nb >::bitset unsigned long    __val [inline]
 

Definition at line 489 of file std_bitset.h.

References __BITSET_WORDS, and std::bitset< _Nb >::_M_do_sanitize().

template<size_t _Nb>
template<class _CharT, class _Traits, class _Alloc>
std::bitset< _Nb >::bitset const basic_string< _CharT, _Traits, _Alloc > &    __s,
size_t    __pos = 0
[inline, explicit]
 

Definition at line 493 of file std_bitset.h.

References __STL_THROW, std::bitset< _Nb >::_M_copy_from_string(), and std::basic_string< _CharT, _Traits, _Alloc >::size().

template<size_t _Nb>
template<class _CharT, class _Traits, class _Alloc>
std::bitset< _Nb >::bitset const basic_string< _CharT, _Traits, _Alloc > &    __s,
size_t    __pos,
size_t    __n
[inline]
 

Definition at line 503 of file std_bitset.h.

References __STL_THROW, std::bitset< _Nb >::_M_copy_from_string(), and std::basic_string< _CharT, _Traits, _Alloc >::size().


Member Function Documentation

template<size_t _Nb>
size_t std::bitset< _Nb >::_Find_first   const [inline]
 

Definition at line 675 of file std_bitset.h.

References std::_Base_bitset< __BITSET_WORDS(_Nb)>::_M_do_find_first().

template<size_t _Nb>
size_t std::bitset< _Nb >::_Find_next size_t    __prev const [inline]
 

Definition at line 679 of file std_bitset.h.

References std::_Base_bitset< __BITSET_WORDS(_Nb)>::_M_do_find_next().

template<size_t _Nb>
template<class _CharT, class _Traits, class _Alloc>
void std::bitset< _Nb >::_M_copy_from_string const basic_string< _CharT, _Traits, _Alloc > &    __s,
size_t   ,
size_t   
 

Definition at line 691 of file std_bitset.h.

References __STL_THROW, std::min(), and std::basic_string< _CharT, _Traits, _Alloc >::size().

Referenced by std::bitset< _Nb >::bitset(), and std::operator>>().

template<size_t _Nb>
template<class _CharT, class _Traits, class _Alloc>
void std::bitset< _Nb >::_M_copy_to_string basic_string< _CharT, _Traits, _Alloc > &    const
 

Definition at line 713 of file std_bitset.h.

References std::basic_string< _CharT, _Traits, _Alloc >::assign().

Referenced by std::bitset< _Nb >::to_string().

template<size_t _Nb>
void std::bitset< _Nb >::_M_do_sanitize   [inline, private]
 

Definition at line 425 of file std_bitset.h.

Referenced by std::bitset< _Nb >::bitset(), std::bitset< _Nb >::flip(), std::bitset< _Nb >::operator<<=(), std::bitset< _Nb >::operator>>=(), and std::bitset< _Nb >::set().

template<size_t _Nb>
bitset<_Nb>& std::bitset< _Nb >::_Unchecked_flip size_t    __pos [inline]
 

Definition at line 565 of file std_bitset.h.

References std::_Base_bitset< __BITSET_WORDS(_Nb)>::_M_getword().

Referenced by std::bitset< _Nb >::flip().

template<size_t _Nb>
bitset<_Nb>& std::bitset< _Nb >::_Unchecked_reset size_t    __pos [inline]
 

Definition at line 560 of file std_bitset.h.

References std::_Base_bitset< __BITSET_WORDS(_Nb)>::_M_getword().

Referenced by std::bitset< _Nb >::reset().

template<size_t _Nb>
bitset<_Nb>& std::bitset< _Nb >::_Unchecked_set size_t    __pos,
int    __val
[inline]
 

Definition at line 551 of file std_bitset.h.

References std::_Base_bitset< __BITSET_WORDS(_Nb)>::_M_getword().

template<size_t _Nb>
bitset<_Nb>& std::bitset< _Nb >::_Unchecked_set size_t    __pos [inline]
 

Definition at line 546 of file std_bitset.h.

References std::_Base_bitset< __BITSET_WORDS(_Nb)>::_M_getword().

Referenced by std::bitset< _Nb >::set().

template<size_t _Nb>
bool std::bitset< _Nb >::_Unchecked_test size_t    __pos const [inline]
 

Definition at line 570 of file std_bitset.h.

References std::_Base_bitset< __BITSET_WORDS(_Nb)>::_M_getword().

Referenced by std::bitset< _Nb >::operator[](), and std::bitset< _Nb >::test().

template<size_t _Nb>
bool std::bitset< _Nb >::any   const [inline]
 

Definition at line 660 of file std_bitset.h.

References std::_Base_bitset< __BITSET_WORDS(_Nb)>::_M_is_any().

template<size_t _Nb>
size_t std::bitset< _Nb >::count   const [inline]
 

Definition at line 642 of file std_bitset.h.

References std::_Base_bitset< __BITSET_WORDS(_Nb)>::_M_do_count().

template<size_t _Nb>
bitset<_Nb>& std::bitset< _Nb >::flip size_t    __pos [inline]
 

Definition at line 608 of file std_bitset.h.

References __STL_THROW, and std::bitset< _Nb >::_Unchecked_flip().

template<size_t _Nb>
bitset<_Nb>& std::bitset< _Nb >::flip   [inline]
 

Definition at line 602 of file std_bitset.h.

References std::_Base_bitset< __BITSET_WORDS(_Nb)>::_M_do_flip(), and std::bitset< _Nb >::_M_do_sanitize().

template<size_t _Nb>
bool std::bitset< _Nb >::none   const [inline]
 

Definition at line 661 of file std_bitset.h.

References std::_Base_bitset< __BITSET_WORDS(_Nb)>::_M_is_any().

template<size_t _Nb>
bitset<_Nb>& std::bitset< _Nb >::operator &= const bitset< _Nb > &    __rhs [inline]
 

Definition at line 514 of file std_bitset.h.

References std::_Base_bitset< __BITSET_WORDS(_Nb)>::_M_do_and().

template<size_t _Nb>
bool std::bitset< _Nb >::operator!= const bitset< _Nb > &    __rhs const [inline]
 

Definition at line 649 of file std_bitset.h.

References std::_Base_bitset< __BITSET_WORDS(_Nb)>::_M_is_equal().

template<size_t _Nb>
bitset<_Nb> std::bitset< _Nb >::operator<< size_t    __pos const [inline]
 

Definition at line 663 of file std_bitset.h.

template<size_t _Nb>
bitset<_Nb>& std::bitset< _Nb >::operator<<= size_t    __pos [inline]
 

Definition at line 529 of file std_bitset.h.

References std::_Base_bitset< __BITSET_WORDS(_Nb)>::_M_do_left_shift(), and std::bitset< _Nb >::_M_do_sanitize().

template<size_t _Nb>
bool std::bitset< _Nb >::operator== const bitset< _Nb > &    __rhs const [inline]
 

Definition at line 646 of file std_bitset.h.

References std::_Base_bitset< __BITSET_WORDS(_Nb)>::_M_is_equal().

template<size_t _Nb>
bitset<_Nb> std::bitset< _Nb >::operator>> size_t    __pos const [inline]
 

Definition at line 665 of file std_bitset.h.

template<size_t _Nb>
bitset<_Nb>& std::bitset< _Nb >::operator>>= size_t    __pos [inline]
 

Definition at line 535 of file std_bitset.h.

References std::_Base_bitset< __BITSET_WORDS(_Nb)>::_M_do_right_shift(), and std::bitset< _Nb >::_M_do_sanitize().

template<size_t _Nb>
bool std::bitset< _Nb >::operator[] size_t    __pos const [inline]
 

Definition at line 622 of file std_bitset.h.

References std::bitset< _Nb >::_Unchecked_test().

template<size_t _Nb>
reference std::bitset< _Nb >::operator[] size_t    __pos [inline]
 

Definition at line 621 of file std_bitset.h.

References std::bitset< _Nb >::reference.

template<size_t _Nb>
bitset<_Nb>& std::bitset< _Nb >::operator^= const bitset< _Nb > &    __rhs [inline]
 

Definition at line 524 of file std_bitset.h.

References std::_Base_bitset< __BITSET_WORDS(_Nb)>::_M_do_xor().

template<size_t _Nb>
bitset<_Nb>& std::bitset< _Nb >::operator|= const bitset< _Nb > &    __rhs [inline]
 

Definition at line 519 of file std_bitset.h.

References std::_Base_bitset< __BITSET_WORDS(_Nb)>::_M_do_or().

template<size_t _Nb>
bitset<_Nb> std::bitset< _Nb >::operator~   const [inline]
 

Definition at line 615 of file std_bitset.h.

template<size_t _Nb>
bitset<_Nb>& std::bitset< _Nb >::reset size_t    __pos [inline]
 

Definition at line 595 of file std_bitset.h.

References __STL_THROW, and std::bitset< _Nb >::_Unchecked_reset().

template<size_t _Nb>
bitset<_Nb>& std::bitset< _Nb >::reset   [inline]
 

Definition at line 590 of file std_bitset.h.

References std::_Base_bitset< __BITSET_WORDS(_Nb)>::_M_do_reset().

template<size_t _Nb>
bitset<_Nb>& std::bitset< _Nb >::set size_t    __pos,
bool    __val = true
[inline]
 

Definition at line 583 of file std_bitset.h.

References __STL_THROW, and std::bitset< _Nb >::_Unchecked_set().

template<size_t _Nb>
bitset<_Nb>& std::bitset< _Nb >::set   [inline]
 

Definition at line 577 of file std_bitset.h.

References std::bitset< _Nb >::_M_do_sanitize(), and std::_Base_bitset< __BITSET_WORDS(_Nb)>::_M_do_set().

template<size_t _Nb>
size_t std::bitset< _Nb >::size   const [inline]
 

Definition at line 644 of file std_bitset.h.

template<size_t _Nb>
bool std::bitset< _Nb >::test size_t    __pos const [inline]
 

Definition at line 653 of file std_bitset.h.

References __STL_THROW, and std::bitset< _Nb >::_Unchecked_test().

template<size_t _Nb>
template<class _CharT, class _Traits, class _Alloc>
basic_string<_CharT, _Traits, _Alloc> std::bitset< _Nb >::to_string   const [inline]
 

Definition at line 627 of file std_bitset.h.

References std::bitset< _Nb >::_M_copy_to_string().

template<size_t _Nb>
unsigned long std::bitset< _Nb >::to_ulong   const [inline]
 

Definition at line 624 of file std_bitset.h.

References std::_Base_bitset< __BITSET_WORDS(_Nb)>::_M_do_to_ulong().


Friends And Related Function Documentation

template<size_t _Nb>
friend class reference [friend]
 

Definition at line 433 of file std_bitset.h.

Referenced by std::bitset< _Nb >::operator[]().


The documentation for this class was generated from the following file:
Generated on Mon Apr 8 03:18:21 2002 for libstdc++-v3 Source by doxygen1.2.15