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

#include <fl.h>

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.

16 : Val(0){}
int Val
Definition: fl.h:14
TCs::TCs ( const TCs Cs)
inline

Definition at line 17 of file fl.h.

17 : Val(Cs.Val&MxMask){}
int Val
Definition: fl.h:14
static const int MxMask
Definition: fl.h:13
TCs::TCs ( const int &  Int)
inline

Definition at line 18 of file fl.h.

18 : Val(Int&MxMask){}
int Val
Definition: fl.h:14
static const int MxMask
Definition: fl.h:13

Member Function Documentation

int TCs::Get ( ) const
inline

Definition at line 25 of file fl.h.

References Val.

Referenced by TBlobBs::AssertBfCsEqFlCs().

25 {return Val;}
int Val
Definition: fl.h:14

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().

12  {
13  TCs Cs;
14  for (int BfC=0; BfC<BfL; BfC++){Cs+=Bf[BfC];}
15  return Cs;
16 }
Definition: fl.h:11

Here is the caller graph for this function:

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

Definition at line 22 of file fl.h.

References Val.

22 {Val=(Val+Cs.Val)&MxMask; return *this;}
int Val
Definition: fl.h:14
static const int MxMask
Definition: fl.h:13
TCs& TCs::operator+= ( const char &  Ch)
inline

Definition at line 23 of file fl.h.

23 {Val=(Val+Ch)&MxMask; return *this;}
int Val
Definition: fl.h:14
static const int MxMask
Definition: fl.h:13
TCs& TCs::operator+= ( const int &  Int)
inline

Definition at line 24 of file fl.h.

24 {Val=(Val+Int)&MxMask; return *this;}
int Val
Definition: fl.h:14
static const int MxMask
Definition: fl.h:13
TCs& TCs::operator= ( const TCs Cs)
inline

Definition at line 20 of file fl.h.

References Val.

20 {Val=Cs.Val; return *this;}
int Val
Definition: fl.h:14
bool TCs::operator== ( const TCs Cs) const
inline

Definition at line 21 of file fl.h.

References Val.

21 {return Val==Cs.Val;}
int Val
Definition: fl.h:14

Member Data Documentation

const int TCs::MxMask =0x0FFFFFFF
staticprivate

Definition at line 13 of file fl.h.

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: