#include <algorithm>
#include <string>
#include <map>
#include <cmath>
#include "message_error.h"
#include "constants.h"
Go to the source code of this file.
Functions | |
bool | approx (double a, double b, double epsilon=1e-5) |
bool | abs_approx (double a, double b, double epsilon=1e-5) |
int | intfloor (double arg) |
int | planck_nint (double arg) |
long | nlong (double arg) |
template<typename T> | |
T | weak_modulo (T v1, T v2) |
double | modulo (double v1, double v2) |
int | modulo (int v1, int v2) |
long | modulo (long v1, long v2) |
template<typename T> | |
T | sign (const T &signvalue) |
unsigned int | isqrt (unsigned int arg) |
double | safe_atan2 (double y, double x) |
template<typename T> | |
int | interpol_left (const T *begin, int len, const T &val) |
template<typename T> | |
int | interpol_nearest (const T *begin, int len, const T &val) |
bool | file_present (const std::string &filename) |
void | remove_file (const std::string &filename) |
void | planck_assert (bool testval, const std::string &msg) |
void | planck_assert (bool testval, const char *msg) |
void | assert_present (const std::string &filename) |
void | assert_not_present (const std::string &filename) |
std::string | trim (const std::string &orig) |
template<typename T> | |
std::string | dataToString (const T &x) |
std::string | intToString (int x, int width) |
template<typename T> | |
void | stringToData (const std::string &x, T &value) |
template<typename T> | |
T | stringToData (const std::string &x) |
void | parse_file (const std::string &filename, std::map< std::string, std::string > &dict) |
void | announce_progress (int now, int total) |
void | announce_progress (double now, double last, double total) |
void | announce (const std::string &name) |
void | module_startup (const std::string &name, int argc, const char **argv, int argc_expected, const std::string &argv_expected) |
int | healpix_repcount (int npix) |
Copyright (C) 2002, 2003, 2004 Max-Planck-Society
Reinhard Hell
Definition in file cxxutils.h.
|
Indicates progress by printing the percentage of now/total. A message is only printed if it has changed since now-1/total. The output is followed by a carriage return, not a newline. Definition at line 154 of file cxxutils.cc. |
|
Indicates progress by printing the percentage of now/total. A message is only printed if it has changed since last/total. The output is followed by a carriage return, not a newline. Definition at line 161 of file cxxutils.cc. |
|
Prints a banner containing name. Useful for displaying program names.
|
|
Prints a banner containing name and checks if argc==argc_expected. If not, a usage description is given and the program is terminated. Definition at line 180 of file cxxutils.cc. |
|
Returns an appropriate FITS repetition count for a map with npix pixels.
Definition at line 250 of file cxxutils.h. |