jplus-0.4.6
src/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.

Defines

#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

Define Documentation

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

Typedef Documentation

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

Function Documentation

int parsedouble ( char *  str,
double &  res 
)
int parseint ( char *  str,
int &  res 
)
int parsepositivedouble ( char *  str,
double &  res 
)
int parsepositiveint ( char *  str,
int &  res 
)
std::string sha1tostring ( SHA1 &  sha1)

convert sha1 to string

bool tol_eq ( double  a,
double  b 
)

tolerant comparison of two double numbers