Access to keys

release/4.3a0
Frank Dellaert 2010-01-11 00:53:53 +00:00
parent 71fe372fb3
commit e9b0bade03
1 changed files with 4 additions and 0 deletions

View File

@ -71,6 +71,10 @@ namespace gtsam {
return square_root_inverse_covariance_ * logmap(hx,measured_);
}
/** methods to retrieve both keys */
inline const std::string& key1() const { return key1_;}
inline const std::string& key2() const { return key2_;}
/** keys as a list */
inline std::list<std::string> keys() const { return keys_;}