SNAP Library 2.1, Developer Reference  2013-09-25 10:47:25
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
TMemOut Class Reference

#include <dt.h>

Inheritance diagram for TMemOut:
Collaboration diagram for TMemOut:

List of all members.

Public Member Functions

 TMemOut (const PMem &_Mem)
 ~TMemOut ()
int PutCh (const char &Ch)
int PutBf (const void *LBf, const TSize &LBfL)
void Flush ()

Static Public Member Functions

static PSOut New (const PMem &Mem)

Private Member Functions

void FlushBf ()

Private Attributes

PMem Mem

Detailed Description

Definition at line 182 of file dt.h.


Constructor & Destructor Documentation

TMemOut::TMemOut ( const PMem _Mem)

Definition at line 334 of file dt.cpp.

Referenced by New().

: TSBase("Output-Memory"), TSOut("Output-Memory"), Mem(_Mem){}

Here is the caller graph for this function:

TMemOut::~TMemOut ( ) [inline]

Definition at line 191 of file dt.h.

{}

Member Function Documentation

void TMemOut::Flush ( ) [inline, virtual]

Implements TSOut.

Definition at line 196 of file dt.h.

{}
void TMemOut::FlushBf ( ) [private]
static PSOut TMemOut::New ( const PMem Mem) [inline, static]

Definition at line 189 of file dt.h.

References TMemOut().

                                   {
    return new TMemOut(Mem);}

Here is the call graph for this function:

int TMemOut::PutBf ( const void *  LBf,
const TSize LBfL 
) [virtual]

Implements TSOut.

Definition at line 336 of file dt.cpp.

References Mem.

                                                    {
  int LBfS=0;
  TMem& _Mem=*Mem;
  for (TSize LBfC=0; LBfC<LBfL; LBfC++){
    char Ch=((char*)LBf)[LBfC];
    LBfS+=Ch; _Mem+=Ch;
  }
  return LBfS;
}
int TMemOut::PutCh ( const char &  Ch) [inline, virtual]

Implements TSOut.

Definition at line 193 of file dt.h.

References Mem.

                           {
    Mem->operator+=(Ch); return Ch;}

Member Data Documentation

PMem TMemOut::Mem [private]

Definition at line 184 of file dt.h.

Referenced by PutBf(), and PutCh().


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