STIR
6.2.0
|
basic configuration include file More...
#include "stir/config.h"
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <cassert>
#include <boost/math/constants/constants.hpp>
Go to the source code of this file.
Namespaces | |
stir | |
Namespace for the STIR library (and some/most of its applications) | |
Macros | |
#define | START_NAMESPACE_STIR |
#define | END_NAMESPACE_STIR } |
#define | USING_NAMESPACE_STIR using namespace stir; |
#define | __OS_UNIX__ |
#define | _PI boost::math::constants::pi<double>() |
The constant pi to high precision. More... | |
Functions | |
template<class NUMBER > | |
NUMBER | stir::square (const NUMBER &x) |
returns the square of a number, templated. More... | |
Variables | |
constexpr double | stir::speed_of_light_in_mm_per_ps = 0.299792458 |
Define the speed of light in mm / ps. | |
constexpr double | stir::speed_of_light_in_mm_per_ps_div2 = speed_of_light_in_mm_per_ps * 0.5 |
This ratio is used often. | |
basic configuration include file
This include file defines some commonly used macros, templates and functions in an attempt to smooth out some system dependencies. It also defines some functions which are used very often.
macros for namespace support: #defines
START_NAMESPACE_STIR
etc.
"#ifdef __OS_WIN__ ... #elif ... #endif"
Possible values are OS_WIN, OS_MAC, OS_VAX, OS_UNIX The OS_UNIX case has 'subbranches'. At the moment we attempt to find out on OS_AIX, OS_SUN, OS_OSF, OS_LINUX. (If the attempts fail to determine the correct OS, you can pass the correct value as a preprocessor definition to the compiler) #includes
cstdio, cstdlib, cstring, cmath, cassert
const double _PI
inline template <class NUMBER> NUMBER square(const NUMBER &x)
stir/config.h
sets various preprocessor defines (generated from STIRConfig.in)