keys now returns const references

release/4.3a0
Frank Dellaert 2009-09-03 17:24:46 +00:00
parent 2357e8aefc
commit 012437c573
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ namespace gtsam {
/** get functions */
double get_sigma() const {return sigma_;}
Vector get_measurement() const {return z_;}
std::list<std::string> get_keys() const {return keys_;}
const std::list<std::string>& get_keys() const {return keys_;}
void set_keys(std::list<std::string> keys) {keys_ = keys;}
/** calculate the error of the factor */