Mantid
Loading...
Searching...
No Matches
Classes | Namespaces | Functions | Variables
MockMemory.h File Reference
#include <cstddef>

Go to the source code of this file.

Classes

struct  Mantid::TestMemory::MockMemory
 Mock the availMem function with RAII. More...
 

Namespaces

namespace  Mantid
 Helper class which provides the Collimation Length for SANS instruments.
 
namespace  Mantid::TestMemory
 

Functions

void Mantid::TestMemory::disable_mem_override ()
 
void Mantid::TestMemory::enable_mem_override (std::size_t value=g_default_value)
 

Variables

constexpr std::size_t Mantid::TestMemory::g_default_value {12}
 
constexpr std::size_t Mantid::TestMemory::g_fallback_bin_count {static_cast<std::size_t>(1e12)}
 Fallback bin count on non-Linux platforms where the memory mock is unavailable; large enough to reliably exhaust any real system's available memory.