SNAP Library 3.0, User Reference
2016-07-20 17:56:49
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <fl.h>
Inherits TSIn.
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) |
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 | ) |
TMIn::TMIn | ( | const TStr & | Str, |
bool | FromFile | ||
) |
TMIn::TMIn | ( | const TChA & | ChA | ) |
TMIn::~TMIn | ( | ) |
|
inlinevirtual |
|
virtual |
|
inline |
uint64 TMIn::GetBfC | ( | ) |
uint64 TMIn::GetBfL | ( | ) |
|
virtual |
Implements TSIn.
char * TMIn::GetLine | ( | uint64 | Ind | ) |
|
virtual |
|
inlinevirtual |
|
static |
|
virtual |
Implements TSIn.
|
inlinevirtual |
void TMIn::SetBfC | ( | uint64 | Pos | ) |
void TMIn::SkipCommentLines | ( | ) |