![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
<agrum/PRM/generator/layerGenerator.h> More...
#include <layerGenerator.h>
Public Member Functions | |
Constructors and destructor. | |
LayerGenerator () | |
Default constructor. More... | |
LayerGenerator (const LayerGenerator &source) | |
Copy constructor. More... | |
LayerGenerator & | operator= (const LayerGenerator &source) |
Copy operator. More... | |
virtual | ~LayerGenerator () |
Destructor. More... | |
Size | getDomainSize () const |
Returns the domain size of generated types. More... | |
void | setDomainSize (Size s) |
Set the domain size of generated types. More... | |
Size | getMaxParents () const |
Returns the max number of parents allowed for any attribute or aggregator. More... | |
void | setMaxParents (Size s) |
Returns the max number of parents allowed for any attribute or aggregator. More... | |
void | setLayers (const std::vector< LayerData > &v) |
Defines the structure of each layers. More... | |
std::vector< LayerData > & | getLayer () |
Returns the domain size of generated types. More... | |
const std::vector< LayerData > & | getLayer () const |
Returns the domain size of generated types. More... | |
virtual PRM< GUM_SCALAR > * | generate () |
Proceeds with the generation of the PRM<GUM_SCALAR>. More... | |
void | setNameGenerator (const NameGenerator &name_gen) |
Getters and setters. More... | |
const NameGenerator & | getNameGenerator () const |
Returns the NameGenerator used by this generator. More... | |
Protected Attributes | |
NameGenerator | name_gen_ |
The name generator used by this class. More... | |
Classes | |
struct | LayerData |
Getters and setters. More... | |
struct | MyData |
<agrum/PRM/generator/layerGenerator.h>
This class generates PRMs with a layer structure.
Definition at line 55 of file layerGenerator.h.
INLINE gum::prm::LayerGenerator< GUM_SCALAR >::LayerGenerator | ( | ) |
Default constructor.
Definition at line 258 of file layerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
INLINE gum::prm::LayerGenerator< GUM_SCALAR >::LayerGenerator | ( | const LayerGenerator< GUM_SCALAR > & | source | ) |
Copy constructor.
Definition at line 265 of file layerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
|
virtual |
Destructor.
Definition at line 272 of file layerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
|
private |
Definition at line 162 of file layerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
|
private |
Definition at line 93 of file layerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
|
private |
Definition at line 64 of file layerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
|
private |
Definition at line 212 of file layerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
|
private |
Definition at line 49 of file layerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
|
virtual |
Proceeds with the generation of the PRM<GUM_SCALAR>.
Implements gum::prm::PRMGenerator< GUM_SCALAR >.
Definition at line 34 of file layerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
INLINE Size gum::prm::LayerGenerator< GUM_SCALAR >::getDomainSize | ( | ) | const |
Returns the domain size of generated types.
Definition at line 286 of file layerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
INLINE std::vector< typename LayerGenerator< GUM_SCALAR >::LayerData > & gum::prm::LayerGenerator< GUM_SCALAR >::getLayer | ( | ) |
Returns the domain size of generated types.
Definition at line 313 of file layerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
INLINE const std::vector< typename LayerGenerator< GUM_SCALAR >::LayerData > & gum::prm::LayerGenerator< GUM_SCALAR >::getLayer | ( | ) | const |
Returns the domain size of generated types.
Definition at line 319 of file layerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
INLINE Size gum::prm::LayerGenerator< GUM_SCALAR >::getMaxParents | ( | ) | const |
Returns the max number of parents allowed for any attribute or aggregator.
Definition at line 296 of file layerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
|
inherited |
Returns the NameGenerator used by this generator.
Definition at line 55 of file PRMGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
INLINE LayerGenerator< GUM_SCALAR > & gum::prm::LayerGenerator< GUM_SCALAR >::operator= | ( | const LayerGenerator< GUM_SCALAR > & | source | ) |
Copy operator.
Definition at line 278 of file layerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
INLINE void gum::prm::LayerGenerator< GUM_SCALAR >::setDomainSize | ( | Size | s | ) |
Set the domain size of generated types.
Definition at line 291 of file layerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
INLINE void gum::prm::LayerGenerator< GUM_SCALAR >::setLayers | ( | const std::vector< LayerData > & | v | ) |
Defines the structure of each layers.
Each value in v defines a layer, were v[i].first is the number of different classes in the i-th layer and v[i].second is the number of instances in the i-th layer.
v | A vector describing each layer. |
Definition at line 306 of file layerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
INLINE void gum::prm::LayerGenerator< GUM_SCALAR >::setMaxParents | ( | Size | s | ) |
Returns the max number of parents allowed for any attribute or aggregator.
Definition at line 301 of file layerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
|
inherited |
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().
|
private |
Definition at line 127 of file layerGenerator.h.
|
private |
Definition at line 126 of file layerGenerator.h.
|
private |
Definition at line 128 of file layerGenerator.h.
|
protectedinherited |
The name generator used by this class.
Definition at line 80 of file PRMGenerator.h.