Psi4
Classes | Namespaces | Macros | Functions
memory_manager.h File Reference
#include <map>
#include <vector>
#include <string>

Go to the source code of this file.

Classes

struct  psi::AllocationEntry
 
class  psi::MemoryManager
 

Namespaces

 psi
 This is all defined in python.cc initialize.
 

Macros

#define allocate1(type, variable, size)   memory_manager->allocate(#type, variable, size, #variable, __FILE__, __LINE__);
 
#define release1(variable)   memory_manager->release_one(variable, __FILE__, __LINE__);
 
#define allocate2(type, variable, size1, size2)   memory_manager->allocate(#type, variable, size1, size2, #variable, __FILE__, __LINE__);
 
#define release2(variable)   memory_manager->release_two(variable, __FILE__, __LINE__);
 
#define allocate3(type, variable, size1, size2, size3)   memory_manager->allocate(#type, variable, size1, size2, size3, #variable, __FILE__, __LINE__);
 
#define release3(variable)   memory_manager->release_three(variable, __FILE__, __LINE__);
 

Functions

template<typename T >
double psi::type_to_MiB (size_t n)
 
double psi::bytes_to_MiB (size_t n)
 

Macro Definition Documentation

#define allocate1 (   type,
  variable,
  size 
)    memory_manager->allocate(#type, variable, size, #variable, __FILE__, __LINE__);
#define allocate2 (   type,
  variable,
  size1,
  size2 
)    memory_manager->allocate(#type, variable, size1, size2, #variable, __FILE__, __LINE__);
#define allocate3 (   type,
  variable,
  size1,
  size2,
  size3 
)    memory_manager->allocate(#type, variable, size1, size2, size3, #variable, __FILE__, __LINE__);
#define release1 (   variable)    memory_manager->release_one(variable, __FILE__, __LINE__);
#define release2 (   variable)    memory_manager->release_two(variable, __FILE__, __LINE__);
#define release3 (   variable)    memory_manager->release_three(variable, __FILE__, __LINE__);