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

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

#include <actionSet.h>

Operator()

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

Detailed Description

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

<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_ELEMENT>
const GUM_ELEMENT & gum::ArgumentMaximisesAction< GUM_ELEMENT >::operator() ( const GUM_ELEMENT & x,
const GUM_ELEMENT & y ) const

Definition at line 50 of file actionSet_tpl.h.

51 {
52 if (x > y) { return x; }
53 if (x < y) { return y; }
54
55 _temp_ = x;
56 _temp_ += y;
57 return _temp_;
58 }
<agrum/FMDP/planning/actionSet.h>
Definition actionSet.h:76

References _temp_.

Member Data Documentation

◆ _temp_

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

Definition at line 85 of file actionSet.h.

Referenced by operator()().


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