SNAP Library 3.0, User Reference  2016-07-20 17:56:49
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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.

25 {return Val;}
int Val
Definition: fl.h:14
TCs TCs::GetCsFromBf ( char *  Bf,
const int &  BfL 
)
static

Definition at line 12 of file fl.cpp.

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

Definition at line 22 of file fl.h.

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.

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.

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.


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