added empty method

release/4.3a0
Kai Ni 2010-03-09 22:26:24 +00:00
parent fd863fa7ac
commit 266ad062fe
1 changed files with 3 additions and 0 deletions

View File

@ -68,6 +68,9 @@ namespace gtsam {
/** The number of variables in this config */ /** The number of variables in this config */
size_t size() const { return values_.size(); } size_t size() const { return values_.size(); }
/** whether the config is empty */
bool empty() const { return values_.empty(); }
/** /**
* The dimensionality of the tangent space * The dimensionality of the tangent space
*/ */