added at() functions to PairConfig

release/4.3a0
Alex Cunningham 2010-06-08 17:08:56 +00:00
parent d2d6a26ff1
commit 8201c32046
1 changed files with 4 additions and 0 deletions

View File

@ -437,6 +437,10 @@ namespace gtsam {
const X1& operator[](const J1& j) const { return first_[j]; }
const X2& operator[](const J2& j) const { return second_[j]; }
/** member function version of access function */
const X1& at(const J1& j) const { return first_[j]; }
const X2& at(const J2& j) const { return second_[j]; }
/**
* size is the total number of variables in this config.
*/