add print

release/4.3a0
thduynguyen 2014-12-09 06:12:41 -05:00
parent 3aa7fd6d18
commit a4f8ead2a6
1 changed files with 7 additions and 1 deletions

View File

@ -94,11 +94,17 @@ public:
virtual ~LinearConstraint() {
}
// Testable interface
/** equals */
virtual bool equals(const GaussianFactor& lf, double tol = 1e-9) const {
return Base::equals(lf, tol);
}
/** print */
virtual void print(const std::string& s = "", const KeyFormatter& formatter =
DefaultKeyFormatter) const {
Base::print(s, formatter);
}
/** Clone this LinearConstraint */
virtual GaussianFactor::shared_ptr clone() const {
return boost::static_pointer_cast<GaussianFactor>(