Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

std::bitset Class Template Reference

#include <std_bitset.h>

Inheritance diagram for std::bitset:

Inheritance graph
[legend]
Collaboration diagram for std::bitset:

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)
bitset<_Nb>& set (size_t __pos, int __val)
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


Member Typedef Documentation

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

Definition at line 392 of file std_bitset.h.

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

Reimplemented from std::_Base_bitset.

Definition at line 393 of file std_bitset.h.


Constructor & Destructor Documentation

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

Definition at line 459 of file std_bitset.h.

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

Definition at line 460 of file std_bitset.h.

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

Definition at line 464 of file std_bitset.h.

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

Definition at line 474 of file std_bitset.h.


Member Function Documentation

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

Definition at line 653 of file std_bitset.h.

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

Definition at line 657 of file std_bitset.h.

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 )
 

Referenced by bitset().

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
 

Referenced by to_string().

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

Definition at line 396 of file std_bitset.h.

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

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

Definition at line 536 of file std_bitset.h.

Referenced by flip().

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

Definition at line 531 of file std_bitset.h.

Referenced by reset().

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

Definition at line 522 of file std_bitset.h.

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

Definition at line 517 of file std_bitset.h.

Referenced by set().

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

Definition at line 541 of file std_bitset.h.

Referenced by operator[](), and test().

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

Definition at line 638 of file std_bitset.h.

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

Definition at line 620 of file std_bitset.h.

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

Definition at line 586 of file std_bitset.h.

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

Definition at line 580 of file std_bitset.h.

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

Definition at line 639 of file std_bitset.h.

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

Definition at line 485 of file std_bitset.h.

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

Definition at line 627 of file std_bitset.h.

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

Definition at line 641 of file std_bitset.h.

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

Definition at line 500 of file std_bitset.h.

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

Definition at line 624 of file std_bitset.h.

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

Definition at line 643 of file std_bitset.h.

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

Definition at line 506 of file std_bitset.h.

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

Definition at line 600 of file std_bitset.h.

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

Definition at line 599 of file std_bitset.h.

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

Definition at line 495 of file std_bitset.h.

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

Definition at line 490 of file std_bitset.h.

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

Definition at line 593 of file std_bitset.h.

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

Definition at line 573 of file std_bitset.h.

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

Definition at line 568 of file std_bitset.h.

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

Definition at line 561 of file std_bitset.h.

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

Definition at line 554 of file std_bitset.h.

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

Definition at line 548 of file std_bitset.h.

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

Definition at line 622 of file std_bitset.h.

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

Definition at line 631 of file std_bitset.h.

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 605 of file std_bitset.h.

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

Definition at line 602 of file std_bitset.h.


Friends And Related Function Documentation

template<size_t _Nb>
friend class reference [friend]
 

Definition at line 404 of file std_bitset.h.

Referenced by operator[]().


The documentation for this class was generated from the following file:
Generated at Tue May 1 16:30:09 2001 for libstdc++-v3 by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001