Move template definitions to source file and use explicite template instantiation.
This commit is contained in:
parent
063f3ff6e3
commit
7193d2238d
@ -5,6 +5,7 @@
|
|||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
#include "Factor.h"
|
#include "Factor.h"
|
||||||
|
#include "Indexer.h"
|
||||||
#include "Var.h"
|
#include "Var.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "GenericFactor.h"
|
#include "GenericFactor.h"
|
||||||
#include "Indexer.h"
|
|
||||||
#include "Util.h"
|
#include "Util.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
#include "VarElim.h"
|
#include "VarElim.h"
|
||||||
#include "BeliefProp.h"
|
#include "BeliefProp.h"
|
||||||
#include "CountingBp.h"
|
#include "CountingBp.h"
|
||||||
|
#include "Indexer.h"
|
||||||
#include "Util.h"
|
#include "Util.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
#include "LiftedSolver.h"
|
#include "LiftedSolver.h"
|
||||||
#include "ParfactorList.h"
|
#include "ParfactorList.h"
|
||||||
|
#include "Indexer.h"
|
||||||
|
|
||||||
|
|
||||||
namespace Horus {
|
namespace Horus {
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "Factor.h"
|
#include "GenericFactor.h"
|
||||||
#include "ProbFormula.h"
|
#include "ProbFormula.h"
|
||||||
#include "ConstraintTree.h"
|
#include "ConstraintTree.h"
|
||||||
#include "LiftedUtils.h"
|
#include "LiftedUtils.h"
|
||||||
|
@ -100,15 +100,6 @@ ProbFormula::rename (LogVar oldName, LogVar newName)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
bool
|
|
||||||
operator== (const ProbFormula& f1, const ProbFormula& f2)
|
|
||||||
{
|
|
||||||
return f1.group_ == f2.group_ &&
|
|
||||||
f1.logVars_ == f2.logVars_;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
std::ostream&
|
std::ostream&
|
||||||
operator<< (std::ostream& os, const ProbFormula& f)
|
operator<< (std::ostream& os, const ProbFormula& f)
|
||||||
{
|
{
|
||||||
|
@ -63,6 +63,7 @@ class ProbFormula {
|
|||||||
static PrvGroup getNewGroup();
|
static PrvGroup getNewGroup();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
friend bool operator== (
|
friend bool operator== (
|
||||||
const ProbFormula& f1, const ProbFormula& f2);
|
const ProbFormula& f1, const ProbFormula& f2);
|
||||||
|
|
||||||
@ -80,6 +81,14 @@ class ProbFormula {
|
|||||||
typedef std::vector<ProbFormula> ProbFormulas;
|
typedef std::vector<ProbFormula> ProbFormulas;
|
||||||
|
|
||||||
|
|
||||||
|
inline bool
|
||||||
|
operator== (const ProbFormula& f1, const ProbFormula& f2)
|
||||||
|
{
|
||||||
|
return f1.group_ == f2.group_ && f1.logVars_ == f2.logVars_;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class ObservedFormula {
|
class ObservedFormula {
|
||||||
public:
|
public:
|
||||||
ObservedFormula (Symbol f, unsigned a, unsigned ev);
|
ObservedFormula (Symbol f, unsigned a, unsigned ev);
|
||||||
|
Reference in New Issue
Block a user