SNAP Library 2.1, User Reference
2013-09-25 10:47:25
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <bits.h>
Public Member Functions | |
TB32Set () | |
TB32Set (const TB32Set &B32Set) | |
TB32Set (const uint &_B4) | |
TB32Set (TSIn &SIn) | |
void | Save (TSOut &SOut) const |
TB32Set & | operator= (const TB32Set &BSet) |
bool | operator== (const TB32Set &BSet) const |
bool | operator< (const TB32Set &BSet) const |
bool | Empty () const |
TB32Set & | Clr () |
TB32Set & | Fill () |
bool | IsPrefix (const TB32Set &BSet, const int &MnBitN) const |
uint | GetUInt () const |
void | Incl (const int &BitN) |
void | Excl (const int &BitN) |
bool | In (const int &BitN) const |
void | SetBit (const int &BitN, const bool &Bool) |
bool | GetBit (const int &BitN) const |
void | SwitchBit (const int &BitN) |
int | GetBits () const |
int | Get1s () const |
int | Get0s () const |
TStr | GetStr () const |
void | Wr () |
void | PutInt (const int &MnBitN, const int &MxBitN, const int &Val) |
int | GetInt (const int &MnBitN, const int &MxBitN) const |
TB32Set & | operator~ () |
TB32Set & | operator&= (const TB32Set &BSet) |
TB32Set & | operator|= (const TB32Set &BSet) |
TB32Set & | operator^= (const TB32Set &BSet) |
TB32Set & | operator>>= (const int &ShiftBits) |
TB32Set & | operator<<= (const int &ShiftBits) |
Private Attributes | |
TB4Def::TB4 | B4 |
Static Private Attributes | |
static const int | Bits = 32 |
Friends | |
TB32Set | operator~ (const TB32Set &BSet) |
TB32Set | operator& (const TB32Set &LBSet, const TB32Set &RBSet) |
TB32Set | operator| (const TB32Set &LBSet, const TB32Set &RBSet) |
TB32Set | operator^ (const TB32Set &LBSet, const TB32Set &RBSet) |
TB32Set::TB32Set | ( | ) | [inline] |
TB32Set::TB32Set | ( | const TB32Set & | B32Set | ) | [inline] |
TB32Set::TB32Set | ( | const uint & | _B4 | ) | [inline] |
TB32Set::TB32Set | ( | TSIn & | SIn | ) | [inline] |
Definition at line 247 of file bits.h.
{SIn.LoadBf(&B4, sizeof(TB4Def::TB4));}
TB32Set& TB32Set::Clr | ( | ) | [inline] |
bool TB32Set::Empty | ( | ) | const [inline] |
void TB32Set::Excl | ( | const int & | BitN | ) | [inline] |
TB32Set& TB32Set::Fill | ( | ) | [inline] |
Definition at line 256 of file bits.h.
{B4=TB4Def::B4Def.MxB4; return *this;}
int TB32Set::Get0s | ( | ) | const [inline] |
int TB32Set::Get1s | ( | ) | const [inline] |
Definition at line 279 of file bits.h.
{return TB4Def::B4Def.GetB4Bits(B4);}
bool TB32Set::GetBit | ( | const int & | BitN | ) | const [inline] |
int TB32Set::GetBits | ( | ) | const [inline] |
int TB32Set::GetInt | ( | const int & | MnBitN, |
const int & | MxBitN | ||
) | const [inline] |
TStr TB32Set::GetStr | ( | ) | const |
uint TB32Set::GetUInt | ( | ) | const [inline] |
bool TB32Set::In | ( | const int & | BitN | ) | const [inline] |
void TB32Set::Incl | ( | const int & | BitN | ) | [inline] |
bool TB32Set::IsPrefix | ( | const TB32Set & | BSet, |
const int & | MnBitN | ||
) | const [inline] |
bool TB32Set::operator< | ( | const TB32Set & | BSet | ) | const [inline] |
TB32Set& TB32Set::operator<<= | ( | const int & | ShiftBits | ) | [inline] |
bool TB32Set::operator== | ( | const TB32Set & | BSet | ) | const [inline] |
TB32Set& TB32Set::operator>>= | ( | const int & | ShiftBits | ) | [inline] |
TB32Set& TB32Set::operator~ | ( | ) | [inline] |
void TB32Set::PutInt | ( | const int & | MnBitN, |
const int & | MxBitN, | ||
const int & | Val | ||
) | [inline] |
Definition at line 284 of file bits.h.
{ Assert((0<=MnBitN)&&(MnBitN<=MxBitN)&&(MxBitN<Bits)); B4 &= (~(TB4Def::B4Def.B4P2T[MxBitN-MnBitN+1]-1)) << MnBitN; B4 |= (Val & (TB4Def::B4Def.B4P2T[MxBitN-MnBitN+1]-1)) << MnBitN;}
void TB32Set::Save | ( | TSOut & | SOut | ) | const [inline] |
Definition at line 248 of file bits.h.
{SOut.SaveBf(&B4, sizeof(TB4Def::TB4));}
void TB32Set::SetBit | ( | const int & | BitN, |
const bool & | Bool | ||
) | [inline] |
void TB32Set::SwitchBit | ( | const int & | BitN | ) | [inline] |
void TB32Set::Wr | ( | ) |
TB4Def::TB4 TB32Set::B4 [private] |
const int TB32Set::Bits = 32 [static, private] |