gio.h File Reference

Galois IO routines -*- C++ -*-. More...

#include <sstream>
#include <cerrno>

Go to the source code of this file.

Namespaces

namespace  Galois
 

Main Galois namespace.


namespace  Galois::Runtime
 

Internal Galois functionality - Use at your own risk.


namespace  Galois::Runtime::LL
 

Low-level, Galois-agnostic functionality.


Defines

#define GALOIS_SYS_ERROR(...)   do { Galois::Runtime::LL::gError(__FILE__, ":", __LINE__, ": ", strerror(errno), ": ", ##__VA_ARGS__); } while (0)
#define GALOIS_ERROR(...)   do { Galois::Runtime::LL::gError(__FILE__, ":", __LINE__, ": ", ##__VA_ARGS__); } while (0)
#define GALOIS_SYS_DIE(...)   do { Galois::Runtime::LL::gError(__FILE__, ":", __LINE__, ": ", strerror(errno), ": ", ##__VA_ARGS__); abort(); } while (0)
#define GALOIS_DIE(...)   do { Galois::Runtime::LL::gError(__FILE__, ":", __LINE__, ": ", ##__VA_ARGS__); abort(); } while (0)

Functions

void Galois::Runtime::LL::gPrintStr (const std::string &)
 Prints a string.
void Galois::Runtime::LL::gInfoStr (const std::string &)
 Prints an info string (for easy parsing).
void Galois::Runtime::LL::gWarnStr (const std::string &)
 Prints a warning string (for easy parsing).
void Galois::Runtime::LL::gDebugStr (const std::string &)
 Prints a debug string (for easy parsing).
void Galois::Runtime::LL::gErrorStr (const std::string &)
 Prints an error string (for easy parsing).
template<typename T >
bool Galois::Runtime::LL::toString (std::ostringstream &os, const T &val)
 Converts a sequence of things to a string.
template<typename... Args>
void Galois::Runtime::LL::gPrint (Args...args)
 Prints a sequence of things.
template<typename... Args>
void Galois::Runtime::LL::gInfo (Args...args)
 Prints an info string from a sequence of things.
template<typename... Args>
void Galois::Runtime::LL::gWarn (Args...args)
 Prints a warning string from a sequence of things.
template<typename... Args>
void Galois::Runtime::LL::gDebug (Args...args)
 Prints a debug string from a sequence of things; prints nothing if NDEBUG is defined.
template<typename... Args>
void Galois::Runtime::LL::gError (Args...args)
 Prints error message.
void Galois::Runtime::LL::gFlush ()

Detailed Description

Galois IO routines -*- C++ -*-.

License

Galois, a framework to exploit amorphous data-parallelism in irregular programs.

Copyright (C) 2012, The University of Texas at Austin. All rights reserved. UNIVERSITY EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES CONCERNING THIS SOFTWARE AND DOCUMENTATION, INCLUDING ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR ANY PARTICULAR PURPOSE, NON-INFRINGEMENT AND WARRANTIES OF PERFORMANCE, AND ANY WARRANTY THAT MIGHT OTHERWISE ARISE FROM COURSE OF DEALING OR USAGE OF TRADE. NO WARRANTY IS EITHER EXPRESS OR IMPLIED WITH RESPECT TO THE USE OF THE SOFTWARE OR DOCUMENTATION. Under no circumstances shall University be liable for incidental, special, indirect, direct or consequential damages or loss of profits, interruption of business, or related expenses which may arise from use of Software or Documentation, including but not limited to those resulting from defects in Software and/or Documentation, or loss or inaccuracy of data of any kind.

Description

IO support for galois. We use this to handle output redirection, and common formating issues.

Author:
Andrew Lenharth <andrewl@lenharth.org>

Define Documentation

#define GALOIS_DIE ( ...   )     do { Galois::Runtime::LL::gError(__FILE__, ":", __LINE__, ": ", ##__VA_ARGS__); abort(); } while (0)
#define GALOIS_ERROR ( ...   )     do { Galois::Runtime::LL::gError(__FILE__, ":", __LINE__, ": ", ##__VA_ARGS__); } while (0)
#define GALOIS_SYS_DIE ( ...   )     do { Galois::Runtime::LL::gError(__FILE__, ":", __LINE__, ": ", strerror(errno), ": ", ##__VA_ARGS__); abort(); } while (0)
#define GALOIS_SYS_ERROR ( ...   )     do { Galois::Runtime::LL::gError(__FILE__, ":", __LINE__, ": ", strerror(errno), ": ", ##__VA_ARGS__); } while (0)

Generated on 2 Nov 2013 for Galois by  doxygen 1.6.1