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
TCs Class Reference

#include <fl.h>

List of all members.

Public Member Functions

 TCs ()
 TCs (const TCs &Cs)
 TCs (const int &Int)
TCsoperator= (const TCs &Cs)
bool operator== (const TCs &Cs) const
TCsoperator+= (const TCs &Cs)
TCsoperator+= (const char &Ch)
TCsoperator+= (const int &Int)
int Get () const

Static Public Member Functions

static TCs GetCsFromBf (char *Bf, const int &BfL)

Private Attributes

int Val

Static Private Attributes

static const int MxMask = 0x0FFFFFFF

Detailed Description

Definition at line 11 of file fl.h.


Constructor & Destructor Documentation

TCs::TCs ( ) [inline]

Definition at line 16 of file fl.h.

: Val(0){}
TCs::TCs ( const TCs Cs) [inline]

Definition at line 17 of file fl.h.

: Val(Cs.Val&MxMask){}
TCs::TCs ( const int &  Int) [inline]

Definition at line 18 of file fl.h.

: Val(Int&MxMask){}

Member Function Documentation

int TCs::Get ( ) const [inline]

Definition at line 25 of file fl.h.

References Val.

Referenced by TBlobBs::AssertBfCsEqFlCs().

{return Val;}

Here is the caller graph for this function:

TCs TCs::GetCsFromBf ( char *  Bf,
const int &  BfL 
) [static]

Definition at line 12 of file fl.cpp.

Referenced by TFRnd::GetSIn(), and TFRnd::PutSIn().

                                            {
  TCs Cs;
  for (int BfC=0; BfC<BfL; BfC++){Cs+=Bf[BfC];}
  return Cs;
}

Here is the caller graph for this function:

TCs& TCs::operator+= ( const TCs Cs) [inline]

Definition at line 22 of file fl.h.

References MxMask, and Val.

{Val=(Val+Cs.Val)&MxMask; return *this;}
TCs& TCs::operator+= ( const char &  Ch) [inline]

Definition at line 23 of file fl.h.

References MxMask, and Val.

{Val=(Val+Ch)&MxMask; return *this;}
TCs& TCs::operator+= ( const int &  Int) [inline]

Definition at line 24 of file fl.h.

References MxMask, and Val.

{Val=(Val+Int)&MxMask; return *this;}
TCs& TCs::operator= ( const TCs Cs) [inline]

Definition at line 20 of file fl.h.

References Val.

{Val=Cs.Val; return *this;}
bool TCs::operator== ( const TCs Cs) const [inline]

Definition at line 21 of file fl.h.

References Val.

{return Val==Cs.Val;}

Member Data Documentation

const int TCs::MxMask = 0x0FFFFFFF [static, private]

Definition at line 13 of file fl.h.

Referenced by operator+=().

int TCs::Val [private]

Definition at line 14 of file fl.h.

Referenced by Get(), operator+=(), operator=(), and operator==().


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