improve constructor of VarNode

This commit is contained in:
Tiago Gomes 2012-04-23 22:40:36 +01:00
parent 3397f694fe
commit 0ebd6d6e06

View File

@ -15,8 +15,9 @@ class FacNode;
class VarNode : public Var class VarNode : public Var
{ {
public: public:
VarNode (VarId varId, unsigned nrStates) VarNode (VarId varId, unsigned nrStates,
: Var (varId, nrStates) { } int evidence = Constants::NO_EVIDENCE)
: Var (varId, nrStates, evidence) { }
VarNode (const Var* v) : Var (v) { } VarNode (const Var* v) : Var (v) { }