![]() |
aGrUM 3.2.0
a C++ library for (probabilistic) graphical models
|
This class represents a Probabilistic Relational PRMSystem<GUM_SCALAR>. More...
#include <agrum/PRM/PRM.h>
Public Member Functions | |
Destructor. | |
| PRM () | |
| Default constructor. | |
| ~PRM () | |
| Destructor. | |
Getters and setters. | |
| bool | isType (std::string_view name) const |
| bool | isClass (std::string_view name) const |
| bool | isInterface (std::string_view name) const |
| bool | isSystem (std::string_view name) const |
| PRMType & | type (std::string_view name) |
| Returns a constant reference on a PRMType given it's name. | |
| const PRMType & | type (std::string_view name) const |
| Returns a constant reference on a PRMType given it's name. | |
| const Set< PRMType * > & | types () const |
| Returns the Set of all PRMType in this PRM. | |
| PRMClass< GUM_SCALAR > & | getClass (std::string_view name) |
| Returns a constant reference on a Class<GUM_SCALAR> given it's name. | |
| const PRMClass< GUM_SCALAR > & | getClass (std::string_view name) const |
| Returns a constant reference on a Class<GUM_SCALAR> given it's name. | |
| const Set< PRMClass< GUM_SCALAR > * > & | classes () const |
| Returns the Set of all Class<GUM_SCALAR> in this PRM. | |
| PRMInterface< GUM_SCALAR > & | getInterface (std::string_view name) |
| Returns a constant reference on a Class<GUM_SCALAR> given it's name. | |
| const PRMInterface< GUM_SCALAR > & | getInterface (std::string_view name) const |
| Returns a constant reference on a Class<GUM_SCALAR> given it's name. | |
| const Set< PRMInterface< GUM_SCALAR > * > & | interfaces () const |
| Returns the Set of all Class<GUM_SCALAR> in this PRM. | |
| PRMSystem< GUM_SCALAR > & | getSystem (std::string_view name) |
| Returns a constant reference on a PRMSystem<GUM_SCALAR> given it's name. | |
| const PRMSystem< GUM_SCALAR > & | getSystem (std::string_view name) const |
| Returns a constant reference on a PRMSystem<GUM_SCALAR> given it's name. | |
| const Set< PRMSystem< GUM_SCALAR > * > & | systems () const |
| Returns the Set of all Systems in this PRM. | |
Private Member Functions | |
Private methods. | |
| PRM (const PRM< GUM_SCALAR > &source) | |
| Copy constructor. | |
| PRM< GUM_SCALAR > & | operator= (const PRM< GUM_SCALAR > &source) |
| Copy operator. | |
| void | _addBuiltInTypes_ () |
| Add the built-in types in the PRM. | |
Private Attributes | |
Private members. | |
| HashTable< std::string, PRMClass< GUM_SCALAR > * > | _classMap_ |
| Mapping of all Class<GUM_SCALAR> given their name. | |
| Set< PRMClass< GUM_SCALAR > * > | _classes_ |
| Set of all Class<GUM_SCALAR> in this PRM. | |
| HashTable< std::string, PRMInterface< GUM_SCALAR > * > | _interfaceMap_ |
| Mapping of all Class<GUM_SCALAR> given their name. | |
| Set< PRMInterface< GUM_SCALAR > * > | _interfaces_ |
| Set of all Class<GUM_SCALAR> in this PRM. | |
| HashTable< std::string, PRMType * > | _typeMap_ |
| Mapping of all PRMType given their name. | |
| Set< PRMType * > | _types_ |
| Set of all PRMType in this PRM. | |
| HashTable< std::string, PRMSystem< GUM_SCALAR > * > | _systemMap_ |
| Mapping of all Systems given their name. | |
| Set< PRMSystem< GUM_SCALAR > * > | _systems_ |
| Set of all Systems in this PRM. | |
Friends | |
| class | PRMFactory< GUM_SCALAR > |
This class represents a Probabilistic Relational PRMSystem<GUM_SCALAR>.
| gum::prm::PRM< GUM_SCALAR >::PRM | ( | ) |
Default constructor.
Definition at line 57 of file PRM_tpl.h.
References PRM(), and _addBuiltInTypes_().
Referenced by PRM(), PRM(), gum::prm::PRMFactory< GUM_SCALAR >::PRMFactory(), ~PRM(), operator=(), and PRMFactory< GUM_SCALAR >.
| gum::prm::PRM< GUM_SCALAR >::~PRM | ( | ) |
Destructor.
Definition at line 64 of file PRM_tpl.h.
References PRM(), _classes_, _classMap_, _interfaces_, _systemMap_, _systems_, _typeMap_, and _types_.
|
private |
|
private |
Add the built-in types in the PRM.
Definition at line 85 of file PRM_tpl.h.
References gum::prm::PRMType::PRMType(), _typeMap_, _types_, and gum::LabelizedVariable::addLabel().
Referenced by PRM(), and operator=().
| const Set< PRMClass< GUM_SCALAR > * > & gum::prm::PRM< GUM_SCALAR >::classes | ( | ) | const |
| PRMClass< GUM_SCALAR > & gum::prm::PRM< GUM_SCALAR >::getClass | ( | std::string_view | name | ) |
Returns a constant reference on a Class<GUM_SCALAR> given it's name.
| NotFound | Raised if no class is found with the given name. |
Definition at line 130 of file PRM_tpl.h.
References _classMap_.
| const PRMClass< GUM_SCALAR > & gum::prm::PRM< GUM_SCALAR >::getClass | ( | std::string_view | name | ) | const |
Returns a constant reference on a Class<GUM_SCALAR> given it's name.
| NotFound | Raised if no class is found with the given name. |
Definition at line 135 of file PRM_tpl.h.
References _classMap_.
| PRMInterface< GUM_SCALAR > & gum::prm::PRM< GUM_SCALAR >::getInterface | ( | std::string_view | name | ) |
Returns a constant reference on a Class<GUM_SCALAR> given it's name.
| NotFound | Raised if no class is found with the given name. |
Definition at line 145 of file PRM_tpl.h.
References _interfaceMap_.
| const PRMInterface< GUM_SCALAR > & gum::prm::PRM< GUM_SCALAR >::getInterface | ( | std::string_view | name | ) | const |
Returns a constant reference on a Class<GUM_SCALAR> given it's name.
| NotFound | Raised if no class is found with the given name. |
Definition at line 150 of file PRM_tpl.h.
References _interfaceMap_.
| PRMSystem< GUM_SCALAR > & gum::prm::PRM< GUM_SCALAR >::getSystem | ( | std::string_view | name | ) |
Returns a constant reference on a PRMSystem<GUM_SCALAR> given it's name.
| NotFound | Raised if no model is found with the given name. |
Definition at line 160 of file PRM_tpl.h.
References _systemMap_.
| const PRMSystem< GUM_SCALAR > & gum::prm::PRM< GUM_SCALAR >::getSystem | ( | std::string_view | name | ) | const |
Returns a constant reference on a PRMSystem<GUM_SCALAR> given it's name.
| NotFound | Raised if no model is found with the given name. |
Definition at line 165 of file PRM_tpl.h.
References _systemMap_.
| const Set< PRMInterface< GUM_SCALAR > * > & gum::prm::PRM< GUM_SCALAR >::interfaces | ( | ) | const |
Returns the Set of all Class<GUM_SCALAR> in this PRM.
Definition at line 155 of file PRM_tpl.h.
References _interfaces_.
| bool gum::prm::PRM< GUM_SCALAR >::isClass | ( | std::string_view | name | ) | const |
| name | The name of a possible Class<GUM_SCALAR> in this PRM. |
Definition at line 100 of file PRM_tpl.h.
References _classMap_.
| bool gum::prm::PRM< GUM_SCALAR >::isInterface | ( | std::string_view | name | ) | const |
| name | The name of a possible PRMInterface<GUM_SCALAR> in this PRM. |
Definition at line 105 of file PRM_tpl.h.
References _interfaceMap_.
| bool gum::prm::PRM< GUM_SCALAR >::isSystem | ( | std::string_view | name | ) | const |
| name | The name of a possible PRMSystem<GUM_SCALAR> in this PRM. |
Definition at line 110 of file PRM_tpl.h.
References _systemMap_.
| bool gum::prm::PRM< GUM_SCALAR >::isType | ( | std::string_view | name | ) | const |
|
private |
Copy operator.
Not Implemented.
References PRM(), and _addBuiltInTypes_().
| const Set< PRMSystem< GUM_SCALAR > * > & gum::prm::PRM< GUM_SCALAR >::systems | ( | ) | const |
| PRMType & gum::prm::PRM< GUM_SCALAR >::type | ( | std::string_view | name | ) |
| const PRMType & gum::prm::PRM< GUM_SCALAR >::type | ( | std::string_view | name | ) | const |
| const Set< PRMType * > & gum::prm::PRM< GUM_SCALAR >::types | ( | ) | const |
|
friend |
|
private |
|
private |
Mapping of all Class<GUM_SCALAR> given their name.
Definition at line 223 of file PRM.h.
Referenced by ~PRM(), getClass(), getClass(), and isClass().
|
private |
Mapping of all Class<GUM_SCALAR> given their name.
Definition at line 229 of file PRM.h.
Referenced by getInterface(), getInterface(), and isInterface().
|
private |
|
private |
Mapping of all Systems given their name.
Definition at line 241 of file PRM.h.
Referenced by ~PRM(), getSystem(), getSystem(), and isSystem().
|
private |
|
private |
|
private |