Geant4  10.02.p01
nf_stringToDoubles.cc File Reference
#include <stdlib.h>
#include <cmath>
#include "nf_utilities.h"
+ Include dependency graph for nf_stringToDoubles.cc:

Go to the source code of this file.

Macros

#define isfinite   std::isfinite
 
#define numberOfStaticDoubles   ( 100 * 1000 )
 

Functions

static nfu_status nfu_stringToListOfDoubles2 (char const *str, int64_t *numberConverted, double **doublePtr, char **endCharacter)
 
nfu_status nfu_stringToListOfDoubles (char const *str, int64_t *numberConverted, double **doublePtr, char **endCharacter)
 
char * nf_floatToShortestString (double value, int significantDigits, int favorEFormBy, int flags)
 

Macro Definition Documentation

#define numberOfStaticDoubles   ( 100 * 1000 )

Definition at line 23 of file nf_stringToDoubles.cc.

Referenced by nfu_stringToListOfDoubles2().

Function Documentation

char* nf_floatToShortestString ( double  value,
int  significantDigits,
int  favorEFormBy,
int  flags 
)

Definition at line 66 of file nf_stringToDoubles.cc.

References e1, e2, e3, isfinite, and G4INCL::Math::sign().

+ Here is the call graph for this function:

nfu_status nfu_stringToListOfDoubles ( char const *  str,
int64_t *  numberConverted,
double **  doublePtr,
char **  endCharacter 
)

Definition at line 29 of file nf_stringToDoubles.cc.

References nfu_stringToListOfDoubles2().

Referenced by ptwX_fromString(), and ptwXY_fromString().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static nfu_status nfu_stringToListOfDoubles2 ( char const *  str,
int64_t *  numberConverted,
double **  doublePtr,
char **  endCharacter 
)
static

Definition at line 38 of file nf_stringToDoubles.cc.

References nfu_malloc(), and numberOfStaticDoubles.

Referenced by nfu_stringToListOfDoubles().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: