From 266ad062fe79c40b43a615bd50b90a23e367be31 Mon Sep 17 00:00:00 2001 From: Kai Ni Date: Tue, 9 Mar 2010 22:26:24 +0000 Subject: [PATCH] added empty method --- cpp/LieConfig.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cpp/LieConfig.h b/cpp/LieConfig.h index ab5678129..1e4ce3309 100644 --- a/cpp/LieConfig.h +++ b/cpp/LieConfig.h @@ -68,6 +68,9 @@ namespace gtsam { /** The number of variables in this config */ size_t size() const { return values_.size(); } + /** whether the config is empty */ + bool empty() const { return values_.empty(); } + /** * The dimensionality of the tangent space */