AIToolbox
A library that offers tools for AI problem solving.
AIToolbox::Factored::Bandit::UpdateGraph< Maximizer > Struct Template Reference

This class is the public interface for updating the input graph with the input data in generic code that uses the maximizers. More...

#include <AIToolbox/Factored/Bandit/Algorithms/Utils/GraphUtils.hpp>

Public Member Functions

template<typename Data , typename... Args>
void operator() (typename Maximizer::Graph &graph, const Data &d, Args &&...args)
 

Detailed Description

template<typename Maximizer>
struct AIToolbox::Factored::Bandit::UpdateGraph< Maximizer >

This class is the public interface for updating the input graph with the input data in generic code that uses the maximizers.

This functor takes as input a graph that has been created via the MakeGraph functor. It then copies the input Data to the appropriate factors of the graph.

This functor can be used multiple times on the same graph. A graph will in general only need to be constructed once, but can be updated infinitely. With some Maximizers this can save a lot of work.

Template Parameters
MaximizerThe type of the maximizer to construct a graph for.

Member Function Documentation

◆ operator()()

template<typename Maximizer >
template<typename Data , typename... Args>
void AIToolbox::Factored::Bandit::UpdateGraph< Maximizer >::operator() ( typename Maximizer::Graph &  graph,
const Data &  d,
Args &&...  args 
)
inline

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