3.2-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Loading...
Searching...
No Matches
valgrind.hh File Reference

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

#include <valgrind/memcheck.h>

Go to the source code of this file.

Description

Some templates to wrap the valgrind macros.

Namespaces

namespace  Valgrind

Functions

bool Valgrind::Running ()
 Returns whether the program is running under Valgrind or not.
template<class T>
bool Valgrind::CheckDefined (const T &value)
 Make valgrind complain if the object occupied by an object is undefined.
template<class T>
bool Valgrind::CheckDefined (const T *value, int size)
template<class T>
void Valgrind::SetUndefined (const T &value)
 Make the memory on which an object resides undefined.
template<class T>
void Valgrind::SetUndefined (const T *value, int size)
template<class T>
void Valgrind::SetDefined (const T &value)
 Make the memory on which an object resides defined.
template<class T>
void Valgrind::SetDefined (const T *value, int n)
template<class T>
void Valgrind::SetNoAccess (const T &value)
 Make valgrind complain if an object's memory is accessed.
template<class T>
void Valgrind::SetNoAccess (const T *value, int n)