aGrUM  0.16.0
nameGenerator.h
Go to the documentation of this file.
1 
30 #include <sstream>
31 #include <string>
32 
34 #include <agrum/agrum.h>
35 
36 #ifndef GUM_NAME_GENERATOR_H
37 # define GUM_NAME_GENERATOR_H
38 namespace gum {
39  namespace prm {
40 
53  class NameGenerator {
54  public:
55  // ========================================================================
57  // ========================================================================
59 
61  NameGenerator();
63  NameGenerator(const NameGenerator& source);
65  virtual ~NameGenerator();
67  NameGenerator& operator=(const NameGenerator& source);
68 
70  // ========================================================================
72  // ========================================================================
74 
76  std::string nextName(PRMObject::prm_type type);
77 
79  private:
81  std::vector< Size > __counters;
82  };
83 
84  } /* namespace prm */
85 } /* namespace gum */
86 
87 # ifndef GUM_NO_INLINE
89 # endif
90 
91 #endif /* GUM_NAME_GENERATOR_H */
virtual ~NameGenerator()
Destructor.
This is a name generator for classes, types, systems, instances and class elements.
Definition: nameGenerator.h:53
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25
prm_type
Enumeration of the different types of objects handled by a PRM.
Definition: PRMObject.h:69
std::vector< Size > __counters
The vector of counters.
Definition: nameGenerator.h:81
NameGenerator()
Default constructor.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
NameGenerator & operator=(const NameGenerator &source)
Affectation operator.
std::string nextName(PRMObject::prm_type type)
Getters and setters.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.