aGrUM 2.3.2
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.
virtual ~UTGenerator ()
 Destructor.
UT generation methods
virtual void generateUT (const Idx &varId, const Tensor< float > &ut)=0
 Generates a UT using floats.
virtual void generateUT (const Idx &varId, const Tensor< double > &ut)=0
 Generates a UT using doubles.

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 63 of file UTGenerator.h.

Constructor & Destructor Documentation

◆ UTGenerator()

gum::UTGenerator::UTGenerator ( )

Default constructor.

Definition at line 54 of file UTGenerator.cpp.

54 {
55 GUM_CONSTRUCTOR(UTGenerator);
56 ;
57 }
UTGenerator()
Default constructor.

References UTGenerator().

Referenced by UTGenerator(), and ~UTGenerator().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~UTGenerator()

gum::UTGenerator::~UTGenerator ( )
virtual

Destructor.

Definition at line 60 of file UTGenerator.cpp.

60 {
61 GUM_DESTRUCTOR(UTGenerator);
62 ;
63 }

References UTGenerator().

Here is the call graph for this function:

Member Function Documentation

◆ generateUT() [1/2]

virtual void gum::UTGenerator::generateUT ( const Idx & varId,
const Tensor< 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.

◆ generateUT() [2/2]

virtual void gum::UTGenerator::generateUT ( const Idx & varId,
const Tensor< 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.


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