|
SNAP Library 2.1, Developer Reference
2013-09-25 10:47:25
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <blobbs.h>

Public Member Functions | |
| TBlobPt () | |
| TBlobPt (const TBlobPt &Pt) | |
| TBlobPt (const uchar &_Seg, const uint &_Addr, const TB8Set &_FSet1, const TB8Set &_FSet2, const TB8Set &_FSet3) | |
| TBlobPt (const uchar &_Seg, const uint &_Addr) | |
| TBlobPt (const uint &_Addr) | |
| TBlobPt (const int &_Addr) | |
| ~TBlobPt () | |
| TBlobPt (TSIn &SIn) | |
| void | Save (TSOut &SOut) const |
| TBlobPt & | operator= (const TBlobPt &Pt) |
| bool | operator== (const TBlobPt &Pt) const |
| bool | operator< (const TBlobPt &Pt) const |
| int | GetMemUsed () const |
| int | GetPrimHashCd () const |
| int | GetSecHashCd () const |
| bool | Empty () const |
| void | Clr () |
| void | PutSeg (const uchar &_Seg) |
| uchar | GetSeg () const |
| void | PutAddr (const uint &_Addr) |
| uint | GetAddr () const |
| void | PutFlag (const int &FlagN, const bool &Val) |
| bool | IsFlag (const int &FlagN) const |
| void | MergeFlags (const TBlobPt &Pt) |
| void | PutFSet (const int &FSetN, const TB8Set &FSet) |
| TB8Set | GetFSet (const int &FSetN) |
| void | Save (const PFRnd &FRnd) const |
| void | SaveAddr (const PFRnd &FRnd) const |
| TStr | GetAddrStr () const |
| TStr | GetStr () const |
Static Public Member Functions | |
| static TBlobPt | Load (const PFRnd &FRnd) |
| static TBlobPt | LoadAddr (const PFRnd &FRnd, const uchar &Seg=0) |
Public Attributes | |
| uchar | Seg |
| uint | Addr |
| TB8Set | FSet1 |
| TB8Set | FSet2 |
| TB8Set | FSet3 |
Static Public Attributes | |
| static const int | MnBlobBfL |
| static const int | Flags = 24 |
| TBlobPt::TBlobPt | ( | ) | [inline] |
| TBlobPt::TBlobPt | ( | const TBlobPt & | Pt | ) | [inline] |
| TBlobPt::TBlobPt | ( | const uchar & | _Seg, |
| const uint & | _Addr | ||
| ) | [inline] |
| TBlobPt::TBlobPt | ( | const uint & | _Addr | ) | [inline] |
| TBlobPt::TBlobPt | ( | const int & | _Addr | ) | [inline] |
| TBlobPt::~TBlobPt | ( | ) | [inline] |
| TBlobPt::TBlobPt | ( | TSIn & | SIn | ) | [inline] |
| void TBlobPt::Clr | ( | ) | [inline] |
Definition at line 50 of file blobbs.h.
References TUInt::Mx.
Referenced by TGBlobBs::FNextBlobPt(), and TFHash< TKey, TFDat, TVDat >::GetKeyInfo().

| bool TBlobPt::Empty | ( | ) | const [inline] |
Definition at line 49 of file blobbs.h.
References TUInt::Mx.
Referenced by TFHash< TKey, TFDat, TVDat >::AddDat(), TFHash< TKey, TFDat, TVDat >::AddKey(), TFHash< TKey, TFDat, TVDat >::DelKey(), TFHash< TKey, TFDat, TVDat >::GetKeyInfo(), GetStr(), TFHash< TKey, TFDat, TVDat >::IsKey(), and TMBlobBs::PutBlob().

| uint TBlobPt::GetAddr | ( | ) | const [inline] |
Definition at line 54 of file blobbs.h.
Referenced by TGBlobBs::DelBlob(), TGBlobBs::FNextBlobPt(), TGBlobBs::GetBlob(), and TGBlobBs::PutBlob().
{return Addr;}

| TStr TBlobPt::GetAddrStr | ( | ) | const [inline] |
Definition at line 76 of file blobbs.h.
References TInt::GetStr(), and TUInt::GetStr().
{
TChA AddrChA; AddrChA+=TInt::GetStr(Seg); AddrChA+=':';
AddrChA+=TUInt::GetStr(Addr); return AddrChA;}

| TB8Set TBlobPt::GetFSet | ( | const int & | FSetN | ) |
| int TBlobPt::GetMemUsed | ( | ) | const [inline] |
Definition at line 44 of file blobbs.h.
Referenced by TFHashKey< TKey, TFDat, TVDat >::GetMemUsed().
{return sizeof(TBlobPt);}

| int TBlobPt::GetPrimHashCd | ( | ) | const [inline] |
| int TBlobPt::GetSecHashCd | ( | ) | const [inline] |
| uchar TBlobPt::GetSeg | ( | ) | const [inline] |
Definition at line 52 of file blobbs.h.
Referenced by TMBlobBs::DelBlob(), TMBlobBs::FNextBlobPt(), TMBlobBs::GetBlob(), and TMBlobBs::PutBlob().
{return Seg;}

| TStr TBlobPt::GetStr | ( | ) | const |
Definition at line 43 of file blobbs.cpp.
References Addr, Empty(), Flags, IsFlag(), and Seg.
{
TChA ChA;
ChA+='[';
if (Empty()){
ChA+="Null";
} else {
ChA+=TUInt::GetStr(uint(Seg)); ChA+=':'; ChA+=TUInt::GetStr(Addr);
for (int FlagN=0; FlagN<Flags; FlagN++){
if (IsFlag(FlagN)){
ChA+='{'; ChA+=TInt::GetStr(FlagN); ChA+='}';}
}
}
ChA+=']';
return ChA;
}

| bool TBlobPt::IsFlag | ( | const int & | FlagN | ) | const |
Definition at line 15 of file blobbs.cpp.
References EAssert, Fail, Flags, FSet1, FSet2, FSet3, and TB8Set::GetBit().
Referenced by GetStr().
{
EAssert((0<=FlagN)&&(FlagN<Flags));
switch (FlagN/8){
case 0: return FSet1.GetBit(7-FlagN%8);
case 1: return FSet2.GetBit(7-FlagN%8);
case 2: return FSet3.GetBit(7-FlagN%8);
default: Fail; return false;
}
}


| static TBlobPt TBlobPt::Load | ( | const PFRnd & | FRnd | ) | [inline, static] |
Definition at line 62 of file blobbs.h.
References TFRnd::GetUCh(), and TFRnd::GetUInt().
{
uchar Seg=FRnd->GetUCh(); uint Addr=FRnd->GetUInt();
TB8Set B8Set1(FRnd->GetUCh()); TB8Set B8Set2(FRnd->GetUCh());
TB8Set B8Set3(FRnd->GetUCh());
return TBlobPt(Seg, Addr, B8Set1, B8Set2, B8Set3);}

| static TBlobPt TBlobPt::LoadAddr | ( | const PFRnd & | FRnd, |
| const uchar & | Seg = 0 |
||
| ) | [inline, static] |
Definition at line 71 of file blobbs.h.
References TFRnd::GetUInt().
Referenced by TGBlobBs::PutBlob().


| void TBlobPt::MergeFlags | ( | const TBlobPt & | Pt | ) | [inline] |
| bool TBlobPt::operator< | ( | const TBlobPt & | Pt | ) | const [inline] |
| bool TBlobPt::operator== | ( | const TBlobPt & | Pt | ) | const [inline] |
| void TBlobPt::PutAddr | ( | const uint & | _Addr | ) | [inline] |
| void TBlobPt::PutFlag | ( | const int & | FlagN, |
| const bool & | Val | ||
| ) |
Definition at line 5 of file blobbs.cpp.
References EAssert, Fail, Flags, FSet1, FSet2, FSet3, and TB8Set::SetBit().
{
EAssert((0<=FlagN)&&(FlagN<Flags));
switch (FlagN/8){
case 0: FSet1.SetBit(7-FlagN%8, Val); break;
case 1: FSet2.SetBit(7-FlagN%8, Val); break;
case 2: FSet3.SetBit(7-FlagN%8, Val); break;
default: Fail;
}
}

| void TBlobPt::PutFSet | ( | const int & | FSetN, |
| const TB8Set & | FSet | ||
| ) |
| void TBlobPt::PutSeg | ( | const uchar & | _Seg | ) | [inline] |
Definition at line 51 of file blobbs.h.
Referenced by TMBlobBs::FNextBlobPt(), and TMBlobBs::PutBlob().
{Seg=_Seg;}

| void TBlobPt::Save | ( | TSOut & | SOut | ) | const [inline] |
| void TBlobPt::Save | ( | const PFRnd & | FRnd | ) | const [inline] |
| void TBlobPt::SaveAddr | ( | const PFRnd & | FRnd | ) | const [inline] |
Definition at line 73 of file blobbs.h.
References TFRnd::PutUInt().

Definition at line 10 of file blobbs.h.
Referenced by GetStr(), operator<(), operator=(), and operator==().
const int TBlobPt::Flags = 24 [static] |
Definition at line 11 of file blobbs.h.
Referenced by GetFSet(), IsFlag(), MergeFlags(), operator=(), PutFlag(), and PutFSet().
Definition at line 11 of file blobbs.h.
Referenced by GetFSet(), IsFlag(), MergeFlags(), operator=(), PutFlag(), and PutFSet().
Definition at line 11 of file blobbs.h.
Referenced by GetFSet(), IsFlag(), MergeFlags(), operator=(), PutFlag(), and PutFSet().
const int TBlobPt::MnBlobBfL [static] |
Definition at line 9 of file blobbs.h.
Referenced by GetStr(), operator<(), operator=(), and operator==().