MPQC 3.0.0-alpha
Loading...
Searching...
No Matches
mpqc.Core.Util

Miscellaneous utilities More...

Topics

 Profile
 Profile module is a set of macros to measure time spent in a particular scope on the fly.
 

Classes

struct  mpqc::Exception
 MPQC exception class. More...
 
struct  mpqc::static_mutex< T >
 Static mutex factory. More...
 
struct  mpqc::mutex
 Static mutex instances. More...
 
struct  mpqc::cstring
 cstring-like object to cast a value to const char*< > string. More...
 

Macros

#define MPQC_DEBUG(...)
 Debug/print a printf-formatted statement with file:line prepended.
 
#define MPQC_EXCEPTION(...)
 Constructs mpqc::Exception with file, line information and an optional printf-style format and arguments.
 

Functions

template<typename T >
std::string mpqc::string_cast (const T &value)
 cast type T to string
 

Variables

static boost::mutex mpqc::static_mutex< T >::mutex
 
static int64_t mpqc::static_mutex< T >::lock_count = int64_t(0)
 

Detailed Description

Miscellaneous utilities

Macro Definition Documentation

◆ MPQC_DEBUG

#define MPQC_DEBUG ( ...)
Value:
mpqc::debug(__FILE__, __LINE__, __VA_ARGS__)

Debug/print a printf-formatted statement with file:line prepended.

MPQC_DEBUG(); // print only file:line information
MPQC_DEBUG("(%i,%i) = %f\n", i, j, v(i,j));
#define MPQC_DEBUG(...)
Debug/print a printf-formatted statement with file:line prepended.
Definition debug.hpp:39

◆ MPQC_EXCEPTION

#define MPQC_EXCEPTION ( ...)
Value:
mpqc::Exception(__FILE__, __LINE__, __VA_ARGS__)
MPQC exception class.
Definition exception.hpp:20

Constructs mpqc::Exception with file, line information and an optional printf-style format and arguments.

Referenced by mpqc::ci::direct(), and mpqc::ci::CI< CIFunctor, Index >::sort().


Generated at Wed Sep 25 2024 02:45:31 for MPQC 3.0.0-alpha using the documentation package Doxygen 1.12.0.