bitset< _Nb > Class Template Reference

#include <_bitset.h>

List of all members.

Public Types

enum  { _Words = __BITSET_WORDS(_Nb) }
typedef unsigned long _WordT

Public Member Functions

 bitset ()
 bitset (unsigned long __val)
 bitset (const string &__s, size_t __pos=0, size_t __n=(size_t)-1)
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
string to_string () 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
void _M_copy_from_string (const string &__s, size_t __pos, size_t __n)
void _M_copy_to_string (string &__s) const
void _M_copy_to_string (wstring &__s) const

Friends

struct reference

Classes

struct  reference


Detailed Description

template<size_t _Nb>
class bitset< _Nb >

Definition at line 347 of file _bitset.h.


Member Typedef Documentation

template<size_t _Nb>
typedef unsigned long bitset< _Nb >::_WordT

Definition at line 358 of file _bitset.h.


Member Enumeration Documentation

template<size_t _Nb>
anonymous enum

Enumerator:
_Words 

Definition at line 349 of file _bitset.h.


Constructor & Destructor Documentation

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

Definition at line 415 of file _bitset.h.

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

Definition at line 417 of file _bitset.h.

template<size_t _Nb>
bitset< _Nb >::bitset ( const string __s,
size_t  __pos = 0,
size_t  __n = (size_t)-1 
) [inline, explicit]


Member Function Documentation

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

Definition at line 450 of file _bitset.h.

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

Definition at line 455 of file _bitset.h.

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

Definition at line 460 of file _bitset.h.

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

Definition at line 465 of file _bitset.h.

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

Definition at line 471 of file _bitset.h.

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

Definition at line 482 of file _bitset.h.

References _Base_bitset< _Nw >::_S_maskbit(), and _STLP_PRIV.

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

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

Definition at line 487 of file _bitset.h.

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

Definition at line 496 of file _bitset.h.

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

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

Definition at line 501 of file _bitset.h.

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

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

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

Definition at line 512 of file _bitset.h.

Referenced by bitset< _Nb >::_M_copy_from_string().

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

Definition at line 518 of file _bitset.h.

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

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

Definition at line 524 of file _bitset.h.

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

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

Definition at line 530 of file _bitset.h.

Referenced by bitset< _Nb >::_M_copy_from_string().

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

Definition at line 535 of file _bitset.h.

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

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

Definition at line 542 of file _bitset.h.

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

Definition at line 548 of file _bitset.h.

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

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

Definition at line 555 of file _bitset.h.

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

Definition at line 561 of file _bitset.h.

References bitset< _Nb >::reference.

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

Definition at line 562 of file _bitset.h.

References bitset< _Nb >::_Unchecked_test().

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

Definition at line 564 of file _bitset.h.

template<size_t _Nb>
string bitset< _Nb >::to_string (  )  const [inline]

Definition at line 574 of file _bitset.h.

References bitset< _Nb >::_M_copy_to_string().

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

Definition at line 581 of file _bitset.h.

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

Definition at line 583 of file _bitset.h.

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

Definition at line 585 of file _bitset.h.

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

Definition at line 588 of file _bitset.h.

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

Definition at line 592 of file _bitset.h.

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

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

Definition at line 599 of file _bitset.h.

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

Definition at line 600 of file _bitset.h.

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

Definition at line 602 of file _bitset.h.

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

Definition at line 606 of file _bitset.h.

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

Definition at line 619 of file _bitset.h.

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

Definition at line 623 of file _bitset.h.

template<size_t _Nb>
void bitset< _Nb >::_M_copy_from_string ( const string __s,
size_t  __pos,
size_t  __n 
) [inline]

template<size_t _Nb>
void bitset< _Nb >::_M_copy_to_string ( string __s  )  const [inline]

template<size_t _Nb>
void bitset< _Nb >::_M_copy_to_string ( wstring &  __s  )  const [inline]

Definition at line 668 of file _bitset.h.

References bitset< _Nb >::_Unchecked_test().


Friends And Related Function Documentation

template<size_t _Nb>
friend struct reference [friend]

Definition at line 359 of file _bitset.h.

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


The documentation for this class was generated from the following file:
  • /home/ntakagi/work/STLport-5.1.5/stlport/stl/_bitset.h



Generated on Mon Mar 10 15:32:58 2008 by  doxygen 1.5.1