This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/CLPBN/clpbn/bp/FgVarNode.h
2011-05-17 12:00:33 +01:00

29 lines
558 B
C++
Executable File

#ifndef BP_VARIABLE_H
#define BP_VARIABLE_H
#include <vector>
#include <string>
#include "Variable.h"
#include "Shared.h"
using namespace std;
class Factor;
class FgVarNode : public Variable
{
public:
FgVarNode (int varId, int dsize) : Variable (varId, dsize) { }
void addFactor (Factor* f) { factors_.push_back (f); }
vector<Factor*> getFactors (void) const { return factors_; }
private:
DISALLOW_COPY_AND_ASSIGN (FgVarNode);
// members
vector<Factor*> factors_;
};
#endif // BP_VARIABLE_H