bitset Class Reference

#include <stdapis/stlport/stl/_bitset.h>

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

Nested Classes and Structures

Public Member Type Definitions
typedefunsigned long _WordT
Public Member Enumerations
enumanonymous { _Words }
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)
boolany()
size_t count()
bitset< _Nb > &flip()
bitset< _Nb > &flip(size_t)
boolnone()
booloperator!=(const bitset< _Nb > &)
bitset< _Nb > &operator&=(const bitset< _Nb > &)
bitset< _Nb >operator<<(size_t)
bitset< _Nb > &operator<<=(size_t)
booloperator==(const bitset< _Nb > &)
bitset< _Nb >operator>>(size_t)
bitset< _Nb > &operator>>=(size_t)
reference operator[](size_t)
booloperator[](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()
booltest(size_t)
string to_string()
unsigned longto_ulong()
Inherited Attributes
_Base_bitset<((_Nb+(CHAR_BIT *sizeof(unsigned long))-1)/__BITS_PER_WORD) >::_M_w
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)

Member Type Definition Documentation

Typedef _WordT

typedef unsigned long_WordT

Member Enumeration Documentation

Enum anonymous

EnumeratorValueDescription
_Words(( _Nb + (CHAR_BIT*sizeof(unsigned long)) - 1)/__BITS_PER_WORD)

Constructor & Destructor Documentation

bitset ( )

bitset()[inline]

bitset ( unsigned long )

bitset(unsigned long__val)[inline]

bitset ( const string &, size_t, size_t )

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

Member Function Documentation

_Find_first ( )

size_t _Find_first()const [inline]

_Find_next ( size_t )

size_t _Find_next(size_t__prev)const [inline]

_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]

_M_copy_to_string ( string & )

void_M_copy_to_string(string &__s)const [inline]

_Unchecked_flip ( size_t )

bitset< _Nb > &_Unchecked_flip(size_t__pos)[inline]

_Unchecked_reset ( size_t )

bitset< _Nb > &_Unchecked_reset(size_t__pos)[inline]

_Unchecked_set ( size_t )

bitset< _Nb > &_Unchecked_set(size_t__pos)[inline]

_Unchecked_set ( size_t, int )

bitset< _Nb > &_Unchecked_set(size_t__pos,
int__val
)[inline]

_Unchecked_test ( size_t )

bool_Unchecked_test(size_t__pos)const [inline]

any ( )

boolany()const [inline]

count ( )

size_t count()const [inline]

flip ( )

bitset< _Nb > &flip()[inline]

flip ( size_t )

bitset< _Nb > &flip(size_t__pos)[inline]

none ( )

boolnone()const [inline]

operator!= ( const bitset< _Nb > & )

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

operator&= ( const bitset< _Nb > & )

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

operator<< ( size_t )

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

operator<<= ( size_t )

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

operator== ( const bitset< _Nb > & )

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

operator>> ( size_t )

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

operator>>= ( size_t )

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

operator[] ( size_t )

reference operator[](size_t__pos)[inline]

operator[] ( size_t )

booloperator[](size_t__pos)const [inline]

operator^= ( const bitset< _Nb > & )

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

operator|= ( const bitset< _Nb > & )

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

operator~ ( )

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

reset ( )

bitset< _Nb > &reset()[inline]

reset ( size_t )

bitset< _Nb > &reset(size_t__pos)[inline]

set ( )

bitset< _Nb > &set()[inline]

set ( size_t )

bitset< _Nb > &set(size_t__pos)[inline]

set ( size_t, int )

bitset< _Nb > &set(size_t__pos,
int__val
)[inline]

size ( )

size_t size()const [inline]

test ( size_t )

booltest(size_t__pos)const [inline]

to_string ( )

string to_string()const [inline]

to_ulong ( )

unsigned longto_ulong()const [inline]