DMRITool
v0.1.1-139-g860d86b4
Diffusion MRI Tool
|
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <string>
#include "utlSTDHeaders.h"
#include "utlCore11.h"
Go to the source code of this file.
Namespaces | |
utl | |
Macros | |
#define | __UTL_BOLD(str) str |
#define | __UTL_DEBUG_STRING "Debug" |
#define | __UTL_ERROR_STRING "Error" |
#define | __UTL_EXPSTR(str) str |
#define | __UTL_FATAL_STRING "Fatal" |
#define | __utl_LOCATION__ __FUNCTION__ |
#define | __UTL_LOG_STRING "Log" |
#define | __UTL_Print_LOCATION "In "<< __UTL_BOLD("File") << ": " <<__FILE__<< ", "<<__UTL_BOLD("Line")<<": " << __LINE__ << ", "<<__UTL_BOLD("Function")<<": " << __utl_LOCATION__ << "\n" |
#define | __UTL_WARNING_STRING "Warning" |
#define | __utlConditionFailPrint(cond) __UTL_Print_LOCATION <<__UTL_BOLD("Expression")<<": '" << __UTL_EXPSTR(#cond) << "' failed. " << "\n" |
#define | __utlConditionSucceedPrint(cond) __UTL_Print_LOCATION <<__UTL_BOLD("Expression")<<": '" << __UTL_EXPSTR(#cond) << "' satisfied. " << "\n" |
#define | M_EPS 1e-9 |
#define | M_PI 3.14159265358979323846264338328 |
#define | ONE_OVER_4_PI_2 0.025330295910584442860969865802431910 |
#define | PrintEnum1(cond, var, val1, os) |
#define | PrintEnum2(cond, var, val1, val2, os) |
#define | PrintEnum3(cond, var, val1, val2, val3, os) |
#define | PrintEnum4(cond, var, val1, val2, val3, val4, os) |
#define | PrintEnum5(cond, var, val1, val2, val3, val4, val5, os) |
#define | PrintEnum6(cond, var, val1, val2, val3, val4, val5, val6, os) |
#define | PrintVar(cond, os, ...) |
#define | PrintVar1(cond, var, os) |
#define | PrintVar2(cond, var1, var2, os) |
#define | PrintVar3(cond, var1, var2, var3, os) |
#define | PrintVar4(cond, var1, var2, var3, var4, os) |
#define | PrintVar5(cond, var1, var2, var3, var4, var5, os) |
#define | PrintVar6(cond, var1, var2, var3, var4, var5, var6, os) |
#define | UTL_ALWAYS_INLINE inline __attribute__((always_inline)) |
#define | UTL_COMMA , |
#define | UTL_OS 0 |
#define | utlAbort(expout) do { std::cerr << expout <<"\n" << std::flush; abort(); } while(0) |
#define | utlArraySize(array) (sizeof(__utlArraySizeHelper(array))) |
#define | utlAssert(cond, expout) |
#define | utlDebug(cond, expout) |
#define | utlException(cond, expout) |
#define | utlGetMacro(name, type) |
#define | utlGlobalAssert(cond, expout) |
#define | utlGlobalException(cond, expout) |
#define | utlGlobalWarning(cond, expout) utlOSGlobalWarning(cond,expout,std::cout) |
#define | utlLog(expr) utlVLogOS_IF(true, 0, std::cout << expr) |
#define | utlLog_IF(cond, expr) utlVLogOS_IF(cond, 0, std::cout << expr) |
#define | utlLogOS(os) utlVLogOS_IF(true, 0, os) |
#define | utlLogOS_IF(cond, os) utlVLogOS_IF(cond, 0, os) |
#define | utlLogOSVar(os, ...) utlVLogOSVar_IF(true, 0, os, __VA_ARGS__) |
#define | utlLogOSVar_IF(cond, os, ...) utlVLogOSVar_IF(cond, 0, os, __VA_ARGS__) |
#define | utlLogVar(...) utlVLogOSVar_IF(true, 0, std::cout, __VA_ARGS__) |
#define | utlLogVar_IF(cond, ...) utlVLogOSVar_IF(cond, 0, std::cout, __VA_ARGS__) |
#define | utlNumberOfArgs(...) utl::GetNumberOfArgs(__VA_ARGS__) |
#define | utlOSGlobalWarning(cond, expout, os) |
#define | utlOSPrintVar(cond, os, ...) |
#define | utlOSPrintVar1(cond, var) |
#define | utlOSPrintVar2(cond, var1, var2) |
#define | utlOSPrintVar3(cond, var1, var2, var3) |
#define | utlOSPrintVar4(cond, var1, var2, var3, var4) |
#define | utlOSPrintVar5(cond, var1, var2, var3, var4, var5) |
#define | utlOSPrintVar6(cond, var1, var2, var3, var4, var5, var6) |
#define | utlOSShowPosition(cond, os) |
#define | utlOSWarning(cond, expout, os) |
#define | utlPrintVar(cond, ...) |
#define | utlPrintVar1(cond, var) |
#define | utlPrintVar2(cond, var1, var2) |
#define | utlPrintVar3(cond, var1, var2, var3) |
#define | utlPrintVar4(cond, var1, var2, var3, var4) |
#define | utlPrintVar5(cond, var1, var2, var3, var4, var5) |
#define | utlPrintVar6(cond, var1, var2, var3, var4, var5, var6) |
#define | utlSAAssert(expr) utlSAGlobalAssert(true) |
#define | utlSAException(expr) utlSAGlobalException(false) |
#define | utlSAGlobalAssert(expr) |
#define | utlSAGlobalException(expr) |
#define | utlSAGlobalPrint utlSAGlobalPrintIf("") |
#define | utlSAGlobalPrintIf(expr) |
#define | utlSAGlobalWarning(expr) |
#define | utlSAPrint utlSAPrintIf("") |
#define | utlSAPrintIf(expr) utlSAGlobalPrintIf(false) |
#define | utlSASetLog(log) Assert::set_log(log) |
#define | utlSAWarning(expr) utlSAGlobalWarning(false) |
#define | utlSetGetMacro(name, type) |
#define | utlSetMacro(name, type) |
#define | utlShowPosition(cond) |
#define | utlVLog(level, expr) utlVLogOS_IF(true, level, std::cout << expr) |
#define | utlVLog_IF(cond, level, expr) utlVLogOS_IF(cond, level, std::cout << expr) |
#define | utlVLogOS(level, os) utlVLogOS_IF(true, level, os) |
#define | utlVLogOS_IF(cond, level, os) |
#define | utlVLogOSPosition_IF(cond, level, os) |
#define | utlVLogOSVar(level, os, ...) utlVLogOSVar_IF(true, level, os, __VA_ARGS__) |
#define | utlVLogOSVar_IF(cond, level, os, ...) |
#define | utlVLogPosition(level) utlVLogOSPosition_IF(true, level, std::cout) |
#define | utlVLogVar(level, ...) utlVLogOSVar_IF(true, level, std::cout, __VA_ARGS__) |
#define | utlVLogVar_IF(cond, level, ...) utlVLogOSVar_IF(cond, level, std::cout, __VA_ARGS__) |
#define | utlWarning(cond, expout) |
Enumerations | |
enum | { COLOR_NORMAL =0, COLOR_BOLD, COLOR_BLACK, COLOR_WHITE, COLOR_PURPLE, COLOR_RED, COLOR_GREEN, COLOR_YELLOW, COLOR_BLUE, COLOR_CYAN } |
enum | { ROW_MAJOR =0, COLUMN_MAJOR } |
enum | { LOG_MUTE =0, LOG_NORMAL =1, LOG_DEBUG =2, LOG_LARGE =3, LOG_ALL =100000000 } |
Functions | |
template<typename T , vcl_size_t N> | |
char(& | __utlArraySizeHelper (T(&array)[N]))[N] |
template<typename T , vcl_size_t N> | |
char(& | __utlArraySizeHelper (const T(&array)[N]))[N] |
std::string | utl::GetColoredString (const std::string &str, const int color) |
bool | utl::IsLogAll (const int level=utl::LogLevel) |
bool | utl::IsLogDebug (const int level=utl::LogLevel) |
bool | utl::IsLogLarge (const int level=utl::LogLevel) |
bool | utl::IsLogMute (const int level=utl::LogLevel) |
bool | utl::IsLogNormal (const int level=utl::LogLevel) |
Variables | |
static int | utl::LogLevel =LOG_NORMAL |
macros for utlCore
Definition in file utlCoreMacro.h.