SNAP Library 4.0, Developer Reference
2017-07-27 13:18:06
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <fl.h>
Public Member Functions | |
TShMIn (const TStr &Str) | |
TShMIn (void *_Bf, const TSize &_BfL) | |
~TShMIn () | |
bool | Eof () |
int | Len () const |
char | GetCh () |
char * | getCursor () |
char | PeekCh () |
void | LoadCs () |
int | GetBf (const void *LBf, const TSize &LBfL) |
bool | GetNextLnBf (TChA &LnChA) |
void | LoadAndAdvance (void *Dest, TSize ElemSize) |
Copy memory into the destination and advance the cursor. More... | |
char * | AdvanceCursor (TSize N) |
Return the current pointer and advance the cursor. More... | |
void | CloseMapping () |
munmap the mapping. Note that munmap is not called by the destructor More... | |
Public Member Functions inherited from TSIn | |
TSIn () | |
TSIn (const TStr &Str) | |
virtual | ~TSIn () |
virtual void | Reset () |
bool | IsFastMode () const |
void | SetFastMode (const bool &_FastMode) |
void | LoadBf (const void *Bf, const TSize &BfL) |
void * | LoadNewBf (const int &BfL) |
void | Load (bool &Bool) |
void | Load (uchar &UCh) |
void | Load (char &Ch) |
void | Load (short &Short) |
void | Load (ushort &UShort) |
void | Load (int &Int) |
void | Load (uint &UInt) |
void | Load (int64 &Int) |
void | Load (uint64 &UInt) |
void | Load (double &Flt) |
void | Load (sdouble &SFlt) |
void | Load (ldouble &LFlt) |
void | Load (char *&CStr, const int &MxCStrLen, const int &CStrLen) |
void | Load (char *&CStr) |
TSIn & | operator>> (bool &Bool) |
TSIn & | operator>> (uchar &UCh) |
TSIn & | operator>> (char &Ch) |
TSIn & | operator>> (short &Sh) |
TSIn & | operator>> (ushort &USh) |
TSIn & | operator>> (int &Int) |
TSIn & | operator>> (uint &UInt) |
TSIn & | operator>> (int64 &Int) |
TSIn & | operator>> (uint64 &UInt) |
TSIn & | operator>> (float &Flt) |
TSIn & | operator>> (double &Double) |
TSIn & | operator>> (long double &LDouble) |
bool | GetNextLn (TStr &LnStr) |
bool | GetNextLn (TChA &LnChA) |
Public Member Functions inherited from TSBase | |
TSBase (const TSStr &Nm) | |
virtual | ~TSBase () |
virtual TStr | GetSNm () const |
Private Attributes | |
char * | OriginalBuffer |
TSize | TotalLength |
TSize | SizeLeft |
char * | Cursor |
bool | IsMemoryMapped |
Additional Inherited Members | |
Static Public Attributes inherited from TSIn | |
static const TPt< TSIn > | StdIn =PSIn(new TStdIn()) |
Protected Attributes inherited from TSBase | |
TCRef | CRef |
TSStr | SNm |
TCs | Cs |
TShMIn::TShMIn | ( | const TStr & | Str | ) |
Definition at line 538 of file fl.cpp.
References TStr::CStr(), Cursor, EAssertR, TStr::Empty(), IsMemoryMapped, OriginalBuffer, SEEK_END, SEEK_SET, SizeLeft, TExcept::Throw(), and TotalLength.
TShMIn::TShMIn | ( | void * | _Bf, |
const TSize & | _BfL | ||
) |
|
inline |
Return the current pointer and advance the cursor.
Definition at line 425 of file fl.h.
References Cursor, and SizeLeft.
Referenced by LoadAndAdvance(), TBigStrPool::LoadPoolShM(), and TVec< TVal, TSizeTy >::LoadShM().
void TShMIn::CloseMapping | ( | ) |
munmap the mapping. Note that munmap is not called by the destructor
Definition at line 577 of file fl.cpp.
References Cursor, IsMemoryMapped, OriginalBuffer, SizeLeft, and TotalLength.
|
inlinevirtual |
|
inlinevirtual |
Implements TSIn.
Definition at line 412 of file fl.h.
References LoadAndAdvance().
Referenced by LoadCs().
|
inlinevirtual |
Implements TSIn.
Definition at line 397 of file fl.h.
References LoadAndAdvance().
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
inline |
Copy memory into the destination and advance the cursor.
Definition at line 420 of file fl.h.
References AdvanceCursor(), and Cursor.
Referenced by GetBf(), and GetCh().
|
inlinevirtual |
Reimplemented from TSIn.
Definition at line 408 of file fl.h.
References GetBf().
Referenced by TBigStrPool::LoadPoolShM(), THash< TPair, THash >::LoadShM(), and TStrHash< TInt, TBigStrPool >::LoadShM().
|
inlinevirtual |
|
private |
Definition at line 389 of file fl.h.
Referenced by AdvanceCursor(), CloseMapping(), getCursor(), LoadAndAdvance(), PeekCh(), and TShMIn().
|
private |
Definition at line 390 of file fl.h.
Referenced by CloseMapping(), and TShMIn().
|
private |
Definition at line 386 of file fl.h.
Referenced by CloseMapping(), and TShMIn().
|
private |
Definition at line 388 of file fl.h.
Referenced by AdvanceCursor(), CloseMapping(), Eof(), and TShMIn().
|
private |
Definition at line 387 of file fl.h.
Referenced by CloseMapping(), Len(), and TShMIn().