Valgrind.hpp File Reference

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

Go to the source code of this file.

Namespaces

namespace  Opm
 
namespace  Opm::Valgrind
 

Functions

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