Commit 4119cf8c authored by Tiago Peixoto's avatar Tiago Peixoto

Add default constructors in search comparison functors

parent 2e1969c1
......@@ -101,6 +101,7 @@ private:
class AStarCmp
{
public:
AStarCmp() {}
AStarCmp(python::object cmp): _cmp(cmp) {}
template <class Value1, class Value2>
......@@ -116,6 +117,7 @@ private:
class AStarCmb
{
public:
AStarCmb() {}
AStarCmb(python::object cmb): _cmb(cmb) {}
template <class Value1, class Value2 >
......@@ -132,8 +134,9 @@ template <class Graph, class Value>
class AStarH
{
public:
AStarH() {}
AStarH(GraphInterface& gi, Graph& g, python::object h)
: _gi(gi), _h(h), _gp(retrieve_graph_view<Graph>(gi, g)) {}
: _h(h), _gp(retrieve_graph_view<Graph>(gi, g)) {}
Value operator()(GraphInterface::vertex_t v) const
{
......@@ -141,7 +144,6 @@ public:
}
private:
GraphInterface& _gi;
python::object _h;
std::shared_ptr<Graph> _gp;
};
......
......@@ -85,6 +85,7 @@ private:
class BFCmp
{
public:
BFCmp() {}
BFCmp(python::object cmp): _cmp(cmp) {}
template <class Value1, class Value2>
......@@ -100,6 +101,7 @@ private:
class BFCmb
{
public:
BFCmb() {}
BFCmb(python::object cmb): _cmb(cmb) {}
template <class Value1, class Value2 >
......
......@@ -94,6 +94,7 @@ private:
class DJKCmp
{
public:
DJKCmp() {}
DJKCmp(python::object cmp): _cmp(cmp) {}
template <class Value1, class Value2>
......@@ -109,6 +110,7 @@ private:
class DJKCmb
{
public:
DJKCmb() {}
DJKCmb(python::object cmb): _cmb(cmb) {}
template <class Value1, class Value2 >
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment