SNAP Library, Developer Reference  2012-10-15 15:06:59
SNAP, a general purpose network analysis and graph mining library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
blobbs.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TGBlobBs
class  TMBlobBs

Enumerations

enum  TBlobBsState { bbsUndef, bbsOpened, bbsClosed }
enum  TBlobTag { btUndef, btBegin, btEnd }
enum  TBlobState { bsUndef, bsActive, bsFree }

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
TBlobPtoperator= (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)
static TBlobPt Load (const PFRnd &FRnd)
void Save (const PFRnd &FRnd) const
static TBlobPt LoadAddr (const PFRnd &FRnd, const uchar &Seg=0)
void SaveAddr (const PFRnd &FRnd) const
TStr GetAddrStr () const
TStr GetStr () const
 UndefCopyAssign (TBlobBs)
 TBlobBs ()
virtual ~TBlobBs ()
 TBlobBs (TSIn &)
static PBlobBs Load (TSIn &)
virtual TStr GetVersionStr () const =0
void PutVersionStr (const PFRnd &FBlobBs)
void AssertVersionStr (const PFRnd &FBlobBs)
TStr GetBlobBsStateStr (const TBlobBsState &BlobBsState)
int GetStateStrLen ()
void PutBlobBsStateStr (const PFRnd &FBlobBs, const TBlobBsState &State)
void AssertBlobBsStateStr (const PFRnd &FBlobBs, const TBlobBsState &State)
void PutMxSegLen (const PFRnd &FBlobBs, const int &MxSegLen)
int GetMxSegLen (const PFRnd &FBlobBs)
void GenBlockLenV (TIntV &BlockLenV)
void PutBlockLenV (const PFRnd &FBlobBs, const TIntV &BlockLenV)
void GetBlockLenV (const PFRnd &FBlobBs, TIntV &BlockLenV)
void GenFFreeBlobPtV (const TIntV &BlockLenV, TBlobPtV &FFreeBlobPtV)
void PutFFreeBlobPtV (const PFRnd &FBlobBs, const TBlobPtV &FFreeBlobPtV)
void GetFFreeBlobPtV (const PFRnd &FBlobBs, TBlobPtV &FFreeBlobPtV)
void GetAllocInfo (const int &BfL, const TIntV &BlockLenV, int &MxBfL, int &FFreeBlobPtN)
uint GetBeginBlobTag ()
uint GetEndBlobTag ()
void PutBlobTag (const PFRnd &FBlobBs, const TBlobTag &BlobTag)
void AssertBlobTag (const PFRnd &FBlobBs, const TBlobTag &BlobTag)
void PutBlobState (const PFRnd &FBlobBs, const TBlobState &State)
TBlobState GetBlobState (const PFRnd &FBlobBs)
void AssertBlobState (const PFRnd &FBlobBs, const TBlobState &State)
void AssertBfCsEqFlCs (const TCs &BfCs, const TCs &FCs)
virtual TBlobPt PutBlob (const PSIn &SIn)=0
TBlobPt PutBlob (const TStr &Str)
virtual TBlobPt PutBlob (const TBlobPt &BlobPt, const PSIn &SIn)=0
virtual PSIn GetBlob (const TBlobPt &BlobPt)=0
virtual void DelBlob (const TBlobPt &BlobPt)=0
virtual TBlobPt GetFirstBlobPt ()=0
virtual TBlobPt FFirstBlobPt ()=0
virtual bool FNextBlobPt (TBlobPt &TrvBlobPt, TBlobPt &BlobPt, PSIn &BlobSIn)=0
bool FNextBlobPt (TBlobPt &TrvBlobPt, PSIn &BlobSIn)

Variables

static ClassTVQ(TBlobPt,
TBlobPtV, TBlobPtQ) public
const int 
Flags
uchar Seg
uint Addr
TB8Set FSet1
TB8Set FSet2
TB8Set FSet3
static ClassTPV(TBlobBs,
PBlobBs, TBlobBsV) public
const int 
MxBlobFLen = 1000000000
static const TStr MxSegLenVNm = "MxSegLen"
static const TStr BlockLenVNm = "BlockLenV"
static const TStr FFreeBlobPtVNm = "FFreeBlobPtV"

Enumeration Type Documentation

Enumerator:
bbsUndef 
bbsOpened 
bbsClosed 

Definition at line 83 of file blobbs.h.

enum TBlobState
Enumerator:
bsUndef 
bsActive 
bsFree 

Definition at line 85 of file blobbs.h.

enum TBlobTag
Enumerator:
btUndef 
btBegin 
btEnd 

Definition at line 84 of file blobbs.h.


Function Documentation

void TBlobBs::AssertBfCsEqFlCs ( const TCs BfCs,
const TCs FCs 
)

Definition at line 205 of file blobbs.cpp.

References TCs::Get().

Referenced by TGBlobBs::FNextBlobPt(), and TGBlobBs::GetBlob().

                                                             {
  if (BfCs!=FCs){
    printf("[%d:%d]\n", BfCs.Get(), FCs.Get());}
  //EAssert(BfCs==FCs);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void TBlobBs::AssertBlobBsStateStr ( const PFRnd &  FBlobBs,
const TBlobBsState State 
)

Definition at line 90 of file blobbs.cpp.

References GetBlobBsStateStr(), GetStateStrLen(), TStr::GetStr(), TInt::GetStr(), IsOk(), and ThrowFull().

Referenced by TGBlobBs::TGBlobBs().

                                                 {
  TStr CorrStateStr=GetBlobBsStateStr(State);
  bool IsOk;
  TStr TestStateStr=FBlobBs->GetStr(GetStateStrLen(), IsOk);
  if (!(IsOk && (CorrStateStr==TestStateStr))) {
        TExcept::ThrowFull("Error in AssertBlobBsStateStr!", TStr(__FILE__)+" line "+TInt::GetStr(__LINE__));
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

void TBlobBs::AssertBlobState ( const PFRnd &  FBlobBs,
const TBlobState State 
)

Definition at line 201 of file blobbs.cpp.

References EAssert.

Referenced by TGBlobBs::DelBlob(), TGBlobBs::GetBlob(), and TGBlobBs::PutBlob().

                                                                          {
  EAssert(TBlobState(FBlobBs->GetCh())==State);
}

Here is the caller graph for this function:

void TBlobBs::AssertBlobTag ( const PFRnd &  FBlobBs,
const TBlobTag BlobTag 
)

Definition at line 185 of file blobbs.cpp.

References btBegin, btEnd, EAssert, GetBeginBlobTag(), GetEndBlobTag(), and Throw().

Referenced by TGBlobBs::DelBlob(), TGBlobBs::FNextBlobPt(), TGBlobBs::GetBlob(), and TGBlobBs::PutBlob().

                                                                        {
  switch (BlobTag){
    case btBegin: EAssert(FBlobBs->GetUInt()==GetBeginBlobTag()); break;
    case btEnd: EAssert(FBlobBs->GetUInt()==GetEndBlobTag()); break;
        default: TExcept::Throw("Error asserting BlobTag");
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

void TBlobBs::AssertVersionStr ( const PFRnd &  FBlobBs)

Definition at line 68 of file blobbs.cpp.

References EAssert, TStr::GetStr(), GetVersionStr(), IsOk(), and TStr::Len().

Referenced by TGBlobBs::TGBlobBs().

                                                  {
  TStr CorrVersionStr=GetVersionStr();
  bool IsOk=false;
  TStr TestVersionStr=FBlobBs->GetStr(CorrVersionStr.Len(), IsOk);
  EAssert(IsOk && (CorrVersionStr==TestVersionStr));
}

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void DelBlob ( const TBlobPt BlobPt) [pure virtual]
bool Empty ( ) const

Definition at line 47 of file blobbs.h.

References Addr, and TUInt::Mx.

Referenced by THash< TKey, TDat, THashFunc >::GetRndKeyId(), TSparseTableI< TVal, GroupSize >::operator++(), and TGBlobBs::PutBlob().

{return Addr==TUInt::Mx;}

Here is the caller graph for this function:

virtual TBlobPt FFirstBlobPt ( ) [pure virtual]
virtual bool FNextBlobPt ( TBlobPt TrvBlobPt,
TBlobPt BlobPt,
PSIn BlobSIn 
) [pure virtual]

Referenced by FNextBlobPt().

Here is the caller graph for this function:

bool FNextBlobPt ( TBlobPt TrvBlobPt,
PSIn BlobSIn 
)

Definition at line 146 of file blobbs.h.

References FNextBlobPt(), and TBlobPt().

                                                     {
    TBlobPt BlobPt; return FNextBlobPt(TrvBlobPt, BlobPt, BlobSIn);}

Here is the call graph for this function:

void TBlobBs::GenBlockLenV ( TIntV BlockLenV)

Definition at line 114 of file blobbs.cpp.

References TVec< TVal >::Add(), TVec< TVal >::Clr(), EAssert, TB4Def::GetP2(), TVec< TVal >::Last(), Len(), TB4Def::MxP2Exp, and TVec< TVal >::Sort().

Referenced by TGBlobBs::TGBlobBs().

                                          {
  BlockLenV.Clr();
  for (int P2Exp=0; P2Exp<TB4Def::MxP2Exp; P2Exp++){
    BlockLenV.Add(TInt(TB4Def::GetP2(P2Exp)));}
  EAssert(int(BlockLenV.Last())<2000000000);

  {for (int Len=10; Len<100; Len+=10){BlockLenV.Add(Len);}}
  {for (int Len=100; Len<10000; Len+=100){BlockLenV.Add(Len);}}
  {for (int Len=10000; Len<100000; Len+=1000){BlockLenV.Add(Len);}}
  {for (int Len=100000; Len<1000000; Len+=25000){BlockLenV.Add(Len);}}
  {for (int Len=1000000; Len<10000000; Len+=1000000){BlockLenV.Add(Len);}}
  {for (int Len=10000000; Len<100000000; Len+=10000000){BlockLenV.Add(Len);}}

  BlockLenV.Sort();
}

Here is the call graph for this function:

Here is the caller graph for this function:

void TBlobBs::GenFFreeBlobPtV ( const TIntV BlockLenV,
TBlobPtV &  FFreeBlobPtV 
)

Definition at line 148 of file blobbs.cpp.

References TVec< TVal >::Len().

Referenced by TGBlobBs::TGBlobBs().

                                                                           {
  FFreeBlobPtV.Gen(BlockLenV.Len()+1);
}

Here is the call graph for this function:

Here is the caller graph for this function:

uint GetAddr ( ) const

Definition at line 52 of file blobbs.h.

References Addr.

{return Addr;}
TStr GetAddrStr ( ) const

Definition at line 74 of file blobbs.h.

References Addr, TInt::GetStr(), TUInt::GetStr(), and Seg.

                          {
    TChA AddrChA; AddrChA+=TInt::GetStr(Seg); AddrChA+=':';
    AddrChA+=TUInt::GetStr(Addr); return AddrChA;}

Here is the call graph for this function:

void TBlobBs::GetAllocInfo ( const int &  BfL,
const TIntV BlockLenV,
int &  MxBfL,
int &  FFreeBlobPtN 
)

Definition at line 168 of file blobbs.cpp.

References EAssert, and TVec< TVal >::Len().

Referenced by TGBlobBs::DelBlob(), and TGBlobBs::PutBlob().

                                                                       {
  int BlockLenN=0;
  while ((BlockLenN<BlockLenV.Len())&&(BfL>BlockLenV[BlockLenN])){
    BlockLenN++;}
  EAssert(BlockLenN<BlockLenV.Len());
  MxBfL=BlockLenV[BlockLenN]; FFreeBlobPtN=BlockLenN;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 125 of file blobbs.h.

Referenced by AssertBlobTag(), and PutBlobTag().

{return 0xABCDEFFF;}

Here is the caller graph for this function:

virtual PSIn GetBlob ( const TBlobPt BlobPt) [pure virtual]
TStr TBlobBs::GetBlobBsStateStr ( const TBlobBsState BlobBsState)

Definition at line 75 of file blobbs.cpp.

References bbsClosed, bbsOpened, EAssert, Fail, GetStateStrLen(), and TStr::Len().

Referenced by AssertBlobBsStateStr(), and PutBlobBsStateStr().

                                                              {
  TStr StateStr;
  switch (BlobBsState){
    case bbsOpened: StateStr="Opened"; break;
    case bbsClosed: StateStr="Closed"; break;
    default: Fail; return TStr();
  }
  EAssert(StateStr.Len()==GetStateStrLen());
  return StateStr;
}

Here is the call graph for this function:

Here is the caller graph for this function:

TBlobState TBlobBs::GetBlobState ( const PFRnd &  FBlobBs)

Definition at line 197 of file blobbs.cpp.

Referenced by TGBlobBs::FNextBlobPt().

                                                    {
  return TBlobState(int(FBlobBs->GetCh()));
}

Here is the caller graph for this function:

void TBlobBs::GetBlockLenV ( const PFRnd &  FBlobBs,
TIntV BlockLenV 
)

Definition at line 138 of file blobbs.cpp.

References BlockLenVNm, EAssert, TVec< TVal >::Gen(), TVec< TVal >::Len(), and TStr::Len().

Referenced by TGBlobBs::TGBlobBs().

                                                                {
  EAssert(FBlobBs->GetStr(BlockLenVNm.Len())==BlockLenVNm);
  BlockLenV.Gen(FBlobBs->GetInt());
  for (int BlockLenN=0; BlockLenN<BlockLenV.Len(); BlockLenN++){
    BlockLenV[BlockLenN]=FBlobBs->GetInt();}
  EAssert(FBlobBs->GetInt()==-1);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 126 of file blobbs.h.

Referenced by AssertBlobTag(), and PutBlobTag().

{return 0xFFFEDCBA;}

Here is the caller graph for this function:

void TBlobBs::GetFFreeBlobPtV ( const PFRnd &  FBlobBs,
TBlobPtV &  FFreeBlobPtV 
)

Definition at line 160 of file blobbs.cpp.

References EAssert, FFreeBlobPtVNm, TStr::Len(), and Load().

Referenced by TGBlobBs::TGBlobBs().

                                                                         {
  EAssert(FBlobBs->GetStr(FFreeBlobPtVNm.Len())==FFreeBlobPtVNm);
  FFreeBlobPtV.Gen(FBlobBs->GetInt());
  for (int FFreeBlobPtN=0; FFreeBlobPtN<FFreeBlobPtV.Len(); FFreeBlobPtN++){
    FFreeBlobPtV[FFreeBlobPtN]=TBlobPt::Load(FBlobBs);}
  EAssert(FBlobBs->GetInt()==-1);
}

Here is the call graph for this function:

Here is the caller graph for this function:

virtual TBlobPt GetFirstBlobPt ( ) [pure virtual]
TB8Set TBlobPt::GetFSet ( const int &  FSetN)

Definition at line 34 of file blobbs.cpp.

References Fail, FSet1, FSet2, and FSet3.

                                       {
  switch (FSetN){
    case 1: return FSet1;
    case 2: return FSet2;
    case 3: return FSet3;
    default: Fail; return TB8Set();
  }
}
uint64 GetMemUsed ( ) const

Definition at line 42 of file blobbs.h.

References TBlobPt().

Referenced by TCache< TKey, TDat, THashFunc >::RefreshMemUsed().

{return sizeof(TBlobPt);}

Here is the call graph for this function:

Here is the caller graph for this function:

int TBlobBs::GetMxSegLen ( const PFRnd &  FBlobBs)

Definition at line 107 of file blobbs.cpp.

References EAssert, TStr::Len(), and MxSegLenVNm.

Referenced by TGBlobBs::TGBlobBs().

                                            {
  EAssert(FBlobBs->GetStr(MxSegLenVNm.Len())==MxSegLenVNm);
  return FBlobBs->GetInt();
}

Here is the call graph for this function:

Here is the caller graph for this function:

uchar GetSeg ( ) const

Definition at line 50 of file blobbs.h.

References Seg.

{return Seg;}
int GetStateStrLen ( )

Definition at line 104 of file blobbs.h.

Referenced by AssertBlobBsStateStr(), and GetBlobBsStateStr().

{return 6;}

Here is the caller graph for this function:

virtual TStr GetVersionStr ( ) const [pure virtual]

Referenced by AssertVersionStr(), and PutVersionStr().

Here is the caller graph for this function:

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().

                                           {
  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;
  }
}

Here is the call graph for this function:

static TBlobPt Load ( const PFRnd &  FRnd) [static]

Definition at line 60 of file blobbs.h.

References Addr, Seg, and TBlobPt().

                                        {
    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);}

Here is the call graph for this function:

static PBlobBs Load ( TSIn ) [static]

Definition at line 96 of file blobbs.h.

References Fail.

{Fail; return NULL;}
static TBlobPt LoadAddr ( const PFRnd &  FRnd,
const uchar Seg = 0 
) [static]

Definition at line 69 of file blobbs.h.

References Seg, and TBlobPt().

Referenced by TGBlobBs::PutBlob().

                                                                {
    return TBlobPt(Seg, FRnd->GetUInt());}

Here is the call graph for this function:

Here is the caller graph for this function:

void MergeFlags ( const TBlobPt Pt)

Definition at line 55 of file blobbs.h.

References FSet1, FSet2, and FSet3.

                                    {
    FSet1|=Pt.FSet1; FSet2|=Pt.FSet2; FSet3|=Pt.FSet3;}
bool operator< ( const TBlobPt Pt) const

Definition at line 40 of file blobbs.h.

References Addr, and Seg.

                                          {
    return (Seg<Pt.Seg)||((Seg==Pt.Seg)&&(Addr<Pt.Addr));}
TBlobPt& operator= ( const TBlobPt Pt)

Definition at line 33 of file blobbs.h.

References Addr, FSet1, FSet2, FSet3, and Seg.

                                       {
    if (this!=&Pt){
      Seg=Pt.Seg; Addr=Pt.Addr;
      FSet1=Pt.FSet1; FSet2=Pt.FSet2; FSet3=Pt.FSet3;}
    return *this;}
bool operator== ( const TBlobPt Pt) const

Definition at line 38 of file blobbs.h.

References Addr, and Seg.

                                           {
    return (Seg==Pt.Seg)&&(Addr==Pt.Addr);}
void PutAddr ( const uint _Addr)

Definition at line 51 of file blobbs.h.

References Addr.

{Addr=_Addr;}
virtual TBlobPt PutBlob ( const PSIn SIn) [pure virtual]

Referenced by PutBlob().

Here is the caller graph for this function:

TBlobPt PutBlob ( const TStr Str)

Definition at line 137 of file blobbs.h.

References TStrIn::New(), and PutBlob().

                                  {
    PSIn SIn=TStrIn::New(Str); return PutBlob(SIn);}

Here is the call graph for this function:

virtual TBlobPt PutBlob ( const TBlobPt BlobPt,
const PSIn SIn 
) [pure virtual]
void TBlobBs::PutBlobBsStateStr ( const PFRnd &  FBlobBs,
const TBlobBsState State 
)

Definition at line 86 of file blobbs.cpp.

References GetBlobBsStateStr().

Referenced by TGBlobBs::TGBlobBs(), and TGBlobBs::~TGBlobBs().

                                                                              {
  FBlobBs->PutStr(GetBlobBsStateStr(State));
}

Here is the call graph for this function:

Here is the caller graph for this function:

void TBlobBs::PutBlobState ( const PFRnd &  FBlobBs,
const TBlobState State 
)

Definition at line 193 of file blobbs.cpp.

Referenced by TGBlobBs::DelBlob(), and TGBlobBs::PutBlob().

                                                                       {
  FBlobBs->PutCh(char(State));
}

Here is the caller graph for this function:

void TBlobBs::PutBlobTag ( const PFRnd &  FBlobBs,
const TBlobTag BlobTag 
)

Definition at line 177 of file blobbs.cpp.

References btBegin, btEnd, Fail, GetBeginBlobTag(), and GetEndBlobTag().

Referenced by TGBlobBs::PutBlob().

                                                                     {
  switch (BlobTag){
    case btBegin: FBlobBs->PutUInt(GetBeginBlobTag()); break;
    case btEnd: FBlobBs->PutUInt(GetEndBlobTag()); break;
    default: Fail;
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

void TBlobBs::PutBlockLenV ( const PFRnd &  FBlobBs,
const TIntV BlockLenV 
)

Definition at line 130 of file blobbs.cpp.

References BlockLenVNm, and TVec< TVal >::Len().

Referenced by TGBlobBs::TGBlobBs(), and TGBlobBs::~TGBlobBs().

                                                                      {
  FBlobBs->PutStr(BlockLenVNm);
  FBlobBs->PutInt(BlockLenV.Len());
  for (int BlockLenN=0; BlockLenN<BlockLenV.Len(); BlockLenN++){
    FBlobBs->PutInt(BlockLenV[BlockLenN]);}
  FBlobBs->PutInt(-1);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void TBlobBs::PutFFreeBlobPtV ( const PFRnd &  FBlobBs,
const TBlobPtV &  FFreeBlobPtV 
)

Definition at line 152 of file blobbs.cpp.

References FFreeBlobPtVNm.

Referenced by TGBlobBs::TGBlobBs(), and TGBlobBs::~TGBlobBs().

                                                                               {
  FBlobBs->PutStr(FFreeBlobPtVNm);
  FBlobBs->PutInt(FFreeBlobPtV.Len());
  for (int BlockLenN=0; BlockLenN<FFreeBlobPtV.Len(); BlockLenN++){
    FFreeBlobPtV[BlockLenN].Save(FBlobBs);}
  FBlobBs->PutInt(-1);
}

Here is the caller graph for this function:

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;
  }
}

Here is the call graph for this function:

void TBlobPt::PutFSet ( const int &  FSetN,
const TB8Set FSet 
)

Definition at line 25 of file blobbs.cpp.

References Fail, FSet1, FSet2, and FSet3.

                                                         {
  switch (FSetN){
    case 1: FSet1=FSet; break;
    case 2: FSet2=FSet; break;
    case 3: FSet3=FSet; break;
    default: Fail;
  }
}
void TBlobBs::PutMxSegLen ( const PFRnd &  FBlobBs,
const int &  MxSegLen 
)

Definition at line 102 of file blobbs.cpp.

References MxSegLenVNm.

Referenced by TGBlobBs::TGBlobBs(), and TGBlobBs::~TGBlobBs().

                                                                  {
  FBlobBs->PutStr(MxSegLenVNm);
  FBlobBs->PutInt(MxSegLen);
}

Here is the caller graph for this function:

void PutSeg ( const uchar _Seg)

Definition at line 49 of file blobbs.h.

References Seg.

{Seg=_Seg;}
void TBlobBs::PutVersionStr ( const PFRnd &  FBlobBs)

Definition at line 64 of file blobbs.cpp.

References GetVersionStr().

Referenced by TGBlobBs::TGBlobBs(), and TGBlobBs::~TGBlobBs().

                                               {
  FBlobBs->PutStr(GetVersionStr());
}

Here is the call graph for this function:

Here is the caller graph for this function:

void Save ( TSOut SOut) const

Definition at line 29 of file blobbs.h.

References Addr, FSet1, FSet2, FSet3, TSOut::Save(), TB8Set::Save(), and Seg.

                               {
    SOut.Save(Seg); SOut.Save(Addr);
    FSet1.Save(SOut); FSet2.Save(SOut); FSet3.Save(SOut);}

Here is the call graph for this function:

void Save ( const PFRnd &  FRnd) const

Definition at line 65 of file blobbs.h.

References Addr, FSet1, FSet2, FSet3, TB8Set::GetUCh(), and Seg.

                                     {
    FRnd->PutUCh(Seg); FRnd->PutUInt(Addr);
    FRnd->PutUCh(FSet1.GetUCh()); FRnd->PutUCh(FSet2.GetUCh());
    FRnd->PutUCh(FSet3.GetUCh());}

Here is the call graph for this function:

void SaveAddr ( const PFRnd &  FRnd) const

Definition at line 71 of file blobbs.h.

References Addr.

                                         {
    FRnd->PutUInt(Addr);}
TBlobBs ( )

Definition at line 93 of file blobbs.h.

{}
TBlobBs ( TSIn )

Definition at line 95 of file blobbs.h.

References Fail.

{Fail;}
TBlobPt ( const TBlobPt Pt)

Definition at line 13 of file blobbs.h.

                            :
    Seg(Pt.Seg), Addr(Pt.Addr),
    FSet1(Pt.FSet1), FSet2(Pt.FSet2), FSet3(Pt.FSet3){}
TBlobPt ( const uchar _Seg,
const uint _Addr,
const TB8Set _FSet1,
const TB8Set _FSet2,
const TB8Set _FSet3 
)

Definition at line 16 of file blobbs.h.

                                                                    :
    Seg(_Seg), Addr(_Addr), FSet1(_FSet1), FSet2(_FSet2), FSet3(_FSet3){}
TBlobPt ( const uchar _Seg,
const uint _Addr 
)

Definition at line 19 of file blobbs.h.

                                               :
    Seg(_Seg), Addr(_Addr), FSet1(), FSet2(), FSet3(){}
TBlobPt ( const uint _Addr)

Definition at line 21 of file blobbs.h.

                            :
    Seg(0), Addr(_Addr), FSet1(), FSet2(), FSet3(){}
TBlobPt ( const int &  _Addr)

Definition at line 23 of file blobbs.h.

References IAssert.

                           :
    Seg(0), Addr(uint(_Addr)), FSet1(), FSet2(), FSet3(){IAssert(_Addr>=0);}
TBlobPt ( TSIn SIn)

Definition at line 26 of file blobbs.h.

References Addr, FSet1, FSet2, FSet3, TSIn::Load(), and Seg.

                    {
    SIn.Load(Seg); SIn.Load(Addr);
    FSet1=TB8Set(SIn); FSet2=TB8Set(SIn); FSet3=TB8Set(SIn);}

Here is the call graph for this function:

virtual ~TBlobBs ( ) [virtual]

Definition at line 94 of file blobbs.h.

{}
~TBlobPt ( )

Definition at line 25 of file blobbs.h.

{}

Variable Documentation

const TStr TBlobBs::BlockLenVNm = "BlockLenV" [static]

Definition at line 112 of file blobbs.h.

Referenced by GetBlockLenV(), and PutBlockLenV().

const TStr TBlobBs::FFreeBlobPtVNm = "FFreeBlobPtV" [static]

Definition at line 117 of file blobbs.h.

Referenced by GetFFreeBlobPtV(), and PutFFreeBlobPtV().

Definition at line 9 of file blobbs.h.

Referenced by GetFSet(), IsFlag(), MergeFlags(), operator=(), PutFlag(), PutFSet(), Save(), and TBlobPt().

Definition at line 9 of file blobbs.h.

Referenced by GetFSet(), IsFlag(), MergeFlags(), operator=(), PutFlag(), PutFSet(), Save(), and TBlobPt().

Definition at line 9 of file blobbs.h.

Referenced by GetFSet(), IsFlag(), MergeFlags(), operator=(), PutFlag(), PutFSet(), Save(), and TBlobPt().

const int TBlobBs::MxBlobFLen = 1000000000 [static]

Definition at line 87 of file blobbs.h.

Referenced by TGBlobBs::PutBlob(), TGBlobBs::TGBlobBs(), and TMBlobBs::TMBlobBs().

const TStr TBlobBs::MxSegLenVNm = "MxSegLen" [static]

Definition at line 108 of file blobbs.h.

Referenced by GetMxSegLen(), and PutMxSegLen().