SCIP++ refs/heads/main
 
Loading...
Searching...
No Matches
statistics.hpp
1#pragma once
2
3#include <functional>
4
5// forward declare
6struct Scip;
7
13namespace scippp::statistics {
14
20template <typename T>
21struct Statistic {
23 using fptr = T (*)(Scip*);
32 T operator()(Scip* s) const
33 {
34 return m_PLAIN_CALL(s);
35 }
36};
37
38}
Parameters to access statistics with.
Storage for a function pointer.
Definition: statistics.hpp:21
T(*)(Scip *) fptr
Type of the function pointer to store the original call to SCIP.
Definition: statistics.hpp:23
T operator()(Scip *s) const
Returns the value of the statistics.
Definition: statistics.hpp:32
const fptr m_PLAIN_CALL
Function pointer to the original SCIP call.
Definition: statistics.hpp:25