TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
Loading...
Searching...
No Matches
triqs::mc_tools::measure_aux

#include <triqs/mc_tools/mc_measure_aux_set.hpp>

Detailed Description

Type erasure class for auxiliary MC measures.

It takes any type that is callable and erases its type.

Any auxiliary MC measure must define the following method:

  • operator()(): Performs an auxiliary measurement.
Note
The object is passed and stored as a shared pointer. That means it can be used and shared among multiple measures.

Definition at line 44 of file mc_measure_aux_set.hpp.

Public Member Functions

template<typename T>
requires (std::invocable<T>)
 measure_aux (std::shared_ptr< T > const &m_ptr)
 Constructor takes an object that is callable and erases its type.
void operator() ()
 Function call operator performs the auxiliary measurement.

Constructor & Destructor Documentation

◆ measure_aux()

template<typename T>
requires (std::invocable<T>)
triqs::mc_tools::measure_aux::measure_aux ( std::shared_ptr< T > const & m_ptr)
inline

Constructor takes an object that is callable and erases its type.

Template Parameters
TOriginal type of the auxiliary MC measure object.
Parameters
m_ptrShared pointer to the auxiliary MC measure object.

Definition at line 71 of file mc_measure_aux_set.hpp.


The documentation for this class was generated from the following file: