jplus-0.4.7
util.h File Reference
#include <complex>
#include <string>
#include "sha1.h"
Include dependency graph for util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define fftw(name)   fftw_ ## name
 
#define TYPE_STR   ""
 
#define _stdcall
 

Typedefs

typedef double Real
 
typedef std::complex< double > Cmplx
 
typedef long double lReal
 

Functions

int parseint (char *str, int &res)
 
int parsepositiveint (char *str, int &res)
 
int parsedouble (char *str, double &res)
 
int parsepositivedouble (char *str, double &res)
 
std::string sha1tostring (SHA1 &sha1)
 convert sha1 to string
 
bool tol_eq (double a, double b)
 tolerant comparison of two double numbers
 

Macro Definition Documentation

◆ _stdcall

#define _stdcall

◆ fftw

#define fftw (   name)    fftw_ ## name

◆ TYPE_STR

#define TYPE_STR   ""

Typedef Documentation

◆ Cmplx

typedef std::complex<double> Cmplx

◆ lReal

typedef long double lReal

◆ Real

typedef double Real

Function Documentation

◆ parsedouble()

int parsedouble ( char *  str,
double &  res 
)

◆ parseint()

int parseint ( char *  str,
int &  res 
)

◆ parsepositivedouble()

int parsepositivedouble ( char *  str,
double &  res 
)

◆ parsepositiveint()

int parsepositiveint ( char *  str,
int &  res 
)

◆ sha1tostring()

std::string sha1tostring ( SHA1 &  sha1)

convert sha1 to string

◆ tol_eq()

bool tol_eq ( double  a,
double  b 
)

tolerant comparison of two double numbers