|
SNAP Library, Developer Reference
2012-10-15 15:06:59
SNAP, a general purpose network analysis and graph mining library
|

Go to the source code of this file.
Classes | |
| class | TB1Def |
| class | TB2Def |
| class | TB4Def |
| class | TFSet |
| class | TB8Set |
| class | TB32Set |
Typedefs | |
| typedef TVec< TB8Set > | TB8SetV |
| typedef TVec< TB32Set > | TB32SetV |
Functions | |
| void | SetLastB4 () |
| TBSet () | |
| TBSet (const TBSet &BSet) | |
| PBSet | Clone () const |
| TBSet (const int &_Bits) | |
| static PBSet | New (const int &Bits) |
| ~TBSet () | |
| TBSet (TSIn &SIn) | |
| static PBSet | Load (TSIn &SIn) |
| void | Save (TSOut &SOut) const |
| TBSet & | operator= (const TBSet &BSet) |
| bool | operator== (const TBSet &BSet) const |
| void | Gen (const int &_Bits) |
| void | Clr () |
| void | Fill () |
| 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 () |
| int | Get0s () |
| uint64 | GetUInt64 () const |
| void | Wr () |
| TBSet & | operator~ () |
| TBSet & | operator&= (const TBSet &BSet) |
| TBSet & | operator|= (const TBSet &BSet) |
| TBSet & | operator|= (const int &BitN) |
| TBSet & | operator^= (const TBSet &BSet) |
| TBSet | operator~ (const TBSet &BSet) |
| TBSet | operator& (const TBSet &LBSet, const TBSet &RBSet) |
| TBSet | operator| (const TBSet &LBSet, const TBSet &RBSet) |
| TBSet | operator^ (const TBSet &LBSet, const TBSet &RBSet) |
| TBSet | operator& (const TBSet &LBSet, const int &BitN) |
| TBSet | operator| (const TBSet &LBSet, const int &BitN) |
| TBSet | operator^ (const TBSet &LBSet, const int &BitN) |
Variables | |
| ClassTPV(TBSet, PBSet, TBSetV) private TB4Def::TB4 | LastB4Mask |
| TB4Def::TB4 * | B4T |
| PBSet Clone | ( | ) | const |
| void Clr | ( | ) |
Definition at line 48 of file blobbs.h.
References Addr, TUInt::Mx, and Seg.
Referenced by TSparseTable< TVal, GroupSize >::Clr(), TSparseHash< TKey, TDat, GroupSize >::CopyFrom(), TSparseSet< TKey, GroupSize >::CopyFrom(), TTree< TVal >::DelNode(), Gen(), TTree< TVal >::GenRandomTree(), GenZeros(), TVec< TVal >::Merge(), TSparseHash< TKey, TDat, GroupSize >::MoveFrom(), TSparseSet< TKey, GroupSize >::MoveFrom(), Reserve(), and ~TStrPool64().

| void Excl | ( | const int & | BitN | ) |
Definition at line 346 of file bits.h.
References Assert, TB4Def::B4Bits, TB4Def::B4Def, TB4Def::B4P2T, and B4T.
Referenced by SetBit().
{
Assert((0<=BitN)&&(BitN<Bits));
B4T[BitN/TB4Def::B4Def.B4Bits]&=
~TB4Def::B4Def.B4P2T[BitN%TB4Def::B4Def.B4Bits];}

| void Fill | ( | ) |
| void Gen | ( | const int & | _Bits | ) |
Definition at line 113 of file dt.h.
References Clr(), and Resize().
Referenced by TCliqueOverlap::CalculateOverlapMtx(), TVec< TVal >::LoadXml(), and TBSet().


| int Get0s | ( | ) |
| bool GetBit | ( | const int & | BitN | ) | const |
Definition at line 356 of file bits.h.
References Assert, TB4Def::B4Def, and B4T.
Referenced by SwitchBit().
{
Assert((0<=BitN)&&(BitN<Bits));
return (B4T[BitN/TB4Def::B4Def.B4Bits] &
TB4Def::B4Def.B4P2T[BitN%TB4Def::B4Def.B4Bits])!=0;}

| bool In | ( | const int & | BitN | ) | const |
Definition at line 350 of file bits.h.
References Assert, TB4Def::B4Def, and B4T.
Referenced by TMAGFitBern::UpdateApxPhiMI().
{
Assert((0<=BitN)&&(BitN<Bits));
return (B4T[BitN/TB4Def::B4Def.B4Bits] &
TB4Def::B4Def.B4P2T[BitN%TB4Def::B4Def.B4Bits])!=0;}

| void Incl | ( | const int & | BitN | ) |
Definition at line 342 of file bits.h.
References Assert, TB4Def::B4Bits, TB4Def::B4Def, TB4Def::B4P2T, and B4T.
Referenced by operator|=(), and SetBit().
{
Assert((0<=BitN)&&(BitN<Bits));
B4T[BitN/TB4Def::B4Def.B4Bits]|=
TB4Def::B4Def.B4P2T[BitN%TB4Def::B4Def.B4Bits];}

Definition at line 329 of file bits.h.
References TBSet().
Referenced by GetFFreeBlobPtV(), TKeyDatFl< TKey, TDat, THashFunc >::LoadHash(), TKeyDatFl< TKey, TDat, THashFunc >::Save(), TKronMomentsFit::Test(), and TPt< TRec >::TPt().
{return new TBSet(SIn);}


| static PBSet New | ( | const int & | Bits | ) | [static] |
Definition at line 323 of file bits.h.
References TBSet().
Referenced by _IsTagRedir(), TStrHash< TDat, TStringPool, THashFunc >::AddKey(), TFfGGen::AddNodes(), TUndirFFire::AddNodes(), TCliqueOverlap::CalculateOverlapMtx(), TSnap::ConvertESubGraph(), TSnap::ConvertGraph(), TSnap::TSnapDetail::TGetSubGraph< PGraph, IsMultiGraph >::Do(), TSnap::TSnapDetail::TGetSubGraph< PGraph, false >::Do(), TSnap::TSnapDetail::TConvertSubGraph< POutGraph, PInGraph, IsMultiGraph >::Do(), TSnap::TSnapDetail::TConvertSubGraph< POutGraph, PInGraph, false >::Do(), EvalExp(), EvalExpOp(), TAGM::GenAGM(), TSnap::GenBaraHierar(), TSnap::GenCircle(), TSnap::GenConfModel(), TSnap::GenCopyModel(), TSnap::GenDegSeq(), TKronMtx::GenDetKronecker(), TKronMtx::GenFastKronecker(), TFfGGen::GenFFGraphs(), TSnap::GenFull(), TSnap::GenGeoPrefAttach(), TFfGGen::GenGraph(), TSnap::GenGrid(), TKronMtx::GenKronecker(), TSnap::GenPrefAttach(), TSnap::GenRewire(), TSnap::GenRMat(), TSnap::GenRndBipart(), TSnap::GenRndGnm(), TKronMtx::GenRndGraph(), TSnap::GenSmallWorld(), TSnap::GenStar(), TKronMtx::GenThreshGraph(), TSnap::GenTree(), TSnap::Get1CnCom(), TSnap::Get1CnComSzCnt(), GetAbsFromBase(), TSnap::GetBfsTree(), TExpBi::GetBiFuncVal(), TSnap::GetEDatSubGraph(), TSnap::GetESubGraph(), TD34GraphCounter::GetGraph(), TGraphEnumUtils::GetIsoGraphs(), GetMd5SigStr(), TSnap::GetMxBiCon(), TSnap::GetMxScc(), TSnap::GetMxWcc(), TGraphKey::GetNGraph(), THtmlLx::GetNoTag(), GetOutDescUrlStrKdV(), GetOutUrlV(), TSnap::GetSubGraph(), TBigNet< TNodeData, IsDir >::GetSubGraph(), THtmlLx::GetTokStrV(), GetTopDownDocNm(), GetUndefExpVal(), TSnap::GetUnDir(), GetUrl(), GetUrlFromShortcut(), GetValFromLx(), TSecTm::GetXmlTok(), GetZeroExpVal(), IsSite(), TUniChDb::LoadBin(), TSnap::LoadConnList(), TSnap::LoadConnListStr(), TSnap::LoadDyNet(), TSnap::LoadDyNetGraphV(), TSnap::LoadEdgeList(), TSnap::LoadEdgeListStr(), TLAMisc::LoadMatlabTFltVV(), TSnap::LoadPajek(), TStr::LoadTxt(), LoadTxtFact(), New(), NewV(), NewVV(), TDGHashGraphCounter::operator()(), ParseHttpRq(), PutTagTokStr(), TUniChDb::SaveBin(), TLAMisc::SaveMatlabTFltV(), TLAMisc::SaveMatlabTFltVV(), TLAMisc::SaveMatlabTFltVVCol(), TLAMisc::SaveMatlabTFltVVMjrSubMtrx(), TLAMisc::SaveMatlabTIntV(), TStr::SaveTxt(), TUniChDb::Test(), TSnap::TestAnf(), TExpBi::TExpBi(), TMd5Sig::TMd5Sig(), TPreproc::TPreproc(), and TStatTest::TTest().
{return PBSet(new TBSet(Bits));}


Referenced by THash< TKey, TDat, THashFunc >::Defrag(), and THashSet< TKey, THashFunc >::Defrag().

| bool operator== | ( | const TBSet & | BSet | ) | const |
| TBSet& operator|= | ( | const int & | BitN | ) |
Definition at line 330 of file bits.h.
Referenced by TFHashKey< TKey, TFDat, TVDat >::OnDelFromCache(), and Save().
{
SOut.Save(B4s); SOut.Save(Bits);
SOut.SaveBf(&LastB4Mask, sizeof(TB4Def::TB4));
SOut.SaveBf(B4T, B4s*sizeof(TB4Def::TB4));}

| void SetBit | ( | const int & | BitN, |
| const bool & | Bool | ||
| ) |
Definition at line 354 of file bits.h.
References Excl(), and Incl().
Referenced by TGraphAnf< PGraph >::InitAnfBits(), and SwitchBit().


| void SetLastB4 | ( | ) |
| void SwitchBit | ( | const int & | BitN | ) |
| TBSet | ( | ) |
Definition at line 318 of file bits.h.
Referenced by Clone(), Load(), New(), operator&(), operator^(), operator|(), and TXmlChDef().
: B4s(0), Bits(0), LastB4Mask(0), B4T(NULL){}

| TBSet::TBSet | ( | const TBSet & | BSet | ) |
| TBSet | ( | const int & | _Bits | ) |
Definition at line 325 of file bits.h.
References B4T, LastB4Mask, TSIn::Load(), TSIn::LoadBf(), and TSIn::LoadNewBf().
{
SIn.Load(B4s); SIn.Load(Bits);
SIn.LoadBf(&LastB4Mask, sizeof(TB4Def::TB4));
B4T=(TB4Def::TB4*)SIn.LoadNewBf(B4s*sizeof(TB4Def::TB4));}

| void Wr | ( | ) |
| ~TBSet | ( | ) |
Definition at line 324 of file bits.h.
References B4T.
Referenced by operator~().
{delete[] B4T;}

Definition at line 315 of file bits.h.
Referenced by Excl(), GetBit(), GetUInt64(), In(), Incl(), operator&=(), operator^=(), operator|=(), operator~(), Save(), TBSet(), and ~TBSet().
| ClassTPV (TBSet, PBSet, TBSetV) private TB4Def::TB4 LastB4Mask |
Definition at line 311 of file bits.h.
Referenced by Save(), SetLastB4(), and TBSet().