SNAP Library 2.0, Developer Reference  2013-05-13 16:33:57
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
TStdIn Class Reference

#include <fl.h>

Inheritance diagram for TStdIn:
Collaboration diagram for TStdIn:

List of all members.

Public Member Functions

 TStdIn ()
bool Eof ()
int Len () const
char GetCh ()
char PeekCh ()
int GetBf (const void *LBf, const TSize &LBfL)
void Reset ()
bool GetNextLnBf (TChA &LnChA)

Static Public Member Functions

static TPt< TSInNew ()

Private Member Functions

 TStdIn (const TStdIn &)
TStdInoperator= (const TStdIn &)

Detailed Description

Definition at line 240 of file fl.h.


Constructor & Destructor Documentation

TStdIn::TStdIn ( const TStdIn ) [private]

Definition at line 63 of file fl.cpp.

Referenced by New().

: TSBase("Standard input"), TSIn("Standard input") {}

Here is the caller graph for this function:


Member Function Documentation

bool TStdIn::Eof ( ) [inline, virtual]

Implements TSIn.

Definition at line 248 of file fl.h.

{return feof(stdin)!=0;}
int TStdIn::GetBf ( const void *  LBf,
const TSize LBfL 
) [virtual]

Implements TSIn.

Definition at line 217 of file fl.cpp.

References GetCh().

                                                   {
  int LBfS=0;
  for (TSize LBfC=0; LBfC<LBfL; LBfC++){
    LBfS+=(((char*)LBf)[LBfC]=GetCh());}
  return LBfS;
}

Here is the call graph for this function:

char TStdIn::GetCh ( ) [inline, virtual]

Implements TSIn.

Definition at line 250 of file fl.h.

Referenced by GetBf().

{return char(getchar());}

Here is the caller graph for this function:

bool TStdIn::GetNextLnBf ( TChA LnChA) [virtual]

Implements TSIn.

Definition at line 224 of file fl.cpp.

References FailR, and TStr::Fmt().

                                   {
  // not implemented
  FailR(TStr::Fmt("TStdIn::GetNextLnBf: not implemented").CStr());
  return false;
}

Here is the call graph for this function:

int TStdIn::Len ( ) const [inline, virtual]

Implements TSIn.

Definition at line 249 of file fl.h.

{return -1;}
static TPt<TSIn> TStdIn::New ( ) [inline, static]

Definition at line 246 of file fl.h.

References TStdIn().

{return new TStdIn();}

Here is the call graph for this function:

TStdIn& TStdIn::operator= ( const TStdIn ) [private]
char TStdIn::PeekCh ( ) [inline, virtual]

Implements TSIn.

Definition at line 251 of file fl.h.

               {
    int Ch=getchar(); ungetc(Ch, stdin); return char(Ch);}
void TStdIn::Reset ( ) [inline, virtual]

Reimplemented from TSIn.

Definition at line 254 of file fl.h.

References TSBase::Cs.

{Cs=TCs();}

The documentation for this class was generated from the following files: