Valgrind.hpp File Reference

Some templates to wrap the valgrind client request macros. More...

Include dependency graph for Valgrind.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Valgrind
 

Functions

bool Valgrind::IsRunning ()
 Returns whether the program is running under Valgrind or not. More...
 
template<class T >
bool Valgrind::CheckDefined (const T &value OPM_UNUSED)
 Make valgrind complain if any of the memory occupied by an object is undefined. More...
 
template<class T >
bool Valgrind::CheckDefined (const T *value OPM_UNUSED, int size OPM_UNUSED)
 Make valgrind complain if any of the the memory occupied by a C-style array objects is undefined. More...
 
template<class T >
void Valgrind::SetUndefined (const T &value OPM_UNUSED)
 Make the memory on which an object resides undefined in valgrind runs. More...
 
template<class T >
void Valgrind::SetUndefined (const T *value OPM_UNUSED, int size OPM_UNUSED)
 Make the memory on which an array of object resides undefined in valgrind runs. More...
 
template<class T >
void Valgrind::SetDefined (const T &value OPM_UNUSED)
 Make the memory on which an object resides defined. More...
 
template<class T >
void Valgrind::SetDefined (const T *value OPM_UNUSED, int n OPM_UNUSED)
 Make the memory on which a C-style array of objects resides defined. More...
 
template<class T >
void Valgrind::SetNoAccess (const T &value OPM_UNUSED)
 Make valgrind complain if an object's memory is accessed. More...
 
template<class T >
void Valgrind::SetNoAccess (const T *value OPM_UNUSED, int size OPM_UNUSED)
 Make valgrind complain if the memory of a C-style array of objects is accessed. More...
 

Detailed Description

Some templates to wrap the valgrind client request macros.