![]() |
aGrUM
0.14.2
|
the "meta-programming" class for storing several structural constraints More...
#include <type_traits>
#include <agrum/agrum.h>
#include <agrum/graphs/diGraph.h>
#include <agrum/learning/structureUtils/graphChange.h>
#include <agrum/learning/constraints/structuralConstraintSetStatic_tpl.h>
Go to the source code of this file.
Classes | |
class | gum::learning::StructuralConstraintSetStatic< CONSTRAINT1, OTHER_CONSTRAINTS > |
the "meta-programming" class for storing structural constraintsIn aGrUM, there are two ways to store sets of structural constraints: the first one is to put them into a StructuralConstraintSetDynamic. More... | |
Namespaces | |
gum | |
gum is the global namespace for all aGrUM entities | |
gum::learning | |
the "meta-programming" class for storing several structural constraints
In aGrUM, there are two ways to store sets of structural constraints: the first one is to put them into a StructuralConstraintSetDynamic. This class allows to add at runtime any constraint you wish. As such, it is very generic but, by not knowing at compile time the constraints that will be stored into the vector, calling its methods has a slight overhead. On the other hand, if you already know all the constraints you wish to apply, the StructuralConstraintSetStatic is better suited because it will compute at compile time how to call the constraint's methods in a most efficient way: if these methods are inlined, there will be no overhead at all when calling these methods. This file defines the StructuralConstraintSetStatic class.
Definition in file structuralConstraintSetStatic.h.