aGrUM  0.20.3
a C++ library for (probabilistic) graphical models
gum::UTGenerator Class Referenceabstract

Abstract class for generating Utility Tables. More...

#include <UTGenerator.h>

+ Inheritance diagram for gum::UTGenerator:

Public Member Functions

Constructors / Destructor
 UTGenerator ()
 Default constructor. More...
 
virtual ~UTGenerator ()
 Destructor. More...
 
UT generation methods
virtual void generateUT (const Idx &varId, const Potential< float > &ut)=0
 Generates a UT using floats. More...
 
virtual void generateUT (const Idx &varId, const Potential< double > &ut)=0
 Generates a UT using doubles. More...
 

Detailed Description

Abstract class for generating Utility Tables.

This abstract class is an implementation of the strategy pattern to help changing UT generation policies for the InfluenceDiagramGenerator class.

Definition at line 43 of file UTGenerator.h.

Constructor & Destructor Documentation

◆ UTGenerator()

gum::UTGenerator::UTGenerator ( )

Default constructor.

Definition at line 34 of file UTGenerator.cpp.

References gum::Set< Key, Alloc >::emplace().

34  {
35  GUM_CONSTRUCTOR(UTGenerator);
36  ;
37  }
UTGenerator()
Default constructor.
Definition: UTGenerator.cpp:34
+ Here is the call graph for this function:

◆ ~UTGenerator()

gum::UTGenerator::~UTGenerator ( )
virtual

Destructor.

Definition at line 40 of file UTGenerator.cpp.

References gum::Set< Key, Alloc >::emplace().

40  {
41  GUM_DESTRUCTOR(UTGenerator);
42  ;
43  }
UTGenerator()
Default constructor.
Definition: UTGenerator.cpp:34
+ Here is the call graph for this function:

Member Function Documentation

◆ generateUT() [1/2]

virtual void gum::UTGenerator::generateUT ( const Idx varId,
const Potential< float > &  ut 
)
pure virtual

Generates a UT using floats.

Parameters
varIdThe variable id of the UT owner.
utA reference on the UT to fill.

Implemented in gum::SimpleUTGenerator.

◆ generateUT() [2/2]

virtual void gum::UTGenerator::generateUT ( const Idx varId,
const Potential< double > &  ut 
)
pure virtual

Generates a UT using doubles.

Parameters
varIdThe variable id of the UT owner.
utA reference on the UT to fill.

Implemented in gum::SimpleUTGenerator.


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