Move methods with more than two lines to outside of class definition
This commit is contained in:
@@ -82,11 +82,7 @@ class FactorGraph
|
||||
|
||||
size_t nrFacNodes (void) const { return facNodes_.size(); }
|
||||
|
||||
VarNode* getVarNode (VarId vid) const
|
||||
{
|
||||
VarMap::const_iterator it = varMap_.find (vid);
|
||||
return it != varMap_.end() ? it->second : 0;
|
||||
}
|
||||
VarNode* getVarNode (VarId vid) const;
|
||||
|
||||
void readFromUaiFormat (const char*);
|
||||
|
||||
@@ -166,6 +162,15 @@ class FactorGraph
|
||||
|
||||
|
||||
|
||||
inline VarNode*
|
||||
FactorGraph::getVarNode (VarId vid) const
|
||||
{
|
||||
VarMap::const_iterator it = varMap_.find (vid);
|
||||
return it != varMap_.end() ? it->second : 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
struct sortByVarId
|
||||
{
|
||||
bool operator()(VarNode* vn1, VarNode* vn2) {
|
||||
|
Reference in New Issue
Block a user