aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
gum::ArgumentMaximisesAction< GUM_SCALAR > Struct Template Reference

<agrum/FMDP/planning/actionSet.h> More...

#include <actionSet.h>

Operator()

GUM_SCALAR _temp_
const GUM_SCALAR & operator() (const GUM_SCALAR &x, const GUM_SCALAR &y) const

Detailed Description

template<typename GUM_SCALAR>
struct gum::ArgumentMaximisesAction< GUM_SCALAR >

<agrum/FMDP/planning/actionSet.h>

Argument Maximization function object class

Returns the set that has the maximal value between its two arguments sets

Definition at line 76 of file actionSet.h.

Member Function Documentation

◆ operator()()

template<typename GUM_SCALAR>
const GUM_SCALAR & gum::ArgumentMaximisesAction< GUM_SCALAR >::operator() ( const GUM_SCALAR & x,
const GUM_SCALAR & y ) const
inline

Definition at line 82 of file actionSet.h.

82 {
83 if (x > y) { return x; }
84 if (x < y) { return y; }
85
86 _temp_ = x;
87 _temp_ += y;
88 return _temp_;
89 }
<agrum/FMDP/planning/actionSet.h>
Definition actionSet.h:76

References _temp_.

Member Data Documentation

◆ _temp_

template<typename GUM_SCALAR>
GUM_SCALAR gum::ArgumentMaximisesAction< GUM_SCALAR >::_temp_
mutableprivate

Definition at line 92 of file actionSet.h.

Referenced by operator()().


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