bitset Class Reference

class bitset : public _Base_bitset<((_Nb+(CHAR_BIT *sizeof(unsigned long))-1)/__BITS_PER_WORD) >

Nested Classes and Structures

Public Member Functions
bitset ()
bitset (unsigned long)
bitset (const string &, size_t , size_t )
size_t _Find_first ()
size_t _Find_next ( size_t )
void _M_copy_from_string (const string &, size_t , size_t )
void _M_copy_to_string ( string &)
bitset < _Nb > & _Unchecked_flip ( size_t )
bitset < _Nb > & _Unchecked_reset ( size_t )
bitset < _Nb > & _Unchecked_set ( size_t )
bitset < _Nb > & _Unchecked_set ( size_t , int)
bool _Unchecked_test ( size_t )
bool any ()
size_t count ()
bitset < _Nb > & flip ()
bitset < _Nb > & flip ( size_t )
bool none ()
bool operator!= (const bitset < _Nb > &)
bitset < _Nb > & operator&= (const bitset < _Nb > &)
bitset < _Nb > operator<< ( size_t )
bitset < _Nb > & operator<<= ( size_t )
bool operator== (const bitset < _Nb > &)
bitset < _Nb > operator>> ( size_t )
bitset < _Nb > & operator>>= ( size_t )
reference operator[] ( size_t )
bool operator[] ( size_t )
bitset < _Nb > & operator^= (const bitset < _Nb > &)
bitset < _Nb > & operator|= (const bitset < _Nb > &)
bitset < _Nb > operator~ ()
bitset < _Nb > & reset ()
bitset < _Nb > & reset ( size_t )
bitset < _Nb > & set ()
bitset < _Nb > & set ( size_t )
bitset < _Nb > & set ( size_t , int)
size_t size ()
bool test ( size_t )
string to_string ()
unsigned long to_ulong ()
Private Member Functions
void _M_do_sanitize ()
Inherited Functions
_Base_bitset<((_Nb+(CHAR_BIT *sizeof(unsigned long))-1)/__BITS_PER_WORD) >::_Base_bitset(unsigned long)
_Base_bitset<((_Nb+(CHAR_BIT *sizeof(unsigned long))-1)/__BITS_PER_WORD) >::_Base_bitset(void)
_Base_bitset<((_Nb+(CHAR_BIT *sizeof(unsigned long))-1)/__BITS_PER_WORD) >::_M_do_and(const _Base_bitset< _Nw > &)
_Base_bitset<((_Nb+(CHAR_BIT *sizeof(unsigned long))-1)/__BITS_PER_WORD) >::_M_do_count()const
_Base_bitset<((_Nb+(CHAR_BIT *sizeof(unsigned long))-1)/__BITS_PER_WORD) >::_M_do_find_first(size_t)const
_Base_bitset<((_Nb+(CHAR_BIT *sizeof(unsigned long))-1)/__BITS_PER_WORD) >::_M_do_find_next(size_t,size_t)const
_Base_bitset<((_Nb+(CHAR_BIT *sizeof(unsigned long))-1)/__BITS_PER_WORD) >::_M_do_flip()
_Base_bitset<((_Nb+(CHAR_BIT *sizeof(unsigned long))-1)/__BITS_PER_WORD) >::_M_do_left_shift(size_t)
_Base_bitset<((_Nb+(CHAR_BIT *sizeof(unsigned long))-1)/__BITS_PER_WORD) >::_M_do_or(const _Base_bitset< _Nw > &)
_Base_bitset<((_Nb+(CHAR_BIT *sizeof(unsigned long))-1)/__BITS_PER_WORD) >::_M_do_reset()
_Base_bitset<((_Nb+(CHAR_BIT *sizeof(unsigned long))-1)/__BITS_PER_WORD) >::_M_do_right_shift(size_t)
_Base_bitset<((_Nb+(CHAR_BIT *sizeof(unsigned long))-1)/__BITS_PER_WORD) >::_M_do_set()
_Base_bitset<((_Nb+(CHAR_BIT *sizeof(unsigned long))-1)/__BITS_PER_WORD) >::_M_do_to_ulong()const
_Base_bitset<((_Nb+(CHAR_BIT *sizeof(unsigned long))-1)/__BITS_PER_WORD) >::_M_do_xor(const _Base_bitset< _Nw > &)
_Base_bitset<((_Nb+(CHAR_BIT *sizeof(unsigned long))-1)/__BITS_PER_WORD) >::_M_getword(size_t)
_Base_bitset<((_Nb+(CHAR_BIT *sizeof(unsigned long))-1)/__BITS_PER_WORD) >::_M_getword(size_t)const
_Base_bitset<((_Nb+(CHAR_BIT *sizeof(unsigned long))-1)/__BITS_PER_WORD) >::_M_hiword()
_Base_bitset<((_Nb+(CHAR_BIT *sizeof(unsigned long))-1)/__BITS_PER_WORD) >::_M_hiword()const
_Base_bitset<((_Nb+(CHAR_BIT *sizeof(unsigned long))-1)/__BITS_PER_WORD) >::_M_is_any()const
_Base_bitset<((_Nb+(CHAR_BIT *sizeof(unsigned long))-1)/__BITS_PER_WORD) >::_M_is_equal(const _Base_bitset< _Nw > &)const
_Base_bitset<((_Nb+(CHAR_BIT *sizeof(unsigned long))-1)/__BITS_PER_WORD) >::_S_maskbit(size_t)
_Base_bitset<((_Nb+(CHAR_BIT *sizeof(unsigned long))-1)/__BITS_PER_WORD) >::_S_whichbit(size_t)
_Base_bitset<((_Nb+(CHAR_BIT *sizeof(unsigned long))-1)/__BITS_PER_WORD) >::_S_whichbyte(size_t)
_Base_bitset<((_Nb+(CHAR_BIT *sizeof(unsigned long))-1)/__BITS_PER_WORD) >::_S_whichword(size_t)
Public Member Type Definitions
typedef unsigned long _WordT
Private Member Type Definitions
typedef _Base_bitset < _Words > _Base
Inherited Attributes
_Base_bitset<((_Nb+(CHAR_BIT *sizeof(unsigned long))-1)/__BITS_PER_WORD) >::_M_w

Constructor & Destructor Documentation

bitset()

bitset ( ) [inline]

bitset(unsigned long)

bitset ( unsigned long __val ) [inline]

Parameters

unsigned long __val

bitset(const string &, size_t, size_t)

bitset ( const string & __s,
size_t __pos = 0,
size_t __n = ( size_t )-1
) [inline, explicit]

Parameters

const string & __s
size_t __pos = 0
size_t __n = ( size_t )-1

Member Functions Documentation

_Find_first()

size_t _Find_first ( ) const [inline]

_Find_next(size_t)

size_t _Find_next ( size_t __prev ) const [inline]

Parameters

size_t __prev

_M_copy_from_string(const string &, size_t, size_t)

void _M_copy_from_string ( const string & __s,
size_t __pos,
size_t __n
) [inline]

Parameters

const string & __s
size_t __pos
size_t __n

_M_copy_to_string(string &)

void _M_copy_to_string ( string & __s ) const [inline]

Parameters

string & __s

_M_do_sanitize()

void _M_do_sanitize ( ) [private, inline]

_Unchecked_flip(size_t)

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

Parameters

size_t __pos

_Unchecked_reset(size_t)

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

Parameters

size_t __pos

_Unchecked_set(size_t)

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

Parameters

size_t __pos

_Unchecked_set(size_t, int)

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

Parameters

size_t __pos
int __val

_Unchecked_test(size_t)

bool _Unchecked_test ( size_t __pos ) const [inline]

Parameters

size_t __pos

any()

bool any ( ) const [inline]

count()

size_t count ( ) const [inline]

flip()

bitset < _Nb > & flip ( ) [inline]

flip(size_t)

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

Parameters

size_t __pos

none()

bool none ( ) const [inline]

operator!=(const bitset< _Nb > &)

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

Parameters

const bitset < _Nb > & __rhs

operator&=(const bitset< _Nb > &)

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

Parameters

const bitset < _Nb > & __rhs

operator<<(size_t)

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

Parameters

size_t __pos

operator<<=(size_t)

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

Parameters

size_t __pos

operator==(const bitset< _Nb > &)

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

Parameters

const bitset < _Nb > & __rhs

operator>>(size_t)

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

Parameters

size_t __pos

operator>>=(size_t)

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

Parameters

size_t __pos

operator[](size_t)

reference operator[] ( size_t __pos ) [inline]

Parameters

size_t __pos

operator[](size_t)

bool operator[] ( size_t __pos ) const [inline]

Parameters

size_t __pos

operator^=(const bitset< _Nb > &)

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

Parameters

const bitset < _Nb > & __rhs

operator|=(const bitset< _Nb > &)

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

Parameters

const bitset < _Nb > & __rhs

operator~()

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

reset()

bitset < _Nb > & reset ( ) [inline]

reset(size_t)

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

Parameters

size_t __pos

set()

bitset < _Nb > & set ( ) [inline]

set(size_t)

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

Parameters

size_t __pos

set(size_t, int)

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

Parameters

size_t __pos
int __val

size()

size_t size ( ) const [inline]

test(size_t)

bool test ( size_t __pos ) const [inline]

Parameters

size_t __pos

to_string()

string to_string ( ) const [inline]

to_ulong()

unsigned long to_ulong ( ) const [inline]

Member Type Definitions Documentation

Typedef _Base

typedef _Base_bitset < _Words > _Base [private]

Typedef _WordT

typedef unsigned long _WordT