xerus
a general purpose tensor library
xerus::misc::internal Namespace Reference

Namespace for function and classes designated only for internal use. More...

Namespaces

 buffer
 

Classes

struct  bfdResolver
 class to load symbols and resolve address pointers More...
 
struct  LogFlag
 

Enumerations

enum  { NOT_LOGGING = 0, LOGGING_FULL = 2, LOGGING_EXCEPTION = 3 }
 

Functions

static void __attribute__ ((constructor)) initTime()
 
std::ostream & get_fileStream ()
 
constexpr uint64_t log_namehash (const char *x)
 Hashes a given c-string using the FNV-1a standard hash. More...
 
void log_timestamp (std::ostream &_out, const char *_file, int _line, const char *_lvl)
 
void log_timestamp (std::ostream &_out, const char *_lvl)
 
void log_timestamp (std::ostream &_out)
 
template<size_t n = 0, typename... Tp, typename std::enable_if< n+1==sizeof...(Tp), int >::type = 0>
void print (std::ostream &_out, const std::tuple< Tp... > &t)
 

Variables

std::string logFilePrefix
 
static const auto LOGGING_ON_ERROR = NOT_LOGGING
 
std::mutex namedLoggerMutex
 
std::chrono::system_clock::time_point programStartTime
 
bool silenced = false
 

Detailed Description

Namespace for function and classes designated only for internal use.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
NOT_LOGGING 
LOGGING_FULL 
LOGGING_EXCEPTION 

Definition at line 67 of file namedLogger.h.

Function Documentation

◆ __attribute__()

static void xerus::misc::internal::__attribute__ ( (constructor)  )
static

Definition at line 42 of file namedLogger.cpp.

◆ get_fileStream()

std::ostream & xerus::misc::internal::get_fileStream ( )

Definition at line 81 of file namedLogger.cpp.

◆ log_namehash()

constexpr uint64_t xerus::misc::internal::log_namehash ( const char *  x)

Hashes a given c-string using the FNV-1a standard hash.

This is used eg. to use strings as template arguments.

Definition at line 49 of file namedLogger.h.

◆ log_timestamp() [1/3]

void xerus::misc::internal::log_timestamp ( std::ostream &  _out,
const char *  _file,
int  _line,
const char *  _lvl 
)

Definition at line 67 of file namedLogger.cpp.

◆ log_timestamp() [2/3]

void xerus::misc::internal::log_timestamp ( std::ostream &  _out,
const char *  _lvl 
)

Definition at line 75 of file namedLogger.cpp.

◆ log_timestamp() [3/3]

void xerus::misc::internal::log_timestamp ( std::ostream &  _out)

Definition at line 46 of file namedLogger.cpp.

◆ print()

template<size_t n = 0, typename... Tp, typename std::enable_if< n+1==sizeof...(Tp), int >::type = 0>
void xerus::misc::internal::print ( std::ostream &  _out,
const std::tuple< Tp... > &  t 
)
inline

Definition at line 36 of file containerOutput.h.

Variable Documentation

◆ logFilePrefix

std::string xerus::misc::internal::logFilePrefix

Definition at line 39 of file namedLogger.cpp.

◆ LOGGING_ON_ERROR

const auto xerus::misc::internal::LOGGING_ON_ERROR = NOT_LOGGING
static

Definition at line 72 of file namedLogger.h.

◆ namedLoggerMutex

std::mutex xerus::misc::internal::namedLoggerMutex

Definition at line 38 of file namedLogger.cpp.

◆ programStartTime

std::chrono::system_clock::time_point xerus::misc::internal::programStartTime

Definition at line 41 of file namedLogger.cpp.

◆ silenced

bool xerus::misc::internal::silenced = false

Definition at line 40 of file namedLogger.cpp.