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 "Factor.h"
|
||||
#include "Indexer.h"
|
||||
#include "Var.h"
|
||||
|
||||
|
||||
|
@ -7,7 +7,6 @@
|
||||
#include <string>
|
||||
|
||||
#include "GenericFactor.h"
|
||||
#include "Indexer.h"
|
||||
#include "Util.h"
|
||||
|
||||
|
||||
|
@ -9,6 +9,7 @@
|
||||
#include "VarElim.h"
|
||||
#include "BeliefProp.h"
|
||||
#include "CountingBp.h"
|
||||
#include "Indexer.h"
|
||||
#include "Util.h"
|
||||
|
||||
|
||||
|
@ -5,6 +5,7 @@
|
||||
|
||||
#include "LiftedSolver.h"
|
||||
#include "ParfactorList.h"
|
||||
#include "Indexer.h"
|
||||
|
||||
|
||||
namespace Horus {
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
#include "Factor.h"
|
||||
#include "GenericFactor.h"
|
||||
#include "ProbFormula.h"
|
||||
#include "ConstraintTree.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&
|
||||
operator<< (std::ostream& os, const ProbFormula& f)
|
||||
{
|
||||
|
@ -63,6 +63,7 @@ class ProbFormula {
|
||||
static PrvGroup getNewGroup();
|
||||
|
||||
private:
|
||||
|
||||
friend bool operator== (
|
||||
const ProbFormula& f1, const ProbFormula& f2);
|
||||
|
||||
@ -80,6 +81,14 @@ class ProbFormula {
|
||||
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 {
|
||||
public:
|
||||
ObservedFormula (Symbol f, unsigned a, unsigned ev);
|
||||
|
Reference in New Issue
Block a user