FEDEM Solver  R8.0
Source code of the dynamics solver
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
FFaCheckSum Class Reference

#include <FFaCheckSum.H>

Public Member Functions

 FFaCheckSum ()
 
 FFaCheckSum (const FFaCheckSum &)=delete
 
 ~FFaCheckSum ()
 
FFaCheckSumoperator= (const FFaCheckSum &cs)
 
bool operator== (const FFaCheckSum &cs) const
 
void reset ()
 
unsigned int getCurrent () const
 
void add (const std::string &e)
 
void add (char e)
 
void add (unsigned char e)
 
void add (short int e)
 
void add (unsigned short int e)
 
void add (int e)
 
void add (unsigned int e)
 
void add (float e)
 
void add (double e, int precision=0)
 
void add (const FaVec3 &e, int precision=0)
 
template<class T >
void add (const std::vector< T > &v)
 

Private Member Functions

unsigned int doCRC (unsigned int data)
 

Private Attributes

unsigned int * crc32_table
 
unsigned int checksum
 
unsigned int addval
 
bool isBigEndian
 

Friends

std::ostream & operator<< (std::ostream &s, const FFaCheckSum &cs)
 
std::istream & operator>> (std::istream &s, FFaCheckSum &cs)
 

Constructor & Destructor Documentation

◆ FFaCheckSum() [1/2]

FFaCheckSum::FFaCheckSum ( )

◆ FFaCheckSum() [2/2]

FFaCheckSum::FFaCheckSum ( const FFaCheckSum )
delete

◆ ~FFaCheckSum()

FFaCheckSum::~FFaCheckSum ( )
inline

Member Function Documentation

◆ add() [1/11]

void FFaCheckSum::add ( char  e)
inline

◆ add() [2/11]

void FFaCheckSum::add ( const FaVec3 e,
int  precision = 0 
)

◆ add() [3/11]

void FFaCheckSum::add ( const std::string &  e)
inline

◆ add() [4/11]

template<class T >
void FFaCheckSum::add ( const std::vector< T > &  v)
inline

◆ add() [5/11]

void FFaCheckSum::add ( double  e,
int  precision = 0 
)

◆ add() [6/11]

void FFaCheckSum::add ( float  e)

◆ add() [7/11]

void FFaCheckSum::add ( int  e)
inline

◆ add() [8/11]

void FFaCheckSum::add ( short int  e)
inline

◆ add() [9/11]

void FFaCheckSum::add ( unsigned char  e)
inline

◆ add() [10/11]

void FFaCheckSum::add ( unsigned int  e)
inline

◆ add() [11/11]

void FFaCheckSum::add ( unsigned short int  e)
inline

◆ doCRC()

unsigned int FFaCheckSum::doCRC ( unsigned int  data)
private

◆ getCurrent()

unsigned int FFaCheckSum::getCurrent ( ) const
inline

◆ operator=()

FFaCheckSum & FFaCheckSum::operator= ( const FFaCheckSum cs)

◆ operator==()

bool FFaCheckSum::operator== ( const FFaCheckSum cs) const

◆ reset()

void FFaCheckSum::reset ( )
inline

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  s,
const FFaCheckSum cs 
)
friend

◆ operator>>

std::istream& operator>> ( std::istream &  s,
FFaCheckSum cs 
)
friend

Member Data Documentation

◆ addval

unsigned int FFaCheckSum::addval
private

◆ checksum

unsigned int FFaCheckSum::checksum
private

◆ crc32_table

unsigned int* FFaCheckSum::crc32_table
private

◆ isBigEndian

bool FFaCheckSum::isBigEndian
private

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