SNAP Library 2.2, Developer Reference
2014-03-11 19:15:55
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <bits.h>
Public Member Functions | |
TFSet () | |
TFSet (const TFSet &FSet) | |
TFSet (const int &FlagN1, const int &FlagN2=-1, const int &FlagN3=-1, const int &FlagN4=-1, const int &FlagN5=-1, const int &FlagN6=-1, const int &FlagN7=-1, const int &FlagN8=-1, const int &FlagN9=-1) | |
TFSet (const TFSet &FSet1, const TFSet &FSet2) | |
~TFSet () | |
TFSet (TSIn &SIn) | |
void | Save (TSOut &SOut) const |
TFSet & | operator= (const TFSet &FSet) |
bool | operator== (const TFSet &FSet) const |
TFSet & | operator| (const int &FlagN) |
TFSet & | operator| (const TFSet &FSet) |
void | Clr () |
bool | Empty () const |
void | Incl (const int &FlagN) |
void | Incl (const TFSet &FSet) |
bool | In (const int &FlagN) const |
Static Public Attributes | |
static const TFSet | EmptyFSet |
Private Attributes | |
TUIntV | B4V |
Static Private Attributes | |
static const int | B4s = 4 |
static const int | Bits = TFSet::B4s*TB4Def::B4Bits |
TFSet::TFSet | ( | ) | [inline] |
TFSet::TFSet | ( | const TFSet & | FSet | ) | [inline] |
TFSet::TFSet | ( | const int & | FlagN1, |
const int & | FlagN2 = -1 , |
||
const int & | FlagN3 = -1 , |
||
const int & | FlagN4 = -1 , |
||
const int & | FlagN5 = -1 , |
||
const int & | FlagN6 = -1 , |
||
const int & | FlagN7 = -1 , |
||
const int & | FlagN8 = -1 , |
||
const int & | FlagN9 = -1 |
||
) |
Definition at line 109 of file bits.cpp.
References Incl().
: B4V(4, 4){ if (FlagN1!=-1){Incl(FlagN1);} if (FlagN2!=-1){Incl(FlagN2);} if (FlagN3!=-1){Incl(FlagN3);} if (FlagN4!=-1){Incl(FlagN4);} if (FlagN5!=-1){Incl(FlagN5);} if (FlagN6!=-1){Incl(FlagN6);} if (FlagN7!=-1){Incl(FlagN7);} if (FlagN8!=-1){Incl(FlagN8);} if (FlagN9!=-1){Incl(FlagN9);} }
TFSet::TFSet | ( | const TFSet & | FSet1, |
const TFSet & | FSet2 | ||
) | [inline] |
TFSet::~TFSet | ( | ) | [inline] |
TFSet::TFSet | ( | TSIn & | SIn | ) | [inline] |
void TFSet::Clr | ( | ) | [inline] |
bool TFSet::Empty | ( | ) | const [inline] |
bool TFSet::In | ( | const int & | FlagN | ) | const [inline] |
Definition at line 156 of file bits.h.
References Assert, TB4Def::B4Def, B4V, and Bits.
Referenced by TILx::GetSym(), TGStatVec::HasDistr(), TGStatVec::HasVal(), TLxSymStr::IsSep(), TExp::LoadTxtAddExp(), TExp::LoadTxtMulExp(), TExp::LoadTxtRelExp(), TGStat::Plot(), TGStatVec::PlotAllVsX(), TGStat::TakeBasicStat(), TGStat::TakeBccStat(), TGStat::TakeConnComp(), TGStat::TakeDegDistr(), TGStat::TakeDiam(), TGStat::TakeSccStat(), TGStat::TakeSpectral(), TGStat::TakeStat(), TILx::TILx(), and TOLx::TOLx().
{ Assert((0<=FlagN)&&(FlagN<Bits)); return (B4V[FlagN/TB4Def::B4Def.B4Bits] & TB4Def::B4Def.B4P2T[FlagN%TB4Def::B4Def.B4Bits])!=0;}
void TFSet::Incl | ( | const int & | FlagN | ) | [inline] |
Definition at line 149 of file bits.h.
References Assert, TB4Def::B4Bits, TB4Def::B4Def, TB4Def::B4P2T, B4V, and Bits.
Referenced by operator|(), and TFSet().
{ Assert((0<=FlagN)&&(FlagN<Bits)); B4V[FlagN/TB4Def::B4Def.B4Bits]|= TB4Def::B4Def.B4P2T[FlagN%TB4Def::B4Def.B4Bits];}
void TFSet::Incl | ( | const TFSet & | FSet | ) | [inline] |
bool TFSet::operator== | ( | const TFSet & | FSet | ) | const [inline] |
TFSet& TFSet::operator| | ( | const int & | FlagN | ) | [inline] |
void TFSet::Save | ( | TSOut & | SOut | ) | const [inline] |
Definition at line 135 of file bits.h.
References B4V, and TVec< TVal, TSizeTy >::Save().
Referenced by TGStatVec::Save().
const int TFSet::B4s = 4 [static, private] |
TUIntV TFSet::B4V [private] |
Definition at line 123 of file bits.h.
Referenced by Clr(), Empty(), In(), Incl(), operator=(), operator==(), and Save().
const int TFSet::Bits = TFSet::B4s*TB4Def::B4Bits [static, private] |
const TFSet TFSet::EmptyFSet [static] |