SNAP Library 2.4, Developer Reference
2015-05-11 19:40:56
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <blobbs.h>
Public Member Functions | |
TMBlobBs (const TStr &BlobBsFNm, const TFAccess &_Access=faRdOnly, const int &_MxSegLen=-1) | |
~TMBlobBs () | |
TMBlobBs & | operator= (const TMBlobBs &) |
TStr | GetVersionStr () const |
TBlobPt | PutBlob (const PSIn &SIn) |
TBlobPt | PutBlob (const TBlobPt &BlobPt, const PSIn &SIn) |
PSIn | GetBlob (const TBlobPt &BlobPt) |
void | DelBlob (const TBlobPt &BlobPt) |
TBlobPt | GetFirstBlobPt () |
TBlobPt | FFirstBlobPt () |
bool | FNextBlobPt (TBlobPt &TrvBlobPt, TBlobPt &BlobPt, PSIn &BlobSIn) |
Public Member Functions inherited from TBlobBs | |
UndefCopyAssign (TBlobBs) | |
TBlobBs () | |
virtual | ~TBlobBs () |
TBlobBs (TSIn &) | |
void | Save (TSOut &) const |
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) |
TBlobPt | PutBlob (const TStr &Str) |
bool | FNextBlobPt (TBlobPt &TrvBlobPt, PSIn &BlobSIn) |
Static Public Member Functions | |
static PBlobBs | New (const TStr &BlobBsFNm, const TFAccess &Access=faRdOnly, const int &MxSegLen=-1) |
static bool | Exists (const TStr &BlobBsFNm) |
Static Public Member Functions inherited from TBlobBs | |
static PBlobBs | Load (TSIn &) |
Private Member Functions | |
void | LoadMain (int &Segs) |
void | SaveMain () const |
Static Private Member Functions | |
static void | GetNrFPathFMid (const TStr &BlobBsFNm, TStr &NrFPath, TStr &NrFMid) |
static TStr | GetMainFNm (const TStr &NrFPath, const TStr &NrFMid) |
static TStr | GetSegFNm (const TStr &NrFPath, const TStr &NrFMid, const int &SegN) |
Private Attributes | |
TFAccess | Access |
int | MxSegLen |
TStr | NrFPath |
TStr | NrFMid |
TBlobBsV | SegV |
int | CurSegN |
Additional Inherited Members | |
Static Public Attributes inherited from TBlobBs | |
static const int | MnBlobBfL =16 |
static const int | MxBlobFLen =1000000000 |
static const TStr | MxSegLenVNm ="MxSegLen" |
static const TStr | BlockLenVNm ="BlockLenV" |
static const TStr | FFreeBlobPtVNm ="FFreeBlobPtV" |
TMBlobBs::TMBlobBs | ( | const TStr & | BlobBsFNm, |
const TFAccess & | _Access = faRdOnly , |
||
const int & | _MxSegLen = -1 |
||
) |
Definition at line 449 of file blobbs.cpp.
References Access, TVec< TVal, TSizeTy >::Add(), TFile::DelWc(), TFile::Exists(), faCreate, Fail, faRdOnly, faRestore, faUpdate, forever, GetMainFNm(), GetNrFPathFMid(), GetSegFNm(), LoadMain(), TBlobBs::MxBlobFLen, MxSegLen, TGBlobBs::New(), NrFMid, NrFPath, SaveMain(), and SegV.
Referenced by New().
TMBlobBs::~TMBlobBs | ( | ) |
Definition at line 503 of file blobbs.cpp.
References Access, faRdOnly, and SaveMain().
|
virtual |
Implements TBlobBs.
Definition at line 546 of file blobbs.cpp.
References TBlobPt::GetSeg(), and SegV.
|
static |
Definition at line 576 of file blobbs.cpp.
References TFile::Exists(), GetMainFNm(), GetNrFPathFMid(), NrFMid, and NrFPath.
|
virtual |
Implements TBlobBs.
Definition at line 559 of file blobbs.cpp.
References TBlobPt::GetSeg(), TVec< TVal, TSizeTy >::Len(), TBlobPt::PutSeg(), and SegV.
Implements TBlobBs.
Definition at line 541 of file blobbs.cpp.
References TBlobPt::GetSeg(), and SegV.
|
virtual |
Definition at line 423 of file blobbs.cpp.
Referenced by Exists(), LoadMain(), SaveMain(), and TMBlobBs().
|
staticprivate |
Definition at line 417 of file blobbs.cpp.
References TStr::GetFMid(), TStr::GetFPath(), TStr::GetNrFMid(), and TStr::GetNrFPath().
Referenced by Exists(), and TMBlobBs().
|
staticprivate |
Definition at line 428 of file blobbs.cpp.
References TStr::GetNrNumFExt().
Referenced by PutBlob(), and TMBlobBs().
|
inlinevirtual |
Implements TBlobBs.
Definition at line 210 of file blobbs.h.
Referenced by LoadMain(), and SaveMain().
|
private |
Definition at line 433 of file blobbs.cpp.
References EAssert, GetMainFNm(), TILx::GetVarInt(), TILx::GetVarStr(), GetVersionStr(), MxSegLen, TFIn::New(), NrFMid, NrFPath, oloCsSens, oloFrcEoln, and oloSigNum.
Referenced by TMBlobBs().
|
inlinestatic |
Definition at line 203 of file blobbs.h.
References Access, MxSegLen, and TMBlobBs().
Implements TBlobBs.
Definition at line 509 of file blobbs.cpp.
References Access, TVec< TVal, TSizeTy >::Add(), CurSegN, EAssert, TBlobPt::Empty(), faCreate, faRestore, faUpdate, GetSegFNm(), TVec< TVal, TSizeTy >::Len(), MxSegLen, TGBlobBs::New(), NrFMid, NrFPath, TBlobPt::PutSeg(), and SegV.
Referenced by PutBlob().
Implements TBlobBs.
Definition at line 529 of file blobbs.cpp.
References Access, EAssert, TBlobPt::Empty(), faCreate, faRestore, faUpdate, TBlobPt::GetSeg(), PutBlob(), TBlobPt::PutSeg(), and SegV.
|
private |
Definition at line 441 of file blobbs.cpp.
References GetMainFNm(), GetVersionStr(), TVec< TVal, TSizeTy >::Len(), MxSegLen, TFOut::New(), NrFMid, NrFPath, oloCsSens, oloFrcEoln, oloSigNum, TOLx::PutVarInt(), TOLx::PutVarStr(), and SegV.
Referenced by TMBlobBs(), and ~TMBlobBs().
|
private |
Definition at line 190 of file blobbs.h.
Referenced by New(), PutBlob(), TMBlobBs(), and ~TMBlobBs().
|
private |
Definition at line 191 of file blobbs.h.
Referenced by LoadMain(), New(), PutBlob(), SaveMain(), and TMBlobBs().
|
private |
Definition at line 192 of file blobbs.h.
Referenced by Exists(), LoadMain(), PutBlob(), SaveMain(), and TMBlobBs().
|
private |
Definition at line 192 of file blobbs.h.
Referenced by Exists(), LoadMain(), PutBlob(), SaveMain(), and TMBlobBs().
|
private |
Definition at line 193 of file blobbs.h.
Referenced by DelBlob(), FFirstBlobPt(), FNextBlobPt(), GetBlob(), GetFirstBlobPt(), PutBlob(), SaveMain(), and TMBlobBs().