#include <blobbs.h>
Inherited by TGBlobBs, and TMBlobBs.
|
| UndefCopyAssign (TBlobBs) |
|
| TBlobBs () |
|
virtual | ~TBlobBs () |
|
| TBlobBs (TSIn &) |
|
void | Save (TSOut &) const |
|
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) |
|
Definition at line 89 of file blobbs.h.
virtual TBlobBs::~TBlobBs |
( |
| ) |
|
|
inlinevirtual |
TBlobBs::TBlobBs |
( |
TSIn & |
| ) |
|
|
inline |
void TBlobBs::AssertBfCsEqFlCs |
( |
const TCs & |
BfCs, |
|
|
const TCs & |
FCs |
|
) |
| |
void TBlobBs::AssertBlobBsStateStr |
( |
const PFRnd & |
FBlobBs, |
|
|
const TBlobBsState & |
State |
|
) |
| |
Definition at line 90 of file blobbs.cpp.
95 if (!(IsOk && (CorrStateStr==TestStateStr))) {
TStr GetStr(const int &StrLen)
static void ThrowFull(const TStr &MsgStr, const TStr &LocStr)
TStr GetBlobBsStateStr(const TBlobBsState &BlobBsState)
void TBlobBs::AssertBlobState |
( |
const PFRnd & |
FBlobBs, |
|
|
const TBlobState & |
State |
|
) |
| |
void TBlobBs::AssertBlobTag |
( |
const PFRnd & |
FBlobBs, |
|
|
const TBlobTag & |
BlobTag |
|
) |
| |
Definition at line 185 of file blobbs.cpp.
static void Throw(const TStr &MsgStr)
void TBlobBs::AssertVersionStr |
( |
const PFRnd & |
FBlobBs | ) |
|
Definition at line 68 of file blobbs.cpp.
71 TStr TestVersionStr=FBlobBs->
GetStr(CorrVersionStr.
Len(), IsOk);
72 EAssert(IsOk && (CorrVersionStr==TestVersionStr));
TStr GetStr(const int &StrLen)
virtual TStr GetVersionStr() const =0
virtual void TBlobBs::DelBlob |
( |
const TBlobPt & |
BlobPt | ) |
|
|
pure virtual |
virtual TBlobPt TBlobBs::FFirstBlobPt |
( |
| ) |
|
|
pure virtual |
virtual bool TBlobBs::FNextBlobPt |
( |
TBlobPt & |
TrvBlobPt, |
|
|
TBlobPt & |
BlobPt, |
|
|
PSIn & |
BlobSIn |
|
) |
| |
|
pure virtual |
bool TBlobBs::FNextBlobPt |
( |
TBlobPt & |
TrvBlobPt, |
|
|
PSIn & |
BlobSIn |
|
) |
| |
|
inline |
Definition at line 148 of file blobbs.h.
virtual bool FNextBlobPt(TBlobPt &TrvBlobPt, TBlobPt &BlobPt, PSIn &BlobSIn)=0
void TBlobBs::GenBlockLenV |
( |
TIntV & |
BlockLenV | ) |
|
Definition at line 114 of file blobbs.cpp.
120 {
for (
int Len=10; Len<100; Len+=10){BlockLenV.
Add(Len);}}
121 {
for (
int Len=100; Len<10000; Len+=100){BlockLenV.
Add(Len);}}
122 {
for (
int Len=10000; Len<100000; Len+=1000){BlockLenV.
Add(Len);}}
123 {
for (
int Len=100000; Len<1000000; Len+=25000){BlockLenV.
Add(Len);}}
124 {
for (
int Len=1000000; Len<10000000; Len+=1000000){BlockLenV.
Add(Len);}}
125 {
for (
int Len=10000000; Len<100000000; Len+=10000000){BlockLenV.
Add(Len);}}
void Clr(const bool &DoDel=true, const TSizeTy &NoDelLim=-1)
Clears the contents of the vector.
void Sort(const bool &Asc=true)
Sorts the elements of the vector.
const TVal & Last() const
Returns a reference to the last element of the vector.
TSizeTy Add()
Adds a new element at the end of the vector, after its current last element.
static uint GetP2(const int &P2Exp)
void TBlobBs::GenFFreeBlobPtV |
( |
const TIntV & |
BlockLenV, |
|
|
TBlobPtV & |
FFreeBlobPtV |
|
) |
| |
Definition at line 148 of file blobbs.cpp.
149 FFreeBlobPtV.
Gen(BlockLenV.
Len()+1);
TSizeTy Len() const
Returns the number of elements in the vector.
void Gen(const TSizeTy &_Vals)
Constructs a vector (an array) of _Vals elements.
void TBlobBs::GetAllocInfo |
( |
const int & |
BfL, |
|
|
const TIntV & |
BlockLenV, |
|
|
int & |
MxBfL, |
|
|
int & |
FFreeBlobPtN |
|
) |
| |
Definition at line 168 of file blobbs.cpp.
171 while ((BlockLenN<BlockLenV.
Len())&&(BfL>BlockLenV[BlockLenN])){
174 MxBfL=BlockLenV[BlockLenN]; FFreeBlobPtN=BlockLenN;
TSizeTy Len() const
Returns the number of elements in the vector.
uint TBlobBs::GetBeginBlobTag |
( |
| ) |
|
|
inline |
virtual PSIn TBlobBs::GetBlob |
( |
const TBlobPt & |
BlobPt | ) |
|
|
pure virtual |
void TBlobBs::GetBlockLenV |
( |
const PFRnd & |
FBlobBs, |
|
|
TIntV & |
BlockLenV |
|
) |
| |
Definition at line 138 of file blobbs.cpp.
141 for (
int BlockLenN=0; BlockLenN<BlockLenV.
Len(); BlockLenN++){
142 BlockLenV[BlockLenN]=FBlobBs->
GetInt();}
TStr GetStr(const int &StrLen)
TSizeTy Len() const
Returns the number of elements in the vector.
static const TStr BlockLenVNm
void Gen(const TSizeTy &_Vals)
Constructs a vector (an array) of _Vals elements.
uint TBlobBs::GetEndBlobTag |
( |
| ) |
|
|
inline |
void TBlobBs::GetFFreeBlobPtV |
( |
const PFRnd & |
FBlobBs, |
|
|
TBlobPtV & |
FFreeBlobPtV |
|
) |
| |
Definition at line 160 of file blobbs.cpp.
163 for (
int FFreeBlobPtN=0; FFreeBlobPtN<FFreeBlobPtV.
Len(); FFreeBlobPtN++){
TStr GetStr(const int &StrLen)
static TBlobPt Load(const PFRnd &FRnd)
TSizeTy Len() const
Returns the number of elements in the vector.
void Gen(const TSizeTy &_Vals)
Constructs a vector (an array) of _Vals elements.
static const TStr FFreeBlobPtVNm
virtual TBlobPt TBlobBs::GetFirstBlobPt |
( |
| ) |
|
|
pure virtual |
int TBlobBs::GetMxSegLen |
( |
const PFRnd & |
FBlobBs | ) |
|
Definition at line 107 of file blobbs.cpp.
TStr GetStr(const int &StrLen)
static const TStr MxSegLenVNm
int TBlobBs::GetStateStrLen |
( |
| ) |
|
|
inline |
virtual TStr TBlobBs::GetVersionStr |
( |
| ) |
const |
|
pure virtual |
Definition at line 139 of file blobbs.h.
static PSIn New(const TStr &Str)
virtual TBlobPt PutBlob(const PSIn &SIn)=0
void TBlobBs::PutBlobBsStateStr |
( |
const PFRnd & |
FBlobBs, |
|
|
const TBlobBsState & |
State |
|
) |
| |
Definition at line 86 of file blobbs.cpp.
void PutStr(const TStr &Str)
TStr GetBlobBsStateStr(const TBlobBsState &BlobBsState)
void TBlobBs::PutBlobState |
( |
const PFRnd & |
FBlobBs, |
|
|
const TBlobState & |
State |
|
) |
| |
Definition at line 193 of file blobbs.cpp.
194 FBlobBs->
PutCh(
char(State));
void PutCh(const char &Ch)
void TBlobBs::PutBlobTag |
( |
const PFRnd & |
FBlobBs, |
|
|
const TBlobTag & |
BlobTag |
|
) |
| |
Definition at line 177 of file blobbs.cpp.
void PutUInt(const uint &UInt)
void TBlobBs::PutBlockLenV |
( |
const PFRnd & |
FBlobBs, |
|
|
const TIntV & |
BlockLenV |
|
) |
| |
Definition at line 130 of file blobbs.cpp.
133 for (
int BlockLenN=0; BlockLenN<BlockLenV.
Len(); BlockLenN++){
134 FBlobBs->
PutInt(BlockLenV[BlockLenN]);}
void PutInt(const int &Int)
TSizeTy Len() const
Returns the number of elements in the vector.
void PutStr(const TStr &Str)
static const TStr BlockLenVNm
void TBlobBs::PutFFreeBlobPtV |
( |
const PFRnd & |
FBlobBs, |
|
|
const TBlobPtV & |
FFreeBlobPtV |
|
) |
| |
Definition at line 152 of file blobbs.cpp.
155 for (
int BlockLenN=0; BlockLenN<FFreeBlobPtV.
Len(); BlockLenN++){
156 FFreeBlobPtV[BlockLenN].
Save(FBlobBs);}
void PutInt(const int &Int)
TSizeTy Len() const
Returns the number of elements in the vector.
void Save(TSOut &SOut) const
void PutStr(const TStr &Str)
static const TStr FFreeBlobPtVNm
void TBlobBs::PutMxSegLen |
( |
const PFRnd & |
FBlobBs, |
|
|
const int & |
MxSegLen |
|
) |
| |
Definition at line 102 of file blobbs.cpp.
104 FBlobBs->
PutInt(MxSegLen);
void PutInt(const int &Int)
static const TStr MxSegLenVNm
void PutStr(const TStr &Str)
void TBlobBs::PutVersionStr |
( |
const PFRnd & |
FBlobBs | ) |
|
Definition at line 64 of file blobbs.cpp.
void PutStr(const TStr &Str)
virtual TStr GetVersionStr() const =0
void TBlobBs::Save |
( |
TSOut & |
| ) |
const |
|
inline |
TBlobBs::UndefCopyAssign |
( |
TBlobBs |
| ) |
|
const TStr TBlobBs::BlockLenVNm ="BlockLenV" |
|
static |
const TStr TBlobBs::FFreeBlobPtVNm ="FFreeBlobPtV" |
|
static |
const int TBlobBs::MnBlobBfL =16 |
|
static |
const int TBlobBs::MxBlobFLen =1000000000 |
|
static |
const TStr TBlobBs::MxSegLenVNm ="MxSegLen" |
|
static |
The documentation for this class was generated from the following files: