![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
A PRMClass is an object of a PRM representing a fragment of a Bayesian network which can be instantiated in PRMInstance. More...
#include <agrum/PRM/elements/PRMClass.h>
Public Member Functions | |
Constructors & destructor. | |
PRMClass (const std::string &name) | |
Default constructor. More... | |
PRMClass (const std::string &name, PRMClass< GUM_SCALAR > &super, bool delayInheritance=false) | |
Constructor for building a subclass of super. More... | |
PRMClass (const std::string &name, const Set< PRMInterface< GUM_SCALAR > * > &set, bool delayInheritance=false) | |
Constructor for building a Class<GUM_SCALAR> implementing several each interface in set. More... | |
PRMClass (const std::string &name, PRMClass< GUM_SCALAR > &super, const Set< PRMInterface< GUM_SCALAR > * > &set, bool delayInheritance=false) | |
Constructor for building a subclass of super and implementing each interface in set. More... | |
PRMClass (const PRMClass< GUM_SCALAR > &source)=delete | |
Copy constructor. More... | |
PRMClass (const PRMClass< GUM_SCALAR > &&source)=delete | |
Move constructor. More... | |
PRMClass< GUM_SCALAR > & | operator= (const PRMClass< GUM_SCALAR > &source)=delete |
Copy operator. Don't use it. More... | |
PRMClass< GUM_SCALAR > & | operator= (const PRMClass< GUM_SCALAR > &&source)=delete |
Move operator. Don't use it. More... | |
virtual | ~PRMClass () |
Destructor. More... | |
virtual PRMObject::prm_type | obj_type () const |
Implementation of pure virtual method of PRMObject. More... | |
Graphical operator | |
PRMClassElement< GUM_SCALAR > & | get (NodeId id) |
See gum::prm::PRMClassElementContainer<GUM_SCALAR>::get(NodeId). More... | |
const PRMClassElement< GUM_SCALAR > & | get (NodeId id) const |
See gum::prm::PRMClassElementContainer<GUM_SCALAR>::get(NodeId). More... | |
PRMClassElement<GUM_SCALAR> getters and setters | |
virtual bool | isOutputNode (const PRMClassElement< GUM_SCALAR > &elt) const |
Returns true if elt is an output node. More... | |
bool | isCastDescendant (const std::string &safe_name) const |
Return true if the attribute named safe_name is a cast descendant. More... | |
PRMClassElement< GUM_SCALAR > & | get (const std::string &name) |
See gum::prm::PRMClassElementContainer<GUM_SCALAR>::get(const std::string&). More... | |
const PRMClassElement< GUM_SCALAR > & | get (const std::string &name) const |
See gum::prm::PRMClassElementContainer<GUM_SCALAR>::get(const std::string&). More... | |
virtual NodeId | add (PRMClassElement< GUM_SCALAR > *elt) |
See gum::prm::add(PRMClassElement<GUM_SCALAR>*). More... | |
virtual NodeId | overload (PRMClassElement< GUM_SCALAR > *elt) |
See gum::prm::overload(PRMClassElement<GUM_SCALAR>*). More... | |
virtual void | addArc (const std::string &tail, const std::string &head) |
See gum::prm::PRMClassElementContainer<GUM_SCALAR>::addArc(). More... | |
const Set< PRMAttribute< GUM_SCALAR > *> & | attributes () const |
Returns the set of PRMAttribute<GUM_SCALAR> of this Class<GUM_SCALAR>. More... | |
const Set< PRMParameter< GUM_SCALAR > *> & | parameters () const |
Returns the set of parameters of this Class<GUM_SCALAR>. More... | |
HashTable< std::string, const PRMParameter< GUM_SCALAR > *> | scope () const |
Returns all the parameters in the scope of this class. More... | |
const Set< PRMAggregate< GUM_SCALAR > *> & | aggregates () const |
Returns the set of PRMAggregate<GUM_SCALAR> of this Class<GUM_SCALAR>. More... | |
const Set< PRMReferenceSlot< GUM_SCALAR > *> & | referenceSlots () const |
Returns the set of PRMReferenceSlot<GUM_SCALAR> of this Class<GUM_SCALAR>. More... | |
const Set< PRMSlotChain< GUM_SCALAR > *> & | slotChains () const |
Returns the set of PRMSlotChain<GUM_SCALAR> of this Class<GUM_SCALAR>. More... | |
Inheritance methods | |
virtual bool | isSubTypeOf (const PRMClassElementContainer< GUM_SCALAR > &cec) const |
Test if this Class<GUM_SCALAR> is a subclass of cec. More... | |
const PRMClass< GUM_SCALAR > & | super () const |
Returns the super Class<GUM_SCALAR> of this Class<GUM_SCALAR>. More... | |
const Set< PRMInterface< GUM_SCALAR > *> & | implements () const |
Returns the Set of PRMInterface<GUM_SCALAR> implemented by this Class<GUM_SCALAR>. More... | |
const Set< PRMClass< GUM_SCALAR > *> & | extensions () const |
Returns the set of Class<GUM_SCALAR> which are direct sub-Class<GUM_SCALAR> of this Class<GUM_SCALAR>. More... | |
Getters & setters operators | |
PRMClassElement< GUM_SCALAR > & | operator[] (NodeId id) |
See gum::prm::PRMClassElementContainer<GUM_SCALAR>::operator[](NodeId). More... | |
const PRMClassElement< GUM_SCALAR > & | operator[] (NodeId id) const |
See gum::prm::PRMClassElementContainer<GUM_SCALAR>::operator[](NodeId). More... | |
PRMClassElement< GUM_SCALAR > & | operator[] (const std::string &name) |
See gum::prm::PRMClassElementContainer<GUM_SCALAR>::operator[](const std::string&). More... | |
const PRMClassElement< GUM_SCALAR > & | operator[] (const std::string &name) const |
See gum::prm::PRMClassElementContainer<GUM_SCALAR>::operator[](const std::string&). More... | |
For custom inheritance | |
void | inheritReferenceSlots () |
void | inheritParameters () |
void | inheritAttributes () |
void | inheritAggregates () |
void | inheritSlotChains () |
void | initializeInheritance () |
void | completeInheritance (const std::string &attr) |
Getters on the gum::PRMClassElement<GUM_SCALAR>. | |
virtual bool | belongsTo (const PRMClassElement< GUM_SCALAR > &elt) const |
Returns true if elt belongs to this PRMClassElementContainer. More... | |
virtual bool | exists (const std::string &name) const |
Returns true if a member with the given name exists in this PRMClassElementContainer or in the PRMClassElementContainer hierarchy. More... | |
virtual bool | isInputNode (const PRMClassElement< GUM_SCALAR > &elt) const |
Returns true if the node is an input node. More... | |
virtual void | setInputNode (const PRMClassElement< GUM_SCALAR > &elt, bool b) |
Set the input flag value of id at b. More... | |
virtual void | setOutputNode (const PRMClassElement< GUM_SCALAR > &elt, bool b) |
Set the output flag value of id at b. More... | |
virtual bool | isInnerNode (const PRMClassElement< GUM_SCALAR > &elt) const |
Returns true if the node is an inner node. More... | |
Graphical operator | |
virtual bool | exists (NodeId id) const |
Returns true if a member with the given id exists in this PRMClassElementContainer or in the PRMClassElementContainer hierarchy. More... | |
virtual const DAG & | containerDag () const |
Returns the gum::DAG of this PRMClassElementContainer. More... | |
Inheritance getters and setters | |
virtual bool | isSuperTypeOf (const PRMClassElementContainer< GUM_SCALAR > &cec) const |
Test if this PRMClassElementContainer is a super type of cec. More... | |
Getters & setters. | |
const std::string & | name () const |
Returns the name of this object. More... | |
void | name (const std::string &name) |
Change the name of the PRM Object. More... | |
Operators | |
bool | operator== (const PRMObject &obj) const |
To PRMObject are equal if they have the same name (which is unique). More... | |
bool | operator!= (const PRMObject &obj) const |
To PRMObject are equal if they have the same name (which is unique). More... | |
Protected Member Functions | |
virtual const DAG & | dag_ () const |
returns a constant reference over this interface's dag. More... | |
virtual DAG & | dag_ () |
Returns a non constant reference over this PRMInterface<GUM_SCALAR>'s DAG. More... | |
void | findAllSubtypes_ (Set< PRMClassElementContainer< GUM_SCALAR > * > &set) |
Fills set with all the subtypes of this Class<GUM_SCALAR>. More... | |
void | updateDescendants_ (const PRMClassElement< GUM_SCALAR > &elt) |
See gum::prm::PRMClassElementContainer<GUM_SCALAR>(const PRMClassElement<GUM_SCALAR>&). More... | |
virtual std::pair< bool, bool > & | getIOFlag_ (const PRMClassElement< GUM_SCALAR > &elt) |
Returns the IO flags of a PRMClassElement<GUM_SCALAR>. More... | |
virtual const std::pair< bool, bool > & | getIOFlag_ (const PRMClassElement< GUM_SCALAR > &elt) const |
Returns the IO flags of a PRMClassElement<GUM_SCALAR>. More... | |
virtual void | setIOFlag_ (const PRMClassElement< GUM_SCALAR > &elt, const std::pair< bool, bool > &flags) |
Defines the IO flags of a PRMClassElement<GUM_SCALAR>. More... | |
virtual void | copyIOFlags_ (const PRMClassElementContainer< GUM_SCALAR > &c) |
Copy the IO Flags of c in this PRMClassElementContainer. More... | |
Friends | |
class | PRMInterface< GUM_SCALAR > |
PRMClassElement<GUM_SCALAR> members | |
HashTable< std::string, PRMClassElement< GUM_SCALAR > *> | _nameMap_ |
Mapping between a member's name and itself. Used for fast access to a member given it's name. More... | |
Set< PRMAttribute< GUM_SCALAR > *> | _attributes_ |
The sequence of PRMAttribute<GUM_SCALAR>s. More... | |
Set< PRMReferenceSlot< GUM_SCALAR > *> | _referenceSlots_ |
The sequence of PRMReferenceSlot<GUM_SCALAR>. More... | |
Set< PRMAggregate< GUM_SCALAR > *> | _aggregates_ |
The sequence of aggregate. More... | |
Set< PRMSlotChain< GUM_SCALAR > *> | _slotChains_ |
The set of gum::PRMSlotChain<GUM_SCALAR>s. More... | |
Set< PRMParameter< GUM_SCALAR > *> | _parameters_ |
The Set of parameters in this Class<GUM_SCALAR>. More... | |
void | _addCastDescendants_ (PRMClassElement< GUM_SCALAR > *attr) |
Recursively adds cast descendant of attr in this Class<GUM_SCALAR>. More... | |
void | _addCastDescendants_ (PRMAttribute< GUM_SCALAR > *start, PRMAttribute< GUM_SCALAR > *end) |
Recursively adds cast descendant from start to end in this Class<GUM_SCALAR>. More... | |
Inheritance members | |
PRMClass< GUM_SCALAR > * | _superClass_ |
The alternate PRMClassElementContainer<GUM_SCALAR> searched for elements defined in this. Note that this is first searched for gum::PRMClassElement<GUM_SCALAR>. More... | |
Set< PRMInterface< GUM_SCALAR > *> * | _implements_ |
The Set of implemented interface of this. More... | |
Set< PRMClass< GUM_SCALAR > *> | _extensions_ |
The set of Class<GUM_SCALAR> which are extension of this Class<GUM_SCALAR> (i.e. direct subtypes). More... | |
Bijection< const DiscreteVariable *, const DiscreteVariable *> * | _bijection_ |
The bijection between variables in super and variables in this The bijection's firsts are attributes in this and its seconds are attributes in c. More... | |
HashFunc< PRMClassElementContainer< GUM_SCALAR > *> | _dummy_hashfunc_ |
a dummy member used to fix a compilation issue in clang4 More... | |
void | _inheritClass_ (const PRMClass< GUM_SCALAR > &c) |
Proceed with the copy when this inherits c. More... | |
void | _implementInterfaces_ (bool delayInheritance) |
Proceed with the implementation of interfaces. More... | |
void | _checkInterfaces_ (PRMClassElement< GUM_SCALAR > *elt) |
Check that a given element respects all the class interfaces. More... | |
void | _checkInterface_ (PRMClassElement< GUM_SCALAR > *elt, PRMInterface< GUM_SCALAR > *i) |
Check that a given element respects a specific interface. More... | |
void | _checkRefInterfaces_ (PRMReferenceSlot< GUM_SCALAR > *elt) |
Check that a given element respects all the class interfaces. More... | |
void | _checkRefInterface_ (PRMReferenceSlot< GUM_SCALAR > *elt, PRMInterface< GUM_SCALAR > *i) |
Check that a given element respects a specific interface. More... | |
void | _addIOInterfaceFlags_ (PRMClassElement< GUM_SCALAR > *elt) |
Check if elt is present in an implementation. If it is, its IO flags are updated. More... | |
void | _addExtension_ (PRMClass< GUM_SCALAR > *c) |
This method is called when a sub-Class<GUM_SCALAR> of this Class<GUM_SCALAR> is created. More... | |
bool | _checkOverloadLegality_ (const PRMClassElement< GUM_SCALAR > *overloaded, const PRMClassElement< GUM_SCALAR > *overloader) |
Return true of overloaded can be overload by overloader. More... | |
void | _overloadAttribute_ (PRMAttribute< GUM_SCALAR > *overloader, PRMAttribute< GUM_SCALAR > *overloaded) |
Overloads an attribute. More... | |
void | _overloadAggregate_ (PRMAggregate< GUM_SCALAR > *overloader, PRMClassElement< GUM_SCALAR > *overloaded) |
Overloads an aggregate. More... | |
void | _overloadReference_ (PRMReferenceSlot< GUM_SCALAR > *overloader, PRMReferenceSlot< GUM_SCALAR > *overloaded) |
Overloads a reference slot. More... | |
void | _overloadParameter_ (PRMParameter< GUM_SCALAR > *overloader, PRMParameter< GUM_SCALAR > *overloaded) |
Overloads a parameter. More... | |
Built-in types. | |
enum | prm_type : char { prm_type::ALL, prm_type::CLASS, prm_type::PRM_INTERFACE, prm_type::CLASS_ELT, prm_type::TYPE, prm_type::SYSTEM, prm_type::INSTANCE } |
Enumeration of the different types of objects handled by a PRM. More... | |
static std::string | LEFT_CAST () |
Enumeration of the different types of objects handled by a PRM. More... | |
static std::string | RIGHT_CAST () |
Enumeration of the different types of objects handled by a PRM. More... | |
static std::string | enum2str (prm_type type) |
Returns the string representation of a PRMObject. More... | |
static INLINE bool | isClass (const PRMObject &obj) |
Returns true if obj_ptr is of type Class. More... | |
static INLINE bool | isInterface (const PRMObject &obj) |
Returns true if obj_ptr is of type PRMInterface. More... | |
static INLINE bool | isInstance (const PRMObject &obj) |
Returns true if obj_ptr is of type PRMInstance. More... | |
A PRMClass is an object of a PRM representing a fragment of a Bayesian network which can be instantiated in PRMInstance.
Definition at line 65 of file PRMClass.h.
|
stronginherited |
Enumeration of the different types of objects handled by a PRM.
The "all" type is used to tell that we want any kind of PRMType (useful with iterators for example). No PRMObject will ever have "all" as type.
Enumerator | |
---|---|
ALL | |
CLASS | |
PRM_INTERFACE | |
CLASS_ELT | |
TYPE | |
SYSTEM | |
INSTANCE |
Definition at line 68 of file PRMObject.h.
|
explicit |
Default constructor.
name | The class name. |
Definition at line 39 of file PRMClass_tpl.h.
gum::prm::PRMClass< GUM_SCALAR >::PRMClass | ( | const std::string & | name, |
PRMClass< GUM_SCALAR > & | super, | ||
bool | delayInheritance = false |
||
) |
Constructor for building a subclass of super.
name | The subclass name. |
super | The super Class<GUM_SCALAR> of this. |
delayInheritance | If true, inheritance will be delayed. |
Definition at line 46 of file PRMClass_tpl.h.
gum::prm::PRMClass< GUM_SCALAR >::PRMClass | ( | const std::string & | name, |
const Set< PRMInterface< GUM_SCALAR > * > & | set, | ||
bool | delayInheritance = false |
||
) |
Constructor for building a Class<GUM_SCALAR> implementing several each interface in set.
name | The sub class name. |
set | The Set of implemented interfaces. |
delayInheritance | If true, inheritance will be delayed. |
Definition at line 60 of file PRMClass_tpl.h.
gum::prm::PRMClass< GUM_SCALAR >::PRMClass | ( | const std::string & | name, |
PRMClass< GUM_SCALAR > & | super, | ||
const Set< PRMInterface< GUM_SCALAR > * > & | set, | ||
bool | delayInheritance = false |
||
) |
Constructor for building a subclass of super and implementing each interface in set.
name | The sub class name. |
super | The super Class<GUM_SCALAR> of this. |
set | The Set of implemented interfaces. |
delayInheritance | If true, inheritance will be delayed. |
Definition at line 72 of file PRMClass_tpl.h.
|
delete |
Copy constructor.
|
delete |
Move constructor.
|
virtual |
Destructor.
Definition at line 115 of file PRMClass_tpl.h.
|
private |
Recursively adds cast descendant of attr in this Class<GUM_SCALAR>.
Definition at line 666 of file PRMClass_tpl.h.
|
private |
Recursively adds cast descendant from start to end in this Class<GUM_SCALAR>.
Definition at line 898 of file PRMClass_tpl.h.
|
private |
This method is called when a sub-Class<GUM_SCALAR> of this Class<GUM_SCALAR> is created.
c | The Class<GUM_SCALAR> added as a direct sub-Class<GUM_SCALAR> of this. |
DuplicateElement | Raised if c is already a sub-Class<GUM_SCALAR> of this. |
Definition at line 1186 of file PRMClass_tpl.h.
|
private |
Check if elt is present in an implementation. If it is, its IO flags are updated.
Definition at line 932 of file PRMClass_tpl.h.
|
private |
Check that a given element respects a specific interface.
Definition at line 518 of file PRMClass_tpl.h.
|
private |
Check that a given element respects all the class interfaces.
Definition at line 507 of file PRMClass_tpl.h.
|
private |
Return true of overloaded can be overload by overloader.
Definition at line 1143 of file PRMClass_tpl.h.
|
private |
Check that a given element respects a specific interface.
Definition at line 569 of file PRMClass_tpl.h.
|
private |
Check that a given element respects all the class interfaces.
Definition at line 558 of file PRMClass_tpl.h.
|
private |
Proceed with the implementation of interfaces.
Definition at line 98 of file PRMClass_tpl.h.
|
private |
Proceed with the copy when this inherits c.
Definition at line 299 of file PRMClass_tpl.h.
|
private |
Overloads an aggregate.
Definition at line 1136 of file PRMClass_tpl.h.
|
private |
Overloads an attribute.
Definition at line 765 of file PRMClass_tpl.h.
|
private |
Overloads a parameter.
Definition at line 886 of file PRMClass_tpl.h.
|
private |
Overloads a reference slot.
Definition at line 791 of file PRMClass_tpl.h.
|
virtual |
See gum::prm::add(PRMClassElement<GUM_SCALAR>*).
Implements gum::prm::PRMClassElementContainer< GUM_SCALAR >.
Definition at line 593 of file PRMClass_tpl.h.
|
virtual |
See gum::prm::PRMClassElementContainer<GUM_SCALAR>::addArc().
Implements gum::prm::PRMClassElementContainer< GUM_SCALAR >.
Definition at line 464 of file PRMClass_tpl.h.
INLINE const Set< PRMAggregate< GUM_SCALAR > *> & gum::prm::PRMClass< GUM_SCALAR >::aggregates | ( | ) | const |
Returns the set of PRMAggregate<GUM_SCALAR> of this Class<GUM_SCALAR>.
Definition at line 1078 of file PRMClass_tpl.h.
INLINE const Set< PRMAttribute< GUM_SCALAR > *> & gum::prm::PRMClass< GUM_SCALAR >::attributes | ( | ) | const |
Returns the set of PRMAttribute<GUM_SCALAR> of this Class<GUM_SCALAR>.
Definition at line 1016 of file PRMClass_tpl.h.
|
virtualinherited |
Returns true if elt belongs to this PRMClassElementContainer.
elt | A PRMClassElement<GUM_SCALAR>. |
Definition at line 170 of file PRMClassElementContainer_tpl.h.
void gum::prm::PRMClass< GUM_SCALAR >::completeInheritance | ( | const std::string & | attr | ) |
Definition at line 278 of file PRMClass_tpl.h.
|
virtualinherited |
Returns the gum::DAG of this PRMClassElementContainer.
Be very careful when using NodeId with PRMClassElement<GUM_SCALAR>: there is no guarantee that an inherited PRMClassElement<GUM_SCALAR> will have the same NodeId than its superclass counterpart.
When dealing with different classes and interfaces ALWAYS use safe-name as identifier.
Definition at line 178 of file PRMClassElementContainer_tpl.h.
|
protectedvirtualinherited |
Copy the IO Flags of c in this PRMClassElementContainer.
c | A PRMClassElementContainer. |
Definition at line 36 of file PRMClassElementContainer_tpl.h.
|
protectedvirtual |
returns a constant reference over this interface's dag.
Implements gum::prm::PRMClassElementContainer< GUM_SCALAR >.
Definition at line 969 of file PRMClass_tpl.h.
|
protectedvirtual |
Returns a non constant reference over this PRMInterface<GUM_SCALAR>'s DAG.
Implements gum::prm::PRMClassElementContainer< GUM_SCALAR >.
Definition at line 974 of file PRMClass_tpl.h.
|
inlinestaticinherited |
|
virtualinherited |
Returns true if a member with the given name exists in this PRMClassElementContainer or in the PRMClassElementContainer hierarchy.
Definition at line 162 of file PRMClassElementContainer_tpl.h.
|
virtualinherited |
Returns true if a member with the given id exists in this PRMClassElementContainer or in the PRMClassElementContainer hierarchy.
id | A NodeId. |
Definition at line 157 of file PRMClassElementContainer_tpl.h.
INLINE const Set< PRMClass< GUM_SCALAR > *> & gum::prm::PRMClass< GUM_SCALAR >::extensions | ( | ) | const |
Returns the set of Class<GUM_SCALAR> which are direct sub-Class<GUM_SCALAR> of this Class<GUM_SCALAR>.
Definition at line 1181 of file PRMClass_tpl.h.
|
protectedvirtual |
Fills set with all the subtypes of this Class<GUM_SCALAR>.
Implements gum::prm::PRMClassElementContainer< GUM_SCALAR >.
Definition at line 923 of file PRMClass_tpl.h.
|
virtual |
See gum::prm::PRMClassElementContainer<GUM_SCALAR>::get(NodeId).
Implements gum::prm::PRMClassElementContainer< GUM_SCALAR >.
Definition at line 979 of file PRMClass_tpl.h.
|
virtual |
See gum::prm::PRMClassElementContainer<GUM_SCALAR>::get(NodeId).
Implements gum::prm::PRMClassElementContainer< GUM_SCALAR >.
Definition at line 988 of file PRMClass_tpl.h.
|
virtual |
See gum::prm::PRMClassElementContainer<GUM_SCALAR>::get(const std::string&).
Implements gum::prm::PRMClassElementContainer< GUM_SCALAR >.
Definition at line 997 of file PRMClass_tpl.h.
|
virtual |
See gum::prm::PRMClassElementContainer<GUM_SCALAR>::get(const std::string&).
Implements gum::prm::PRMClassElementContainer< GUM_SCALAR >.
Definition at line 1007 of file PRMClass_tpl.h.
|
protectedvirtualinherited |
Returns the IO flags of a PRMClassElement<GUM_SCALAR>.
elt | The PRMClassElement<GUM_SCALAR>. |
NotFound | Raised if elt does not have any IO flags. |
Definition at line 128 of file PRMClassElementContainer_tpl.h.
|
protectedvirtualinherited |
Returns the IO flags of a PRMClassElement<GUM_SCALAR>.
elt | The PRMClassElement<GUM_SCALAR>. |
NotFound | Raised if elt does not have any IO flags. |
Definition at line 138 of file PRMClassElementContainer_tpl.h.
INLINE const Set< PRMInterface< GUM_SCALAR > *> & gum::prm::PRMClass< GUM_SCALAR >::implements | ( | ) | const |
Returns the Set of PRMInterface<GUM_SCALAR> implemented by this Class<GUM_SCALAR>.
NotFound | Raised if this Class<GUM_SCALAR> doesn't implement any PRMInterface<GUM_SCALAR>. |
Definition at line 1103 of file PRMClass_tpl.h.
void gum::prm::PRMClass< GUM_SCALAR >::inheritAggregates | ( | ) |
Definition at line 219 of file PRMClass_tpl.h.
void gum::prm::PRMClass< GUM_SCALAR >::inheritAttributes | ( | ) |
Definition at line 191 of file PRMClass_tpl.h.
void gum::prm::PRMClass< GUM_SCALAR >::inheritParameters | ( | ) |
Definition at line 172 of file PRMClass_tpl.h.
void gum::prm::PRMClass< GUM_SCALAR >::inheritReferenceSlots | ( | ) |
Definition at line 146 of file PRMClass_tpl.h.
void gum::prm::PRMClass< GUM_SCALAR >::inheritSlotChains | ( | ) |
Definition at line 250 of file PRMClass_tpl.h.
void gum::prm::PRMClass< GUM_SCALAR >::initializeInheritance | ( | ) |
Definition at line 128 of file PRMClass_tpl.h.
INLINE bool gum::prm::PRMClass< GUM_SCALAR >::isCastDescendant | ( | const std::string & | safe_name | ) | const |
Return true if the attribute named safe_name is a cast descendant.
Cast descendant are automatically added PRMAttribute<GUM_SCALAR> for type casting.
safe_name | The safe name of an PRMAttribute<GUM_SCALAR> of this class. |
NotFound | Raised if safe_name does not name an PRMAttribute<GUM_SCALAR> in this Class<GUM_SCALAR>. |
Definition at line 1191 of file PRMClass_tpl.h.
Returns true if obj_ptr is of type Class.
Definition at line 109 of file PRMObject.h.
References gum::prm::PRMObject::PRMObject().
|
virtualinherited |
Returns true if the node is an inner node.
PRMAttribute or PRMAggregate can either be input, output, both or internal nodes.
By defaut, attributes and aggregates are inner nodes.
elt | A PRMClassElement<GUM_SCALAR>. |
NotFound | Raised if NodeId does'nt match any PRMClassElement<GUM_SCALAR> in this. |
WrongClassElement | Raised if NodeId is neither an PRMAttribute nor an PRMAggregate. |
Definition at line 114 of file PRMClassElementContainer_tpl.h.
|
virtualinherited |
Returns true if the node is an input node.
PRMAttribute or PRMAggregate can either be input, output, both or internal nodes.
By defaut, attributes and aggregates are inner nodes.
elt | A PRMClassElement<GUM_SCALAR>. |
Definition at line 70 of file PRMClassElementContainer_tpl.h.
Returns true if obj_ptr is of type PRMInstance.
Definition at line 117 of file PRMObject.h.
References gum::prm::PRMObject::PRMObject().
Returns true if obj_ptr is of type PRMInterface.
Definition at line 112 of file PRMObject.h.
References gum::prm::PRMObject::PRMObject().
|
virtual |
Returns true if elt is an output node.
elt | A node of this class. |
Implements gum::prm::PRMClassElementContainer< GUM_SCALAR >.
Definition at line 1201 of file PRMClass_tpl.h.
|
virtual |
Test if this Class<GUM_SCALAR> is a subclass of cec.
If cec is a Class<GUM_SCALAR> then this Class<GUM_SCALAR> is a subclass of cec if they are equal or there exists a superclass of this Class<GUM_SCALAR> which is equal to cec.
If cec is an PRMInterface<GUM_SCALAR> then this Class<GUM_SCALAR> is a subclass of cec if it implements cec or if there exists a superclass of this Class<GUM_SCALAR> which implements cec.
cec | The PRMClassElementContainer<GUM_SCALAR> for which we determine if this Class<GUM_SCALAR> is a subclass of it. |
Implements gum::prm::PRMClassElementContainer< GUM_SCALAR >.
Definition at line 428 of file PRMClass_tpl.h.
|
virtualinherited |
Test if this PRMClassElementContainer is a super type of cec.
This returns cec.isSubTypeOf(*this).
cec |
Definition at line 122 of file PRMClassElementContainer_tpl.h.
|
inlinestaticinherited |
Enumeration of the different types of objects handled by a PRM.
The "all" type is used to tell that we want any kind of PRMType (useful with iterators for example). No PRMObject will ever have "all" as type.
Definition at line 79 of file PRMObject.h.
|
inherited |
Returns the name of this object.
Definition at line 34 of file PRMObject_inl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
|
inherited |
Change the name of the PRM Object.
Definition at line 38 of file PRMObject_inl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
|
virtual |
Implementation of pure virtual method of PRMObject.
Implements gum::prm::PRMObject.
Definition at line 964 of file PRMClass_tpl.h.
To PRMObject are equal if they have the same name (which is unique).
Definition at line 46 of file PRMObject_inl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
|
delete |
Copy operator. Don't use it.
|
delete |
Move operator. Don't use it.
To PRMObject are equal if they have the same name (which is unique).
Definition at line 42 of file PRMObject_inl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
|
virtual |
See gum::prm::PRMClassElementContainer<GUM_SCALAR>::operator[](NodeId).
Implements gum::prm::PRMClassElementContainer< GUM_SCALAR >.
Definition at line 1112 of file PRMClass_tpl.h.
|
virtual |
See gum::prm::PRMClassElementContainer<GUM_SCALAR>::operator[](NodeId).
Implements gum::prm::PRMClassElementContainer< GUM_SCALAR >.
Definition at line 1118 of file PRMClass_tpl.h.
|
virtual |
See gum::prm::PRMClassElementContainer<GUM_SCALAR>::operator[](const std::string&).
Implements gum::prm::PRMClassElementContainer< GUM_SCALAR >.
Definition at line 1124 of file PRMClass_tpl.h.
|
virtual |
See gum::prm::PRMClassElementContainer<GUM_SCALAR>::operator[](const std::string&).
Implements gum::prm::PRMClassElementContainer< GUM_SCALAR >.
Definition at line 1130 of file PRMClass_tpl.h.
|
virtual |
See gum::prm::overload(PRMClassElement<GUM_SCALAR>*).
Implements gum::prm::PRMClassElementContainer< GUM_SCALAR >.
Definition at line 703 of file PRMClass_tpl.h.
INLINE const Set< PRMParameter< GUM_SCALAR > *> & gum::prm::PRMClass< GUM_SCALAR >::parameters | ( | ) | const |
Returns the set of parameters of this Class<GUM_SCALAR>.
Definition at line 1021 of file PRMClass_tpl.h.
INLINE const Set< PRMReferenceSlot< GUM_SCALAR > *> & gum::prm::PRMClass< GUM_SCALAR >::referenceSlots | ( | ) | const |
Returns the set of PRMReferenceSlot<GUM_SCALAR> of this Class<GUM_SCALAR>.
Definition at line 1084 of file PRMClass_tpl.h.
|
inlinestaticinherited |
Enumeration of the different types of objects handled by a PRM.
The "all" type is used to tell that we want any kind of PRMType (useful with iterators for example). No PRMObject will ever have "all" as type.
Definition at line 80 of file PRMObject.h.
INLINE HashTable< std::string, const PRMParameter< GUM_SCALAR > *> gum::prm::PRMClass< GUM_SCALAR >::scope | ( | ) | const |
Returns all the parameters in the scope of this class.
&return all the parameters in the scope of this class.
Definition at line 1039 of file PRMClass_tpl.h.
|
virtualinherited |
Set the input flag value of id at b.
PRMAttribute or PRMAggregate can either be input, output, both or internal nodes.
By defaut, attributes and aggregates are inner nodes.
elt | A PRMClassElement<GUM_SCALAR>. |
b | The flag value. |
NotFound | Raised if id does'nt match any PRMClassElement<GUM_SCALAR> in this. |
WrongClassElement | Raised if NodeId is neither an PRMAttribute nor an PRMAggregate. |
Definition at line 78 of file PRMClassElementContainer_tpl.h.
|
protectedvirtualinherited |
Defines the IO flags of a PRMClassElement<GUM_SCALAR>.
elt | The PRMClassElement<GUM_SCALAR>. |
flags | The IO flags of elt. Overwrite any existing flags. |
NotFound | Raised if elt does not have any IO flags. |
Definition at line 149 of file PRMClassElementContainer_tpl.h.
|
virtualinherited |
Set the output flag value of id at b.
PRMAttribute or PRMAggregate can either be input, output, both or internal nodes.
By defaut, attributes and aggregates are inner nodes.
elt | A PRMClassElement<GUM_SCALAR>. |
b | The flag value. |
NotFound | Raised if id does'nt match any PRMClassElement<GUM_SCALAR> in this. |
WrongClassElement | Raised if NodeId is neither an PRMAttribute nor an PRMAggregate. |
Definition at line 94 of file PRMClassElementContainer_tpl.h.
INLINE const Set< PRMSlotChain< GUM_SCALAR > *> & gum::prm::PRMClass< GUM_SCALAR >::slotChains | ( | ) | const |
Returns the set of PRMSlotChain<GUM_SCALAR> of this Class<GUM_SCALAR>.
Definition at line 1089 of file PRMClass_tpl.h.
INLINE const PRMClass< GUM_SCALAR > & gum::prm::PRMClass< GUM_SCALAR >::super | ( | ) | const |
Returns the super Class<GUM_SCALAR> of this Class<GUM_SCALAR>.
NotFound | Raised if this has no super Class<GUM_SCALAR>. |
Definition at line 1094 of file PRMClass_tpl.h.
|
protectedvirtual |
See gum::prm::PRMClassElementContainer<GUM_SCALAR>(const PRMClassElement<GUM_SCALAR>&).
Implements gum::prm::PRMClassElementContainer< GUM_SCALAR >.
Definition at line 954 of file PRMClass_tpl.h.
|
friend |
Definition at line 66 of file PRMClass.h.
|
private |
The sequence of aggregate.
Definition at line 360 of file PRMClass.h.
|
private |
The sequence of PRMAttribute<GUM_SCALAR>s.
Definition at line 354 of file PRMClass.h.
|
private |
The bijection between variables in super and variables in this The bijection's firsts are attributes in this and its seconds are attributes in c.
Definition at line 397 of file PRMClass.h.
|
private |
The dag representing dependencies between formal attributes and slots.
Definition at line 337 of file PRMClass.h.
|
private |
a dummy member used to fix a compilation issue in clang4
Definition at line 400 of file PRMClass.h.
|
private |
The set of Class<GUM_SCALAR> which are extension of this Class<GUM_SCALAR> (i.e. direct subtypes).
Definition at line 392 of file PRMClass.h.
|
private |
The Set of implemented interface of this.
Definition at line 388 of file PRMClass.h.
|
private |
Mapping between a member's name and itself. Used for fast access to a member given it's name.
Definition at line 351 of file PRMClass.h.
|
private |
Mapping between node's id and their name (being an attribute or a slot). Used for fast access to a member given it's node id.
Definition at line 341 of file PRMClass.h.
|
private |
The Set of parameters in this Class<GUM_SCALAR>.
Definition at line 366 of file PRMClass.h.
|
private |
The sequence of PRMReferenceSlot<GUM_SCALAR>.
Definition at line 357 of file PRMClass.h.
|
private |
The set of gum::PRMSlotChain<GUM_SCALAR>s.
Definition at line 363 of file PRMClass.h.
|
private |
The alternate PRMClassElementContainer<GUM_SCALAR> searched for elements defined in this. Note that this is first searched for gum::PRMClassElement<GUM_SCALAR>.
Definition at line 385 of file PRMClass.h.