|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
#include <stdio.h>#include <stdint.h>#include <string.h>#include <stdarg.h>#include <math.h>#include <statusMessageReporting.h>Go to the source code of this file.
Macros | |
| #define | _USE_MATH_DEFINES |
| #define | nf_floatToShortestString_trimZeros ( 1 << 0 ) |
| #define | nf_floatToShortestString_keepPeriod ( 1 << 1 ) |
| #define | nf_floatToShortestString_includeSign ( 1 << 2 ) |
Typedefs | |
| typedef enum nfu_status_e | nfu_status |
Functions | |
| int | nfu_setup (void) |
| double | nfu_getNAN (void) |
| int | nfu_isNAN (double d) |
| double | nfu_getInfinity (double sign) |
| const char * | nfu_statusMessage (nfu_status status) |
| void | nfu_setMemoryDebugMode (int mode) |
| void | nfu_printMsg (char const *fmt,...) |
| void | nfu_printErrorMsg (char const *fmt,...) |
| void * | nfu_malloc (size_t size) |
| void * | nfu_calloc (size_t size, size_t n) |
| void * | nfu_realloc (size_t size, void *old) |
| void * | nfu_free (void *p) |
| int32_t * | nfu_stringToListOfInt32s (statusMessageReporting *smr, char const *str, char sep, int64_t *numberConverted, char **endCharacter) |
| int | nfu_stringToInt32 (statusMessageReporting *smr, char const *str, char **endCharacter, int32_t *value) |
| double * | nfu_stringToListOfDoubles (statusMessageReporting *smr, char const *str, char sep, int64_t *numberConverted, char **endCharacter, int useSystem_strtod) |
| double | nf_strtod (char const *ptr, char **endCharacter) |
| char * | nf_floatToShortestString (double value, int significantDigits, int favorEFormBy, int flags) |
Variables | |
| int | nfu_SMR_libraryID |
| #define _USE_MATH_DEFINES |
Definition at line 13 of file nf_utilities.h.
| #define nf_floatToShortestString_includeSign ( 1 << 2 ) |
Definition at line 32 of file nf_utilities.h.
Referenced by nf_floatToShortestString().
| #define nf_floatToShortestString_keepPeriod ( 1 << 1 ) |
Definition at line 31 of file nf_utilities.h.
Referenced by nf_floatToShortestString().
| #define nf_floatToShortestString_trimZeros ( 1 << 0 ) |
Definition at line 30 of file nf_utilities.h.
Referenced by LUPI::Misc::doubleToShortestString(), and nf_floatToShortestString().
| typedef enum nfu_status_e nfu_status |
| enum nfu_status_e |
Definition at line 38 of file nf_utilities.h.
| char * nf_floatToShortestString | ( | double | value, |
| int | significantDigits, | ||
| int | favorEFormBy, | ||
| int | flags ) |
Definition at line 176 of file nf_stringToDoubles.c.
Referenced by LUPI::Misc::doubleToShortestString().
| double nf_strtod | ( | char const * | ptr, |
| char ** | endCharacter ) |
Definition at line 115 of file nf_stringToDoubles.c.
| void * nfu_calloc | ( | size_t | size, |
| size_t | n ) |
Definition at line 133 of file nf_utilities.c.
| void * nfu_free | ( | void * | p | ) |
Definition at line 153 of file nf_utilities.c.
Referenced by nf_Legendre_free(), nf_Legendre_new(), and nf_Legendre_release().
| double nfu_getInfinity | ( | double | sign | ) |
Definition at line 74 of file nf_utilities.c.
| double nfu_getNAN | ( | void | ) |
Definition at line 60 of file nf_utilities.c.
Referenced by ptwXY_div_ptwXY().
| int nfu_isNAN | ( | double | d | ) |
Definition at line 67 of file nf_utilities.c.
Referenced by ptwXY_div_ptwXY().
| void * nfu_malloc | ( | size_t | size | ) |
Definition at line 123 of file nf_utilities.c.
| void nfu_printErrorMsg | ( | char const * | fmt, |
| ... ) |
Definition at line 176 of file nf_utilities.c.
| void nfu_printMsg | ( | char const * | fmt, |
| ... ) |
Definition at line 164 of file nf_utilities.c.
| void * nfu_realloc | ( | size_t | size, |
| void * | old ) |
Definition at line 143 of file nf_utilities.c.
Referenced by nf_Legendre_reallocateCls().
| void nfu_setMemoryDebugMode | ( | int | mode | ) |
Definition at line 116 of file nf_utilities.c.
| int nfu_setup | ( | void | ) |
Definition at line 51 of file nf_utilities.c.
| const char * nfu_statusMessage | ( | nfu_status | status | ) |
Definition at line 82 of file nf_utilities.c.
| int nfu_stringToInt32 | ( | statusMessageReporting * | smr, |
| char const * | str, | ||
| char ** | endCharacter, | ||
| int32_t * | value ) |
Definition at line 126 of file nf_stringToInt32s.c.
| double * nfu_stringToListOfDoubles | ( | statusMessageReporting * | smr, |
| char const * | str, | ||
| char | sep, | ||
| int64_t * | numberConverted, | ||
| char ** | endCharacter, | ||
| int | useSystem_strtod ) |
Definition at line 26 of file nf_stringToDoubles.c.
Referenced by MCGIDI::convertACE_URR_probabilityTablesFromGIDI(), ptwX_fromString(), and ptwXY_fromString().
| int32_t * nfu_stringToListOfInt32s | ( | statusMessageReporting * | smr, |
| char const * | str, | ||
| char | sep, | ||
| int64_t * | numberConverted, | ||
| char ** | endCharacter ) |
Definition at line 27 of file nf_stringToInt32s.c.
|
extern |
Definition at line 46 of file nf_utilities.c.
Referenced by nf_Legendre_allocated(), nf_Legendre_clone(), nf_Legendre_evauluateAtMu(), nf_Legendre_from_ptwXY(), nf_Legendre_getCl(), nf_Legendre_initialize(), nf_Legendre_maxOrder(), nf_Legendre_normalize(), nf_Legendre_reallocateCls(), nf_Legendre_setCl(), nf_Legendre_to_ptwXY(), nfu_setup(), nfu_stringToInt32(), nfu_stringToListOfDoubles(), nfu_stringToListOfInt32s(), ptwX_abs(), ptwX_add_double(), ptwX_add_ptwX(), ptwX_ascendingOrder(), ptwX_clone(), ptwX_close(), ptwX_closesDifferenceInRange(), ptwX_compare(), ptwX_copy(), ptwX_countOccurrences(), ptwX_create(), ptwX_createLine(), ptwX_deletePoints(), ptwX_fromString(), ptwX_getPointAtIndex(), ptwX_initialize(), ptwX_insertPointsAtIndex(), ptwX_length(), ptwX_mul_double(), ptwX_neg(), ptwX_new(), ptwX_range(), ptwX_reallocatePoints(), ptwX_reverse(), ptwX_setData(), ptwX_setPointAtIndex(), ptwX_slice(), ptwX_slopeOffset(), ptwX_sort(), ptwX_sub_ptwX(), ptwX_unique(), ptwXY_abs(), ptwXY_add_double(), ptwXY_add_ptwXY(), ptwXY_appendXY(), ptwXY_applyFunction(), ptwXY_areDomainsMutual(), ptwXY_binary_ptwXY(), ptwXY_clear(), ptwXY_clip(), ptwXY_clone(), ptwXY_clone2(), ptwXY_cloneToInterpolation(), ptwXY_coalescePoints(), ptwXY_convolution(), ptwXY_copy(), ptwXY_copyPointsOnly(), ptwXY_copyToC_XY(), ptwXY_create(), ptwXY_createFrom_Xs_Ys(), ptwXY_createFromFunction(), ptwXY_createFromFunction2(), ptwXY_createGaussian(), ptwXY_createGaussianCenteredSigma1(), ptwXY_deletePoints(), ptwXY_div_doubleFrom(), ptwXY_div_fromDouble(), ptwXY_div_ptwXY(), ptwXY_domainMax(), ptwXY_domainMaxAndFrom(), ptwXY_domainMaxSlice(), ptwXY_domainMin(), ptwXY_domainMinAndFrom(), ptwXY_domainMinSlice(), ptwXY_domainSlice(), ptwXY_dullEdges(), ptwXY_equalProbableBins(), ptwXY_exp(), ptwXY_f_integrate(), ptwXY_flatInterpolationToLinear(), ptwXY_fromString(), ptwXY_fromUnitbase(), ptwXY_getLowerIndexBoundingX(), ptwXY_getNonOverflowLength(), ptwXY_getPointAtIndex(), ptwXY_getPointsAroundX(), ptwXY_getPointsAroundX_closeIsEqual(), ptwXY_getSlopeAtX(), ptwXY_getValueAtX(), ptwXY_getXArray(), ptwXY_getXYPairAtIndex(), ptwXY_groupOneFunction(), ptwXY_groupThreeFunctions(), ptwXY_groupTwoFunctions(), ptwXY_initialize(), ptwXY_integrate(), ptwXY_integrateDomain(), ptwXY_integrateDomainWithWeight_sqrt_x(), ptwXY_integrateDomainWithWeight_x(), ptwXY_integrateWithFunction(), ptwXY_integrateWithWeight_sqrt_x(), ptwXY_integrateWithWeight_x(), ptwXY_interpolatePoint(), ptwXY_intersectionWith_ptwX(), ptwXY_inverse(), ptwXY_length(), ptwXY_mapToXsAndAdd(), ptwXY_mergeClosePoints(), ptwXY_mergeFromXsAndYs(), ptwXY_mergeFromXYs(), ptwXY_mod(), ptwXY_mul2_ptwXY(), ptwXY_mul_double(), ptwXY_mul_ptwXY(), ptwXY_mutualifyDomains(), ptwXY_neg(), ptwXY_new(), ptwXY_normalize(), ptwXY_pow(), ptwXY_range(), ptwXY_rangeMax(), ptwXY_rangeMin(), ptwXY_reallocateOverflowPoints(), ptwXY_reallocatePoints(), ptwXY_runningIntegral(), ptwXY_scaleAndOffsetDomainWith_ptwXYs(), ptwXY_scaleOffsetXAndY(), ptwXY_setValueAtX(), ptwXY_setValueAtX_overrideIfClose(), ptwXY_setXYData(), ptwXY_setXYDataFromXsAndYs(), ptwXY_setXYPairAtIndex(), ptwXY_simpleCoalescePoints(), ptwXY_slice(), ptwXY_slopeOffset(), ptwXY_startIndex(), ptwXY_sub_doubleFrom(), ptwXY_sub_fromDouble(), ptwXY_sub_ptwXY(), ptwXY_thicken(), ptwXY_thin(), ptwXY_thinDomain(), ptwXY_toOtherInterpolation(), ptwXY_toUnitbase(), ptwXY_trim(), ptwXY_tweakDomainsToMutualify(), ptwXY_union(), ptwXY_unitbaseInterpolate(), ptwXY_valuesToC_XsAndYs(), ptwXY_valueTo_ptwXY(), and ptwXY_ysMappedToXs().