Added constructor for ClusterNode

release/4.3a0
Frank Dellaert 2015-06-20 22:01:37 -07:00
parent 08f6f58af7
commit 263805a329
1 changed files with 5 additions and 0 deletions

View File

@ -41,6 +41,11 @@ namespace gtsam
typedef FastVector<sharedFactor> Factors;
typedef FastVector<boost::shared_ptr<Cluster> > Children;
Cluster() {}
Cluster(Key key, const Factors& factors) : factors(factors) {
orderedFrontalKeys.push_back(key);
}
Keys orderedFrontalKeys; ///< Frontal keys of this node
Factors factors; ///< Factors associated with this node
Children children; ///< sub-trees