involves is const
parent
5f848f272b
commit
d234365d53
|
@ -93,7 +93,7 @@ namespace gtsam {
|
||||||
Ordering keys() const;
|
Ordering keys() const;
|
||||||
|
|
||||||
/** Check whether a factor with this variable exists */
|
/** Check whether a factor with this variable exists */
|
||||||
bool involves(const std::string& key) {
|
bool involves(const std::string& key) const {
|
||||||
return !(indices_.find(key)==indices_.end());
|
return !(indices_.find(key)==indices_.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue