Improve Header guards

This commit is contained in:
Tiago Gomes 2013-02-06 22:58:42 +00:00
parent 80452bf75d
commit 7b60e88545
27 changed files with 80 additions and 80 deletions

View File

@ -1,5 +1,5 @@
#ifndef HORUS_BAYESBALL_H
#define HORUS_BAYESBALL_H
#ifndef PACKAGES_CLPBN_HORUS_BAYESBALL_H
#define PACKAGES_CLPBN_HORUS_BAYESBALL_H
#include <vector>
#include <queue>
@ -72,5 +72,5 @@ BayesBall::scheduleChilds (const BBNode* n, Scheduling& sch) const
}
}
#endif // HORUS_BAYESBALL_H
#endif // PACKAGES_CLPBN_HORUS_BAYESBALL_H

View File

@ -1,5 +1,5 @@
#ifndef HORUS_BAYESBALLGRAPH_H
#define HORUS_BAYESBALLGRAPH_H
#ifndef PACKAGES_CLPBN_HORUS_BAYESBALLGRAPH_H
#define PACKAGES_CLPBN_HORUS_BAYESBALLGRAPH_H
#include <vector>
#include <unordered_map>
@ -78,5 +78,5 @@ class BayesBallGraph
unordered_map<VarId, BBNode*> varMap_;
};
#endif // HORUS_BAYESBALLGRAPH_H
#endif // PACKAGES_CLPBN_HORUS_BAYESBALLGRAPH_H

View File

@ -1,5 +1,5 @@
#ifndef HORUS_BELIEFPROP_H
#define HORUS_BELIEFPROP_H
#ifndef PACKAGES_CLPBN_HORUS_BELIEFPROP_H
#define PACKAGES_CLPBN_HORUS_BELIEFPROP_H
#include <set>
#include <vector>
@ -176,5 +176,5 @@ BeliefProp::ninf (const FacNode* fac) const
return facsI_[fac->getIndex()];
}
#endif // HORUS_BELIEFPROP_H
#endif // PACKAGES_CLPBN_HORUS_BELIEFPROP_H

View File

@ -1,5 +1,5 @@
#ifndef HORUS_CONSTRAINTTREE_H
#define HORUS_CONSTRAINTTREE_H
#ifndef PACKAGES_CLPBN_HORUS_CONSTRAINTTREE_H
#define PACKAGES_CLPBN_HORUS_CONSTRAINTTREE_H
#include <cassert>
#include <algorithm>
@ -246,5 +246,5 @@ ConstraintTree::nrLogVars (void) const
assert (LogVarSet (logVars_) == logVarSet_);
}
#endif // HORUS_CONSTRAINTTREE_H
#endif // PACKAGES_CLPBN_HORUS_CONSTRAINTTREE_H

View File

@ -1,5 +1,5 @@
#ifndef HORUS_COUNTINGBP_H
#define HORUS_COUNTINGBP_H
#ifndef PACKAGES_CLPBN_HORUS_COUNTINGBP_H
#define PACKAGES_CLPBN_HORUS_COUNTINGBP_H
#include <unordered_map>
@ -212,5 +212,5 @@ CountingBp::setColor (const FacNode* fn, Color c)
facColors_[fn->getIndex()] = c;
}
#endif // HORUS_COUNTINGBP_H
#endif // PACKAGES_CLPBN_HORUS_COUNTINGBP_H

View File

@ -1,5 +1,5 @@
#ifndef HORUS_ELIMGRAPH_H
#define HORUS_ELIMGRAPH_H
#ifndef PACKAGES_CLPBN_HORUS_ELIMGRAPH_H
#define PACKAGES_CLPBN_HORUS_ELIMGRAPH_H
#include "unordered_map"
@ -169,5 +169,5 @@ ElimGraph::neighbors (EgNode* n1, EgNode* n2) const
return n1->isNeighbor (n2);
}
#endif // HORUS_ELIMGRAPH_H
#endif // PACKAGES_CLPBN_HORUS_ELIMGRAPH_H

View File

@ -1,5 +1,5 @@
#ifndef HORUS_FACTOR_H
#define HORUS_FACTOR_H
#ifndef PACKAGES_CLPBN_HORUS_FACTOR_H
#define PACKAGES_CLPBN_HORUS_FACTOR_H
#include <vector>
@ -364,5 +364,5 @@ class Factor : public TFactor<VarId>
DISALLOW_ASSIGN (Factor);
};
#endif // HORUS_FACTOR_H
#endif // PACKAGES_CLPBN_HORUS_FACTOR_H

View File

@ -1,5 +1,5 @@
#ifndef HORUS_FACTORGRAPH_H
#define HORUS_FACTORGRAPH_H
#ifndef PACKAGES_CLPBN_HORUS_FACTORGRAPH_H
#define PACKAGES_CLPBN_HORUS_FACTORGRAPH_H
#include <vector>
@ -179,5 +179,5 @@ struct sortByVarId
};
#endif // HORUS_FACTORGRAPH_H
#endif // PACKAGES_CLPBN_HORUS_FACTORGRAPH_H

View File

@ -1,5 +1,5 @@
#ifndef HORUS_GROUNDSOLVER_H
#define HORUS_GROUNDSOLVER_H
#ifndef PACKAGES_CLPBN_HORUS_GROUNDSOLVER_H
#define PACKAGES_CLPBN_HORUS_GROUNDSOLVER_H
#include <iomanip>
@ -34,5 +34,5 @@ class GroundSolver
DISALLOW_COPY_AND_ASSIGN (GroundSolver);
};
#endif // HORUS_GROUNDSOLVER_H
#endif // PACKAGES_CLPBN_HORUS_GROUNDSOLVER_H

View File

@ -1,5 +1,5 @@
#ifndef HORUS_HISTOGRAM_H
#define HORUS_HISTOGRAM_H
#ifndef PACKAGES_CLPBN_HORUS_HISTOGRAM_H
#define PACKAGES_CLPBN_HORUS_HISTOGRAM_H
#include <vector>

View File

@ -1,5 +1,5 @@
#ifndef HORUS_HORUS_H
#define HORUS_HORUS_H
#ifndef PACKAGES_CLPBN_HORUS_HORUS_H
#define PACKAGES_CLPBN_HORUS_HORUS_H
#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
TypeName(const TypeName&); \
@ -72,5 +72,5 @@ const unsigned PRECISION = 6;
};
#endif // HORUS_HORUS_H
#endif // PACKAGES_CLPBN_HORUS_HORUS_H

View File

@ -1,5 +1,5 @@
#ifndef HORUS_INDEXER_H
#define HORUS_INDEXER_H
#ifndef PACKAGES_CLPBN_HORUS_INDEXER_H
#define PACKAGES_CLPBN_HORUS_INDEXER_H
#include <algorithm>
#include <numeric>
@ -361,5 +361,5 @@ operator<< (std::ostream &os, const MapIndexer& indexer)
return os;
}
#endif // HORUS_INDEXER_H
#endif // PACKAGES_CLPBN_HORUS_INDEXER_H

View File

@ -1,5 +1,5 @@
#ifndef HORUS_LIFTEDBP_H
#define HORUS_LIFTEDBP_H
#ifndef PACKAGES_CLPBN_HORUS_LIFTEDBP_H
#define PACKAGES_CLPBN_HORUS_LIFTEDBP_H
#include "LiftedSolver.h"
#include "ParfactorList.h"
@ -41,5 +41,5 @@ class LiftedBp : public LiftedSolver
};
#endif // HORUS_LIFTEDBP_H
#endif // PACKAGES_CLPBN_HORUS_LIFTEDBP_H

View File

@ -1,5 +1,5 @@
#ifndef HORUS_LIFTEDKC_H
#define HORUS_LIFTEDKC_H
#ifndef PACKAGES_CLPBN_HORUS_LIFTEDKC_H
#define PACKAGES_CLPBN_HORUS_LIFTEDKC_H
#include "LiftedSolver.h"
#include "LiftedWCNF.h"
@ -298,5 +298,5 @@ class LiftedKc : public LiftedSolver
DISALLOW_COPY_AND_ASSIGN (LiftedKc);
};
#endif // HORUS_LIFTEDKC_H
#endif // PACKAGES_CLPBN_HORUS_LIFTEDKC_H

View File

@ -1,5 +1,5 @@
#ifndef HORUS_LIFTEDOPERATIONS_H
#define HORUS_LIFTEDOPERATIONS_H
#ifndef PACKAGES_CLPBN_HORUS_LIFTEDOPERATIONS_H
#define PACKAGES_CLPBN_HORUS_LIFTEDOPERATIONS_H
#include "ParfactorList.h"
@ -25,5 +25,5 @@ class LiftedOperations
DISALLOW_COPY_AND_ASSIGN (LiftedOperations);
};
#endif // HORUS_LIFTEDOPERATIONS_H
#endif // PACKAGES_CLPBN_HORUS_LIFTEDOPERATIONS_H

View File

@ -1,5 +1,5 @@
#ifndef HORUS_LIFTEDSOLVER_H
#define HORUS_LIFTEDSOLVER_H
#ifndef PACKAGES_CLPBN_HORUS_LIFTEDSOLVER_H
#define PACKAGES_CLPBN_HORUS_LIFTEDSOLVER_H
#include "ParfactorList.h"
#include "Horus.h"
@ -26,5 +26,5 @@ class LiftedSolver
DISALLOW_COPY_AND_ASSIGN (LiftedSolver);
};
#endif // HORUS_LIFTEDSOLVER_H
#endif // PACKAGES_CLPBN_HORUS_LIFTEDSOLVER_H

View File

@ -1,5 +1,5 @@
#ifndef HORUS_LIFTEDUTILS_H
#define HORUS_LIFTEDUTILS_H
#ifndef PACKAGES_CLPBN_HORUS_LIFTEDUTILS_H
#define PACKAGES_CLPBN_HORUS_LIFTEDUTILS_H
#include <string>
@ -208,5 +208,5 @@ Substitution::nrReplacements (void) const
}
#endif // HORUS_LIFTEDUTILS_H
#endif // PACKAGES_CLPBN_HORUS_LIFTEDUTILS_H

View File

@ -1,5 +1,5 @@
#ifndef HORUS_LIFTEDVE_H
#define HORUS_LIFTEDVE_H
#ifndef PACKAGES_CLPBN_HORUS_LIFTEDVE_H
#define PACKAGES_CLPBN_HORUS_LIFTEDVE_H
#include "LiftedSolver.h"
#include "ParfactorList.h"
@ -164,5 +164,5 @@ class LiftedVe : public LiftedSolver
DISALLOW_COPY_AND_ASSIGN (LiftedVe);
};
#endif // HORUS_LIFTEDVE_H
#endif // PACKAGES_CLPBN_HORUS_LIFTEDVE_H

View File

@ -1,5 +1,5 @@
#ifndef HORUS_LIFTEDWCNF_H
#define HORUS_LIFTEDWCNF_H
#ifndef PACKAGES_CLPBN_HORUS_LIFTEDWCNF_H
#define PACKAGES_CLPBN_HORUS_LIFTEDWCNF_H
#include <unordered_map>
@ -237,5 +237,5 @@ class LiftedWCNF
DISALLOW_COPY_AND_ASSIGN (LiftedWCNF);
};
#endif // HORUS_LIFTEDWCNF_H
#endif // PACKAGES_CLPBN_HORUS_LIFTEDWCNF_H

View File

@ -1,5 +1,5 @@
#ifndef HORUS_PARFACTOR_H
#define HORUS_PARFACTOR_H
#ifndef PACKAGES_CLPBN_HORUS_PARFACTOR_H
#define PACKAGES_CLPBN_HORUS_PARFACTOR_H
#include "Factor.h"
#include "ProbFormula.h"
@ -117,5 +117,5 @@ class Parfactor : public TFactor<ProbFormula>
typedef vector<Parfactor*> Parfactors;
#endif // HORUS_PARFACTOR_H
#endif // PACKAGES_CLPBN_HORUS_PARFACTOR_H

View File

@ -1,5 +1,5 @@
#ifndef HORUS_PARFACTORLIST_H
#define HORUS_PARFACTORLIST_H
#ifndef PACKAGES_CLPBN_HORUS_PARFACTORLIST_H
#define PACKAGES_CLPBN_HORUS_PARFACTORLIST_H
#include <list>
@ -118,5 +118,5 @@ class ParfactorList
list<Parfactor*> pfList_;
};
#endif // HORUS_PARFACTORLIST_H
#endif // PACKAGES_CLPBN_HORUS_PARFACTORLIST_H

View File

@ -1,5 +1,5 @@
#ifndef HORUS_PROBFORMULA_H
#define HORUS_PROBFORMULA_H
#ifndef PACKAGES_CLPBN_HORUS_PROBFORMULA_H
#define PACKAGES_CLPBN_HORUS_PROBFORMULA_H
#include <limits>
@ -106,5 +106,5 @@ class ObservedFormula
typedef vector<ObservedFormula> ObservedFormulas;
#endif // HORUS_PROBFORMULA_H
#endif // PACKAGES_CLPBN_HORUS_PROBFORMULA_H

View File

@ -1,5 +1,5 @@
#ifndef HORUS_TINYSET_H
#define HORUS_TINYSET_H
#ifndef PACKAGES_CLPBN_HORUS_TINYSET_H
#define PACKAGES_CLPBN_HORUS_TINYSET_H
#include <algorithm>
@ -406,5 +406,5 @@ TinySet<T,C>::consistent (void) const
return true;
}
#endif // HORUS_TINYSET_H
#endif // PACKAGES_CLPBN_HORUS_TINYSET_H

View File

@ -1,5 +1,5 @@
#ifndef HORUS_UTIL_H
#define HORUS_UTIL_H
#ifndef PACKAGES_CLPBN_HORUS_UTIL_H
#define PACKAGES_CLPBN_HORUS_UTIL_H
#include <cmath>
#include <cassert>
@ -422,5 +422,5 @@ struct abs_diff_exp : public std::binary_function<T, T, T>
}
#endif // HORUS_UTIL_H
#endif // PACKAGES_CLPBN_HORUS_UTIL_H

View File

@ -1,5 +1,5 @@
#ifndef HORUS_VAR_H
#define HORUS_VAR_H
#ifndef PACKAGES_CLPBN_HORUS_VAR_H
#define PACKAGES_CLPBN_HORUS_VAR_H
#include <cassert>
@ -107,5 +107,5 @@ Var::operator!= (const Var& var) const
}
#endif // HORUS_VAR_H
#endif // PACKAGES_CLPBN_HORUS_VAR_H

View File

@ -1,5 +1,5 @@
#ifndef HORUS_VARELIM_H
#define HORUS_VARELIM_H
#ifndef PACKAGES_CLPBN_HORUS_VARELIM_H
#define PACKAGES_CLPBN_HORUS_VARELIM_H
#include "unordered_map"
@ -41,5 +41,5 @@ class VarElim : public GroundSolver
DISALLOW_COPY_AND_ASSIGN (VarElim);
};
#endif // HORUS_VARELIM_H
#endif // PACKAGES_CLPBN_HORUS_VARELIM_H

View File

@ -1,5 +1,5 @@
#ifndef HORUS_WEIGHTEDBP_H
#define HORUS_WEIGHTEDBP_H
#ifndef PACKAGES_CLPBN_HORUS_WEIGHTEDBP_H
#define PACKAGES_CLPBN_HORUS_WEIGHTEDBP_H
#include "BeliefProp.h"
@ -66,5 +66,5 @@ class WeightedBp : public BeliefProp
DISALLOW_COPY_AND_ASSIGN (WeightedBp);
};
#endif // HORUS_WEIGHTEDBP_H
#endif // PACKAGES_CLPBN_HORUS_WEIGHTEDBP_H