![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
This is a name generator for classes, types, systems, instances and class elements. More...
#include <agrum/PRM/generator/PRMGenerator.h>
Public Member Functions | |
Constructors and destructor. | |
NameGenerator () | |
Default constructor. More... | |
NameGenerator (const NameGenerator &source) | |
Copy constructor. More... | |
virtual | ~NameGenerator () |
Destructor. More... | |
NameGenerator & | operator= (const NameGenerator &source) |
Affectation operator. More... | |
std::string | nextName (PRMObject::prm_type type) |
Getters and setters. More... | |
This is a name generator for classes, types, systems, instances and class elements.
The generation simply use an unsigned int starting at 1 and increasing for each new name. Different numbers are used for each different type of PRMObject.
Definition at line 52 of file nameGenerator.h.
INLINE gum::prm::NameGenerator::NameGenerator | ( | ) |
Default constructor.
Definition at line 33 of file nameGenerator_inl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
INLINE gum::prm::NameGenerator::NameGenerator | ( | const NameGenerator & | source | ) |
Copy constructor.
Definition at line 35 of file nameGenerator_inl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
|
virtual |
Destructor.
Definition at line 40 of file nameGenerator_inl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
INLINE std::string gum::prm::NameGenerator::nextName | ( | PRMObject::prm_type | type | ) |
Getters and setters.
Returns the next name w.r.t. the given PRMType.
Definition at line 52 of file nameGenerator_inl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
INLINE NameGenerator & gum::prm::NameGenerator::operator= | ( | const NameGenerator & | source | ) |
Affectation operator.
Definition at line 46 of file nameGenerator_inl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
|
private |
The vector of counters.
Definition at line 80 of file nameGenerator.h.