aGrUM  0.20.3
a C++ library for (probabilistic) graphical models
gum::prm::PRMGenerator< GUM_SCALAR > Class Template Referenceabstract

This class is the base class to all PRM generators. More...

#include <agrum/PRM/generator/PRMGenerator.h>

+ Inheritance diagram for gum::prm::PRMGenerator< GUM_SCALAR >:
+ Collaboration diagram for gum::prm::PRMGenerator< GUM_SCALAR >:

Public Member Functions

Constructors and destructor.
 PRMGenerator ()
 Default constructor. More...
 
 PRMGenerator (const PRMGenerator &source)
 Copy constructor. More...
 
virtual ~PRMGenerator ()
 Destructor. More...
 
void setNameGenerator (const NameGenerator &name_gen)
 Getters and setters. More...
 
const NameGeneratorgetNameGenerator () const
 Returns the NameGenerator used by this generator. More...
 
virtual PRM< GUM_SCALAR > * generate ()=0
 Proceeds with the generation of the PRM. More...
 

Protected Attributes

NameGenerator name_gen_
 The name generator used by this class. More...
 

Detailed Description

template<typename GUM_SCALAR>
class gum::prm::PRMGenerator< GUM_SCALAR >

This class is the base class to all PRM generators.

Definition at line 48 of file PRMGenerator.h.

Constructor & Destructor Documentation

◆ PRMGenerator() [1/2]

template<typename GUM_SCALAR >
INLINE gum::prm::PRMGenerator< GUM_SCALAR >::PRMGenerator ( )

Default constructor.

Definition at line 34 of file PRMGenerator_tpl.h.

References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().

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

◆ PRMGenerator() [2/2]

template<typename GUM_SCALAR >
INLINE gum::prm::PRMGenerator< GUM_SCALAR >::PRMGenerator ( const PRMGenerator< GUM_SCALAR > &  source)

Copy constructor.

Definition at line 39 of file PRMGenerator_tpl.h.

References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().

39  :
40  name_gen_(source.name_gen_) {
41  GUM_CONS_CPY(PRMGenerator);
42  }
PRMGenerator()
Default constructor.
NameGenerator name_gen_
The name generator used by this class.
Definition: PRMGenerator.h:80
+ Here is the call graph for this function:

◆ ~PRMGenerator()

template<typename GUM_SCALAR >
INLINE gum::prm::PRMGenerator< GUM_SCALAR >::~PRMGenerator ( )
virtual

Destructor.

Definition at line 45 of file PRMGenerator_tpl.h.

References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().

45  {
46  GUM_DESTRUCTOR(PRMGenerator);
47  }
PRMGenerator()
Default constructor.
+ Here is the call graph for this function:

Member Function Documentation

◆ generate()

template<typename GUM_SCALAR >
virtual PRM< GUM_SCALAR >* gum::prm::PRMGenerator< GUM_SCALAR >::generate ( )
pure virtual

Proceeds with the generation of the PRM.

Implemented in gum::prm::LayerGenerator< GUM_SCALAR >, and gum::prm::ClusteredLayerGenerator< GUM_SCALAR >.

◆ getNameGenerator()

template<typename GUM_SCALAR >
INLINE const NameGenerator & gum::prm::PRMGenerator< GUM_SCALAR >::getNameGenerator ( ) const

Returns the NameGenerator used by this generator.

Definition at line 55 of file PRMGenerator_tpl.h.

References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().

55  {
56  return name_gen_;
57  }
NameGenerator name_gen_
The name generator used by this class.
Definition: PRMGenerator.h:80
+ Here is the call graph for this function:

◆ setNameGenerator()

template<typename GUM_SCALAR >
INLINE void gum::prm::PRMGenerator< GUM_SCALAR >::setNameGenerator ( const NameGenerator name_gen)

Getters and setters.

Defines the NameGenerator used by this generator.

Definition at line 50 of file PRMGenerator_tpl.h.

References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().

50  {
51  name_gen_ = name_gen;
52  }
NameGenerator name_gen_
The name generator used by this class.
Definition: PRMGenerator.h:80
+ Here is the call graph for this function:

Member Data Documentation

◆ name_gen_

template<typename GUM_SCALAR >
NameGenerator gum::prm::PRMGenerator< GUM_SCALAR >::name_gen_
protected

The name generator used by this class.

Definition at line 80 of file PRMGenerator.h.


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