SNAP Library 6.0, Developer Reference  2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
TStdOut Class Reference

#include <fl.h>

Inheritance diagram for TStdOut:
Collaboration diagram for TStdOut:

Public Member Functions

 TStdOut ()
int PutCh (const char &Ch)
int PutBf (const void *LBf, const TSize &LBfL)
void Flush ()
- Public Member Functions inherited from TSOut
 TSOut ()
 TSOut (const TStr &Str)
virtual ~TSOut ()
void EnableLnTrunc (const int &_MxLnLen)
void DisableLnTrunc ()
virtual TFileId GetFileId () const
int PutMem (const TMem &Mem)
int PutCh (const char &Ch, const int &Chs)
int PutBool (const bool &Bool)
int PutInt (const int &Int)
int PutInt (const int &Int, const char *FmtStr)
int PutUInt (const uint &Int)
int PutUInt (const uint &Int, const char *FmtStr)
int PutFlt (const double &Flt)
int PutFlt (const double &Flt, const char *FmtStr)
int PutStr (const char *CStr)
int PutStr (const TChA &ChA)
int PutStr (const TStr &Str, const char *FmtStr)
int PutStr (const TStr &Str, const bool &ForceInLn=false)
int PutStrLn (const TStr &Str, const bool &ForceInLn=false)
int PutStrFmt (const char *FmtStr,...)
int PutStrFmtLn (const char *FmtStr,...)
int PutIndent (const int &IndentLev=1)
int PutLn (const int &Lns=1)
int PutDosLn (const int &Lns=1)
int PutSep (const int &NextStrLen=0)
int PutSepLn (const int &Lns=0)
void SaveCs ()
void SaveBf (const void *Bf, const TSize &BfL)
void Save (const bool &Bool)
void Save (const char &Ch)
void Save (const uchar &UCh)
void Save (const short &Short)
void Save (const ushort &UShort)
void Save (const int &Int)
void Save (const uint &UInt)
void Save (const int64 &Int)
void Save (const uint64 &UInt)
void Save (const double &Flt)
void Save (const sdouble &SFlt)
void Save (const ldouble &LFlt)
void Save (const char *CStr, const TSize &CStrLen)
void Save (const char *CStr)
void Save (TSIn &SIn, const TSize &BfL=-1)
void Save (const PSIn &SIn, const TSize &BfL=-1)
void Save (const void *Bf, const TSize &BfL)
TSOutoperator<< (const bool &Bool)
TSOutoperator<< (const uchar &UCh)
TSOutoperator<< (const char &Ch)
TSOutoperator<< (const short &Sh)
TSOutoperator<< (const ushort &USh)
TSOutoperator<< (const int &Int)
TSOutoperator<< (const uint &Int)
TSOutoperator<< (const int64 &Int)
TSOutoperator<< (const uint64 &UInt)
TSOutoperator<< (const float &Flt)
TSOutoperator<< (const double &Double)
TSOutoperator<< (const long double &LDouble)
TSOutoperator<< (const TSOutMnp &Mnp)
TSOutoperator<< (TSOut &(*FuncPt)(TSOut &))
TSOutoperator<< (TSIn &SIn)
TSOutoperator<< (PSIn &SIn)
- Public Member Functions inherited from TSBase
 TSBase (const TSStr &Nm)
virtual ~TSBase ()
virtual TStr GetSNm () const

Static Public Member Functions

static TPt< TSOutNew ()

Private Member Functions

 TStdOut (const TStdOut &)
TStdOutoperator= (const TStdOut &)

Additional Inherited Members

- Static Public Attributes inherited from TSOut
static const TPt< TSOutStdOut =PSOut(new TStdOut())
- Protected Attributes inherited from TSBase
TCRef CRef
TCs Cs

Detailed Description

Definition at line 260 of file fl.h.

Constructor & Destructor Documentation

TStdOut::TStdOut ( const TStdOut )
TStdOut::TStdOut ( )

Definition at line 213 of file fl.cpp.

Referenced by New().

213 : TSBase(TSStr("Standard output")), TSOut("Standard output"){}
Definition: bd.h:514
TSBase(const TSStr &Nm)
Definition: fl.h:50
Definition: fl.h:136

Here is the caller graph for this function:

Member Function Documentation

void TStdOut::Flush ( )

Implements TSOut.

Definition at line 270 of file fl.h.

270 {fflush(stdout);}
static TPt<TSOut> TStdOut::New ( )

Definition at line 266 of file fl.h.

References TStdOut().

Referenced by TSnap::GetShortestDistances().

266 {return new TStdOut();}
Definition: fl.cpp:213

Here is the call graph for this function:

Here is the caller graph for this function:

TStdOut& TStdOut::operator= ( const TStdOut )
int TStdOut::PutBf ( const void *  LBf,
const TSize LBfL 

Implements TSOut.

Definition at line 232 of file fl.cpp.

References PutCh().

232  {
233  int LBfS=0;
234  for (TSize LBfC=0; LBfC<LBfL; LBfC++){
235  LBfS+=PutCh(((char*)LBf)[LBfC]);}
236  return LBfS;
237 }
size_t TSize
Definition: bd.h:58
int PutCh(const char &Ch)
Definition: fl.h:268

Here is the call graph for this function:

int TStdOut::PutCh ( const char &  Ch)

Implements TSOut.

Definition at line 268 of file fl.h.

Referenced by PutBf().

268 {putchar(Ch); return Ch;}

Here is the caller graph for this function:

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