Galois
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
gIO.h File Reference
#include <sstream>
#include <cerrno>
#include <cstdlib>
#include <string.h>
#include "galois/config.h"

Go to the source code of this file.

Classes

struct  galois::debug< ENABLE >
 
struct  galois::debug< 0 >
 

Namespaces

 galois
 The Galois namespace containing all Galois structures and functions.
 

Macros

#define GALOIS_SYS_DIE(...)
 
#define GALOIS_DIE(...)
 
#define GALOIS_ASSERT(cond,...)
 Like assert but unconditionally executed. More...
 

Functions

void galois::gPrintStr (const std::string &)
 Prints a string. More...
 
void galois::gInfoStr (const std::string &)
 Prints an info string (for easy parsing) More...
 
void galois::gWarnStr (const std::string &)
 Prints a warning string (for easy parsing) More...
 
void galois::gDebugStr (const std::string &)
 Prints a debug string (for easy parsing) More...
 
void galois::gErrorStr (const std::string &)
 Prints an error string (for easy parsing) More...
 
template<typename... Args>
void galois::gPrint (Args &&...args)
 Prints a sequence of things. More...
 
template<typename... Args>
void galois::gInfo (Args &&...args)
 Prints an info string from a sequence of things. More...
 
template<typename... Args>
void galois::gWarn (Args &&...args)
 Prints a warning string from a sequence of things. More...
 
template<typename... Args>
void galois::gDebug (Args &&...GALOIS_USED_ONLY_IN_DEBUG(args))
 Prints a debug string from a sequence of things; prints nothing if NDEBUG is defined. More...
 
template<typename... Args>
void galois::gError (Args &&...args)
 Prints error message. More...
 
void galois::gFlush ()
 

Macro Definition Documentation

#define GALOIS_ASSERT (   cond,
  ... 
)
Value:
do { \
bool b = (cond); \
if (!b) { \
galois::gError(__FILE__, ":", __LINE__, ": assertion failed: ", #cond, \
" ", ##__VA_ARGS__); \
abort(); \
} \
} while (0)
void gError(Args &&...args)
Prints error message.
Definition: gIO.h:82

Like assert but unconditionally executed.

#define GALOIS_DIE (   ...)
Value:
do { \
galois::gError(__FILE__, ":", __LINE__, ": ", ##__VA_ARGS__); \
abort(); \
} while (0)
void gError(Args &&...args)
Prints error message.
Definition: gIO.h:82
#define GALOIS_SYS_DIE (   ...)
Value:
do { \
galois::gError(__FILE__, ":", __LINE__, ": ", strerror(errno), ": ", \
##__VA_ARGS__); \
abort(); \
} while (0)
void gError(Args &&...args)
Prints error message.
Definition: gIO.h:82