![]() |
aGrUM
0.16.0
|
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 53 of file nameGenerator.h.
INLINE gum::prm::NameGenerator::NameGenerator | ( | ) |
Default constructor.
Definition at line 34 of file nameGenerator_inl.h.
INLINE gum::prm::NameGenerator::NameGenerator | ( | const NameGenerator & | source | ) |
Copy constructor.
Definition at line 39 of file nameGenerator_inl.h.
|
virtual |
Destructor.
Definition at line 45 of file nameGenerator_inl.h.
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 54 of file nameGenerator_inl.h.
References __counters, gum::prm::PRMObject::ALL, gum::prm::PRMObject::CLASS, gum::prm::PRMObject::CLASS_ELT, GUM_ERROR, gum::prm::PRMObject::INSTANCE, gum::prm::PRMObject::PRM_INTERFACE, gum::prm::PRMObject::SYSTEM, and gum::prm::PRMObject::TYPE.
INLINE NameGenerator & gum::prm::NameGenerator::operator= | ( | const NameGenerator & | source | ) |
Affectation operator.
Definition at line 48 of file nameGenerator_inl.h.
References __counters.
|
private |
The vector of counters.
Definition at line 81 of file nameGenerator.h.
Referenced by nextName(), and operator=().