![]() |
aGrUM 2.3.2
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. | |
| NameGenerator (const NameGenerator &source) | |
| Copy constructor. | |
| virtual | ~NameGenerator () |
| Destructor. | |
| NameGenerator & | operator= (const NameGenerator &source) |
| Affectation operator. | |
| std::string | nextName (PRMObject::prm_type type) |
| Getters and setters. | |
Private Attributes | |
| std::vector< Size > | _counters_ |
| The vector of counters. | |
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 74 of file nameGenerator.h.
| INLINE gum::prm::NameGenerator::NameGenerator | ( | ) |
Default constructor.
Definition at line 54 of file nameGenerator_inl.h.
References NameGenerator(), and _counters_.
Referenced by NameGenerator(), NameGenerator(), ~NameGenerator(), and operator=().
| INLINE gum::prm::NameGenerator::NameGenerator | ( | const NameGenerator & | source | ) |
Copy constructor.
Definition at line 56 of file nameGenerator_inl.h.
References NameGenerator(), and _counters_.
|
virtual |
Destructor.
Definition at line 61 of file nameGenerator_inl.h.
References NameGenerator().
| 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 73 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 67 of file nameGenerator_inl.h.
References NameGenerator(), and _counters_.
|
private |
The vector of counters.
Definition at line 103 of file nameGenerator.h.
Referenced by NameGenerator(), NameGenerator(), nextName(), and operator=().