![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
This is an abstract class used to tune search strategies in the gspan algorithm. More...
#include <agrum/PRM/gspan/searchStrategy.h>
Public Member Functions | |
Constructor and destructor. | |
SearchStrategy () | |
Default constructor. More... | |
SearchStrategy (const SearchStrategy< GUM_SCALAR > &from) | |
Copy constructor. More... | |
virtual | ~SearchStrategy () |
Destructor. More... | |
SearchStrategy< GUM_SCALAR > & | operator= (const SearchStrategy< GUM_SCALAR > &from) |
Copy operator. More... | |
Search methods. | |
void | setTree (DFSTree< GUM_SCALAR > *tree) |
virtual bool | accept_root (const Pattern *r)=0 |
virtual bool | accept_growth (const Pattern *parent, const Pattern *child, const EdgeGrowth< GUM_SCALAR > &growth)=0 |
virtual bool | operator() (LabelData *i, LabelData *j)=0 |
virtual bool | operator() (Pattern *i, Pattern *j)=0 |
Protected Attributes | |
DFSTree< GUM_SCALAR > * | tree_ |
Protected Member Functions | |
double | computeCost_ (const Pattern &p) |
This is an abstract class used to tune search strategies in the gspan algorithm.
Since GSpan uses a DFS to expand the search tree, this class works as a stack regarding adding and removing informations about the growths.
INLINE gum::prm::gspan::SearchStrategy< GUM_SCALAR >::SearchStrategy | ( | ) |
Default constructor.
Definition at line 195 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
INLINE gum::prm::gspan::SearchStrategy< GUM_SCALAR >::SearchStrategy | ( | const SearchStrategy< GUM_SCALAR > & | from | ) |
Copy constructor.
Definition at line 201 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
virtual |
Destructor.
Definition at line 207 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
pure virtual |
|
pure virtual |
|
protected |
Definition at line 35 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
pure virtual |
|
pure virtual |
INLINE SearchStrategy< GUM_SCALAR > & gum::prm::gspan::SearchStrategy< GUM_SCALAR >::operator= | ( | const SearchStrategy< GUM_SCALAR > & | from | ) |
Copy operator.
Definition at line 213 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
INLINE void gum::prm::gspan::SearchStrategy< GUM_SCALAR >::setTree | ( | DFSTree< GUM_SCALAR > * | tree | ) |
Definition at line 219 of file searchStrategy_tpl.h.
References gum::prm::gspan::operator<<().
|
protected |
Definition at line 111 of file searchStrategy.h.