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 | |
TMIn (const void *_Bf, const uint64 &_BfL, const bool &TakeBf=false) | |
TMIn (TSIn &SIn) | |
TMIn (const char *CStr) | |
TMIn (const TStr &Str, bool FromFile) | |
first parameter is either used as character array or file name More... | |
TMIn (const TChA &ChA) | |
~TMIn () | |
bool | Eof () |
int | Len () const |
char | GetCh () |
char | PeekCh () |
int | GetBf (const void *LBf, const TSize &LBfL) |
void | Reset () |
bool | GetNextLnBf (TChA &LnChA) |
uint64 | GetBfC () |
uint64 | GetBfL () |
void | SetBfC (uint64 Pos) |
uint64 | CountNewLinesInRange (uint64 Lb, uint64 Ub) |
Finds number of new line chars in interval [Lb, Ub) More... | |
uint64 | GetLineStartPos (uint64 Ind) |
Finds beginning of line in which Ind is present. More... | |
uint64 | GetLineEndPos (uint64 Ind) |
Finds end of line in which Ind is present. More... | |
char * | GetLine (uint64 Ind) |
void | SkipCommentLines () |
Move stream pointer along until a non commented line is found. More... | |
char * | GetBfAddr () |
Public Member Functions inherited from TSIn | |
TSIn () | |
TSIn (const TStr &Str) | |
virtual | ~TSIn () |
bool | IsFastMode () const |
void | SetFastMode (const bool &_FastMode) |
virtual void | LoadCs () |
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 |
Static Public Member Functions | |
static PSIn | New (const void *_Bf, const uint64 &_BfL, const bool &TakeBf=false) |
static PSIn | New (const char *CStr) |
static PSIn | New (const TStr &Str) |
static PSIn | New (const TChA &ChA) |
static TPt< TMIn > | New (const TStr &Str, bool FromFile) |
Private Member Functions | |
TMIn () | |
TMIn (const TMIn &) | |
TMIn & | operator= (const TMIn &) |
int | FindEol (uint64 &BfN, bool &CrEnd) |
Private Attributes | |
char * | Bf |
uint64 | BfC |
uint64 | BfL |
bool | IsMemoryMapped |
Friends | |
class | TPt< TMIn > |
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 |
|
private |
|
private |
TMIn::TMIn | ( | const void * | _Bf, |
const uint64 & | _BfL, | ||
const bool & | TakeBf = false |
||
) |
TMIn::TMIn | ( | TSIn & | SIn | ) |
Definition at line 603 of file fl.cpp.
References Bf, BfC, BfL, TSIn::GetCh(), and TSIn::Len().
TMIn::TMIn | ( | const TStr & | Str, |
bool | FromFile | ||
) |
first parameter is either used as character array or file name
Definition at line 615 of file fl.cpp.
References Bf, BfC, BfL, TStr::CStr(), EAssertR, TStr::Empty(), IsMemoryMapped, TStr::Len(), SEEK_END, SEEK_SET, and TExcept::Throw().
TMIn::TMIn | ( | const TChA & | ChA | ) |
TMIn::~TMIn | ( | ) |
Definition at line 688 of file fl.cpp.
References Bf, BfL, and IsMemoryMapped.
Finds number of new line chars in interval [Lb, Ub)
Definition at line 782 of file fl.cpp.
Referenced by TSsParserMP::CountNewLinesInRange().
|
inlinevirtual |
|
private |
|
virtual |
|
inline |
uint64 TMIn::GetBfC | ( | ) |
uint64 TMIn::GetBfL | ( | ) |
char * TMIn::GetLine | ( | uint64 | Ind | ) |
Finds end of line in which Ind is present.
Definition at line 802 of file fl.cpp.
Referenced by TSsParserMP::GetStartPosV().
Finds beginning of line in which Ind is present.
Definition at line 795 of file fl.cpp.
References Bf.
Referenced by TSsParserMP::GetStartPosV().
|
virtual |
Implements TSIn.
Definition at line 763 of file fl.cpp.
References FailR, and TStr::Fmt().
Referenced by TSsParserMP::Next().
|
inlinevirtual |
Definition at line 668 of file fl.cpp.
References TMIn().
Referenced by TSsParserMP::TSsParserMP().
|
static |
|
inlinevirtual |
void TMIn::SetBfC | ( | uint64 | Pos | ) |
void TMIn::SkipCommentLines | ( | ) |
Move stream pointer along until a non commented line is found.
Definition at line 814 of file fl.cpp.
References Bf, BfC, BfL, and TCh::IsHashCh().
Referenced by TSsParserMP::SkipCommentLines().
|
private |
Definition at line 439 of file fl.h.
Referenced by CountNewLinesInRange(), FindEol(), GetBf(), GetBfAddr(), GetCh(), GetLine(), GetLineEndPos(), GetLineStartPos(), PeekCh(), SkipCommentLines(), TMIn(), and ~TMIn().
|
private |
|
private |
Definition at line 440 of file fl.h.
Referenced by CountNewLinesInRange(), Eof(), FindEol(), GetBf(), GetBfL(), GetCh(), GetLineEndPos(), Len(), PeekCh(), SkipCommentLines(), TMIn(), and ~TMIn().
|
private |