All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
Public Member Functions | List of all members
paal::local_search::conditional_gain_adaptor< Gain, Condition > Struct Template Reference

if the condition is not fulfilled this gain adaptor returns 0 More...

#include <custom_components.hpp>

Public Member Functions

 conditional_gain_adaptor (Gain gain=Gain(), Condition cond=Condition())
 constructor More...
 
template<typename... Args>
auto operator() (Args &&...args) -> decltype(std::declval< Gain >()(std::forward< Args >(args)...))
 

Detailed Description

template<typename Gain = utils::return_one_functor, typename Condition = utils::always_true>
struct paal::local_search::conditional_gain_adaptor< Gain, Condition >

if the condition is not fulfilled this gain adaptor returns 0

Template Parameters
Gain
Condition

Definition at line 36 of file custom_components.hpp.

Constructor & Destructor Documentation

template<typename Gain = utils::return_one_functor, typename Condition = utils::always_true>
paal::local_search::conditional_gain_adaptor< Gain, Condition >::conditional_gain_adaptor ( Gain  gain = Gain(),
Condition  cond = Condition() 
)
inline

constructor

Parameters
gain
cond

Definition at line 44 of file custom_components.hpp.

Member Function Documentation

template<typename Gain = utils::return_one_functor, typename Condition = utils::always_true>
template<typename... Args>
auto paal::local_search::conditional_gain_adaptor< Gain, Condition >::operator() ( Args &&...  args) -> decltype(std::declval<Gain>()(std::forward<Args>(args)...))
inline
Template Parameters
Argsto be forwarded
Returns

Definition at line 55 of file custom_components.hpp.


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