__gnu_debug_def::bitset< _Nb > Class Template Reference

Inheritance diagram for __gnu_debug_def::bitset< _Nb >:

_GLIBCXX_STD::bitset< _Nb > __gnu_debug::_Safe_sequence_base _GLIBCXX_STD::_Base_bitset< _GLIBCXX_BITSET_WORDS(_Nb)> List of all members.

Public Member Functions

 bitset ()
 All bits set to zero.
 bitset (unsigned long __val)
 Initial bits bitwise-copied from a single word (others set to zero).
template<typename _CharT, typename _Traits, typename _Allocator>
 bitset (const std::basic_string< _CharT, _Traits, _Allocator > &__str, typename std::basic_string< _CharT, _Traits, _Allocator >::size_type __pos=0, typename std::basic_string< _CharT, _Traits, _Allocator >::size_type __n=(std::basic_string< _CharT, _Traits, _Allocator >::npos))
 bitset (const _Base &__x)
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)
 Operations on bitsets.
bitset< _Nb > & operator>>= (size_t __pos)
bitset< _Nb > & set ()
 Sets every bit to true.
bitset< _Nb > & set (size_t __pos, bool __val=true)
 Sets a given bit to a particular value.
bitset< _Nb > & reset ()
 Sets every bit to false.
bitset< _Nb > & reset (size_t __pos)
 Sets a given bit to false.
bitset< _Nb > operator~ () const
 See the no-argument flip().
bitset< _Nb > & flip ()
 Toggles every bit to its opposite value.
bitset< _Nb > & flip (size_t __pos)
 Toggles a given bit to its opposite value.
reference operator[] (size_t __pos)
 Array-indexing support.
bool operator[] (size_t __pos) const
template<typename _CharT, typename _Traits, typename _Allocator>
std::basic_string< _CharT,
_Traits, _Allocator > 
to_string () const
 Retuns a character interpretation of the bitset.
template<typename _CharT, typename _Traits>
std::basic_string< _CharT,
_Traits, std::allocator<
_CharT > > 
to_string () const
 Retuns a character interpretation of the bitset.
template<typename _CharT>
std::basic_string< _CharT,
std::char_traits< _CharT >,
std::allocator< _CharT > > 
to_string () const
 Retuns a character interpretation of the bitset.
std::basic_string< char, std::char_traits<
char >, std::allocator< char > > 
to_string () const
 Retuns a character interpretation of the bitset.
bool operator== (const bitset< _Nb > &__rhs) const
bool operator!= (const bitset< _Nb > &__rhs) const
bitset< _Nb > operator<< (size_t __pos) const
 Self-explanatory.
bitset< _Nb > operator>> (size_t __pos) const
_Base_M_base ()
const _Base_M_base () const

Private Types

typedef _GLIBCXX_STD::bitset<
_Nb > 
_Base
typedef __gnu_debug::_Safe_sequence_base _Safe_base

Classes

class  reference

Detailed Description

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

Definition at line 41 of file debug/bitset.


Member Typedef Documentation

template<size_t _Nb>
typedef _GLIBCXX_STD::bitset<_Nb> __gnu_debug_def::bitset< _Nb >::_Base [private]

Reimplemented from _GLIBCXX_STD::bitset< _Nb >.

Definition at line 45 of file debug/bitset.

template<size_t _Nb>
typedef __gnu_debug::_Safe_sequence_base __gnu_debug_def::bitset< _Nb >::_Safe_base [private]

Definition at line 46 of file debug/bitset.


Constructor & Destructor Documentation

template<size_t _Nb>
__gnu_debug_def::bitset< _Nb >::bitset (  )  [inline]

All bits set to zero.

Reimplemented from _GLIBCXX_STD::bitset< _Nb >.

Definition at line 119 of file debug/bitset.

Referenced by __gnu_debug_def::bitset< _Nb >::operator~().

template<size_t _Nb>
__gnu_debug_def::bitset< _Nb >::bitset ( unsigned long  __val  )  [inline]

Initial bits bitwise-copied from a single word (others set to zero).

Reimplemented from _GLIBCXX_STD::bitset< _Nb >.

Definition at line 121 of file debug/bitset.

template<size_t _Nb>
template<typename _CharT, typename _Traits, typename _Allocator>
__gnu_debug_def::bitset< _Nb >::bitset ( const std::basic_string< _CharT, _Traits, _Allocator > &  __str,
typename std::basic_string< _CharT, _Traits, _Allocator >::size_type  __pos = 0,
typename std::basic_string< _CharT, _Traits, _Allocator >::size_type  __n = (std::basic_string<_CharT,_Traits,_Allocator>::npos) 
) [inline, explicit]

Definition at line 125 of file debug/bitset.

template<size_t _Nb>
__gnu_debug_def::bitset< _Nb >::bitset ( const _Base __x  )  [inline]

Definition at line 132 of file debug/bitset.


Member Function Documentation

template<size_t _Nb>
const _Base& __gnu_debug_def::bitset< _Nb >::_M_base (  )  const [inline]

Definition at line 291 of file debug/bitset.

template<size_t _Nb>
_Base& __gnu_debug_def::bitset< _Nb >::_M_base (  )  [inline]

Definition at line 288 of file debug/bitset.

Referenced by __gnu_debug_def::bitset< _Nb >::operator &=(), __gnu_debug_def::bitset< _Nb >::operator!=(), __gnu_debug_def::bitset< _Nb >::operator<<(), __gnu_debug_def::bitset< _Nb >::operator<<=(), __gnu_debug_def::bitset< _Nb >::operator==(), __gnu_debug_def::operator>>(), __gnu_debug_def::bitset< _Nb >::operator>>(), __gnu_debug_def::bitset< _Nb >::operator>>=(), __gnu_debug_def::bitset< _Nb >::operator[](), __gnu_debug_def::bitset< _Nb >::operator^=(), __gnu_debug_def::bitset< _Nb >::operator|=(), __gnu_debug_def::bitset< _Nb >::operator~(), and __gnu_debug_def::bitset< _Nb >::to_string().

template<size_t _Nb>
bitset<_Nb>& __gnu_debug_def::bitset< _Nb >::flip ( size_t  __pos  )  [inline]

Toggles a given bit to its opposite value.

Parameters:
position The index of the bit.
Exceptions:
std::out_of_range If pos is bigger the size of the set.

Reimplemented from _GLIBCXX_STD::bitset< _Nb >.

Definition at line 210 of file debug/bitset.

References _GLIBCXX_STD::bitset< _Nb >::flip().

template<size_t _Nb>
bitset<_Nb>& __gnu_debug_def::bitset< _Nb >::flip (  )  [inline]

Toggles every bit to its opposite value.

Reimplemented from _GLIBCXX_STD::bitset< _Nb >.

Definition at line 203 of file debug/bitset.

References _GLIBCXX_STD::bitset< _Nb >::flip().

template<size_t _Nb>
bitset<_Nb>& __gnu_debug_def::bitset< _Nb >::operator &= ( const bitset< _Nb > &  __rhs  )  [inline]

Definition at line 136 of file debug/bitset.

References __gnu_debug_def::bitset< _Nb >::_M_base().

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

Definition at line 272 of file debug/bitset.

References __gnu_debug_def::bitset< _Nb >::_M_base().

template<size_t _Nb>
bitset<_Nb> __gnu_debug_def::bitset< _Nb >::operator<< ( size_t  __pos  )  const [inline]

Self-explanatory.

Reimplemented from _GLIBCXX_STD::bitset< _Nb >.

Definition at line 280 of file debug/bitset.

References __gnu_debug_def::bitset< _Nb >::_M_base().

template<size_t _Nb>
bitset<_Nb>& __gnu_debug_def::bitset< _Nb >::operator<<= ( size_t  __pos  )  [inline]

Operations on bitsets.

Parameters:
position The number of places to shift.
These should be self-explanatory.

Reimplemented from _GLIBCXX_STD::bitset< _Nb >.

Definition at line 157 of file debug/bitset.

References __gnu_debug_def::bitset< _Nb >::_M_base().

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

Definition at line 268 of file debug/bitset.

References __gnu_debug_def::bitset< _Nb >::_M_base().

template<size_t _Nb>
bitset<_Nb> __gnu_debug_def::bitset< _Nb >::operator>> ( size_t  __pos  )  const [inline]

Reimplemented from _GLIBCXX_STD::bitset< _Nb >.

Definition at line 284 of file debug/bitset.

References __gnu_debug_def::bitset< _Nb >::_M_base().

template<size_t _Nb>
bitset<_Nb>& __gnu_debug_def::bitset< _Nb >::operator>>= ( size_t  __pos  )  [inline]

Reimplemented from _GLIBCXX_STD::bitset< _Nb >.

Definition at line 164 of file debug/bitset.

References __gnu_debug_def::bitset< _Nb >::_M_base().

template<size_t _Nb>
bool __gnu_debug_def::bitset< _Nb >::operator[] ( size_t  __pos  )  const [inline]

Reimplemented from _GLIBCXX_STD::bitset< _Nb >.

Definition at line 229 of file debug/bitset.

References __glibcxx_check_subscript, and __gnu_debug_def::bitset< _Nb >::_M_base().

template<size_t _Nb>
reference __gnu_debug_def::bitset< _Nb >::operator[] ( size_t  __pos  )  [inline]

Array-indexing support.

Parameters:
position Index into the bitset.
Returns:
A bool for a 'const bitset'. For non-const bitsets, an instance of the reference proxy class.
Note:
These operators do no range checking and throw no exceptions, as required by DR 11 to the standard.

Reimplemented from _GLIBCXX_STD::bitset< _Nb >.

Definition at line 220 of file debug/bitset.

References __glibcxx_check_subscript, __gnu_debug_def::bitset< _Nb >::_M_base(), and _GLIBCXX_STD::bitset< _Nb >::reference.

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

Definition at line 150 of file debug/bitset.

References __gnu_debug_def::bitset< _Nb >::_M_base().

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

Definition at line 143 of file debug/bitset.

References __gnu_debug_def::bitset< _Nb >::_M_base().

template<size_t _Nb>
bitset<_Nb> __gnu_debug_def::bitset< _Nb >::operator~ (  )  const [inline]

See the no-argument flip().

Reimplemented from _GLIBCXX_STD::bitset< _Nb >.

Definition at line 200 of file debug/bitset.

References __gnu_debug_def::bitset< _Nb >::_M_base(), and __gnu_debug_def::bitset< _Nb >::bitset().

template<size_t _Nb>
bitset<_Nb>& __gnu_debug_def::bitset< _Nb >::reset ( size_t  __pos  )  [inline]

Sets a given bit to false.

Parameters:
position The index of the bit.
Exceptions:
std::out_of_range If pos is bigger the size of the set.
Same as writing set(pos,false).

Reimplemented from _GLIBCXX_STD::bitset< _Nb >.

Definition at line 194 of file debug/bitset.

References _GLIBCXX_STD::bitset< _Nb >::reset().

template<size_t _Nb>
bitset<_Nb>& __gnu_debug_def::bitset< _Nb >::reset (  )  [inline]

Sets every bit to false.

Reimplemented from _GLIBCXX_STD::bitset< _Nb >.

Definition at line 187 of file debug/bitset.

References _GLIBCXX_STD::bitset< _Nb >::reset().

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

Sets a given bit to a particular value.

Parameters:
position The index of the bit.
val Either true or false, defaults to true.
Exceptions:
std::out_of_range If pos is bigger the size of the set.

Reimplemented from _GLIBCXX_STD::bitset< _Nb >.

Definition at line 180 of file debug/bitset.

References __gnu_cxx::__val, and _GLIBCXX_STD::bitset< _Nb >::set().

template<size_t _Nb>
bitset<_Nb>& __gnu_debug_def::bitset< _Nb >::set (  )  [inline]

Sets every bit to true.

Reimplemented from _GLIBCXX_STD::bitset< _Nb >.

Definition at line 171 of file debug/bitset.

References _GLIBCXX_STD::bitset< _Nb >::set().

template<size_t _Nb>
std::basic_string<char, std::char_traits<char>, std::allocator<char> > __gnu_debug_def::bitset< _Nb >::to_string (  )  const [inline]

Retuns a character interpretation of the bitset.

Returns:
The string equivalent of the bits.
Note the ordering of the bits: decreasing character positions correspond to increasing bit positions (see the main class notes for an example).

Reimplemented from _GLIBCXX_STD::bitset< _Nb >.

Definition at line 259 of file debug/bitset.

template<size_t _Nb>
template<typename _CharT>
std::basic_string<_CharT, std::char_traits<_CharT>, std::allocator<_CharT> > __gnu_debug_def::bitset< _Nb >::to_string (  )  const [inline]

Retuns a character interpretation of the bitset.

Returns:
The string equivalent of the bits.
Note the ordering of the bits: decreasing character positions correspond to increasing bit positions (see the main class notes for an example).

Reimplemented from _GLIBCXX_STD::bitset< _Nb >.

Definition at line 252 of file debug/bitset.

template<size_t _Nb>
template<typename _CharT, typename _Traits>
std::basic_string<_CharT, _Traits, std::allocator<_CharT> > __gnu_debug_def::bitset< _Nb >::to_string (  )  const [inline]

Retuns a character interpretation of the bitset.

Returns:
The string equivalent of the bits.
Note the ordering of the bits: decreasing character positions correspond to increasing bit positions (see the main class notes for an example).

Reimplemented from _GLIBCXX_STD::bitset< _Nb >.

Definition at line 246 of file debug/bitset.

template<size_t _Nb>
template<typename _CharT, typename _Traits, typename _Allocator>
std::basic_string<_CharT, _Traits, _Allocator> __gnu_debug_def::bitset< _Nb >::to_string (  )  const [inline]

Retuns a character interpretation of the bitset.

Returns:
The string equivalent of the bits.
Note the ordering of the bits: decreasing character positions correspond to increasing bit positions (see the main class notes for an example).

Reimplemented from _GLIBCXX_STD::bitset< _Nb >.

Definition at line 239 of file debug/bitset.

References __gnu_debug_def::bitset< _Nb >::_M_base().


The documentation for this class was generated from the following file:
Generated on Tue Feb 2 16:58:16 2010 for GNU C++ STL by  doxygen 1.4.7