32 template <
typename GUM_SCALAR >
39 template <
typename GUM_SCALAR >
46 for (
const auto sys : __systems)
49 for (
const auto cla : __classes)
52 for (
const auto inter : __interfaces)
55 for (
const auto typ : __types)
60 template <
typename GUM_SCALAR >
66 __types.insert(
boolean);
67 __typeMap.insert(
"boolean",
boolean);
70 template <
typename GUM_SCALAR >
72 return __typeMap.exists(name);
75 template <
typename GUM_SCALAR >
77 return __classMap.exists(name);
80 template <
typename GUM_SCALAR >
82 return __interfaceMap.exists(name);
85 template <
typename GUM_SCALAR >
87 return __systemMap.exists(name);
90 template <
typename GUM_SCALAR >
92 return *(__typeMap[name]);
95 template <
typename GUM_SCALAR >
97 return *(__typeMap[name]);
100 template <
typename GUM_SCALAR >
105 template <
typename GUM_SCALAR >
108 return *(__classMap[name]);
111 template <
typename GUM_SCALAR >
114 return *(__classMap[name]);
117 template <
typename GUM_SCALAR >
123 template <
typename GUM_SCALAR >
126 return *__interfaceMap[name];
129 template <
typename GUM_SCALAR >
132 return *__interfaceMap[name];
135 template <
typename GUM_SCALAR >
141 template <
typename GUM_SCALAR >
144 return *(__systemMap[name]);
147 template <
typename GUM_SCALAR >
150 return *(__systemMap[name]);
153 template <
typename GUM_SCALAR >
PRMInterface< GUM_SCALAR > & getInterface(const std::string &name)
Returns a constant reference on a Class<GUM_SCALAR> given it's name.
const Set< PRMType *> & types() const
Returns the Set of all PRMType in this PRM.
bool isClass(const std::string &name) const
PRM()
Default constructor.
const Set< PRMSystem< GUM_SCALAR > *> & systems() const
Returns the Set of all Systems in this PRM.
void __addBuiltInTypes()
Add the built-in types in the PRM.
const Set< PRMClass< GUM_SCALAR > *> & classes() const
Returns the Set of all Class<GUM_SCALAR> in this PRM.
const Set< PRMInterface< GUM_SCALAR > *> & interfaces() const
Returns the Set of all Class<GUM_SCALAR> in this PRM.
gum is the global namespace for all aGrUM entities
bool isType(const std::string &name) const
Representation of a setA Set is a structure that contains arbitrary elements.
PRMType & type(const std::string &name)
Returns a constant reference on a PRMType given it's name.
bool isSystem(const std::string &name) const
PRMSystem< GUM_SCALAR > & getSystem(const std::string &name)
Returns a constant reference on a PRMSystem<GUM_SCALAR> given it's name.
A PRMSystem is a container of PRMInstance and describe a relational skeleton.
This is a decoration of the DiscreteVariable class.
An PRMInterface is implemented by a Class<GUM_SCALAR> and defines a set of PRMReferenceSlot<GUM_SCALA...
This class represents a Probabilistic Relational PRMSystem<GUM_SCALAR>.
A PRMClass is an object of a PRM representing a fragment of a Bayesian Network which can be instantia...
PRMClass< GUM_SCALAR > & getClass(const std::string &name)
Returns a constant reference on a Class<GUM_SCALAR> given it's name.
LabelizedVariable & addLabel(const std::string &aLabel)
add a label with a new index (we assume that we will NEVER remove a label)
bool isInterface(const std::string &name) const