SCIP++ refs/heads/main
 
Loading...
Searching...
No Matches
scippp::statistics::Statistic< T > Struct Template Reference

Storage for a function pointer. More...

#include <statistics.hpp>

Public Types

using fptr = T(*)(Scip *)
 Type of the function pointer to store the original call to SCIP.
 

Public Member Functions

operator() (Scip *s) const
 Returns the value of the statistics.
 

Public Attributes

const fptr m_PLAIN_CALL
 Function pointer to the original SCIP call.
 

Detailed Description

template<typename T>
struct scippp::statistics::Statistic< T >

Storage for a function pointer.

Since
1.2.0
Template Parameters
TType of the statistics value.

Definition at line 21 of file statistics.hpp.

Member Typedef Documentation

◆ fptr

template<typename T >
using scippp::statistics::Statistic< T >::fptr = T (*)(Scip*)

Type of the function pointer to store the original call to SCIP.

Definition at line 23 of file statistics.hpp.

Member Function Documentation

◆ operator()()

template<typename T >
T scippp::statistics::Statistic< T >::operator() ( Scip *  s) const
inline

Returns the value of the statistics.

Parameters
sRaw pointer to a C-SCIP object.
Returns
Value that the original call stored in the pointer returns.

Definition at line 32 of file statistics.hpp.

References scippp::statistics::Statistic< T >::m_PLAIN_CALL.

Member Data Documentation

◆ m_PLAIN_CALL

template<typename T >
const fptr scippp::statistics::Statistic< T >::m_PLAIN_CALL

Function pointer to the original SCIP call.

Definition at line 25 of file statistics.hpp.


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