From f42f282438f976640f59910b7bc47ca1a44e8a0f Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Wed, 31 Aug 2022 16:54:17 -0400 Subject: [PATCH] rewrap KeyVector for Matlab wrapper --- gtsam/gtsam.i | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/gtsam/gtsam.i b/gtsam/gtsam.i index 2671f0ef7..00b4d05f8 100644 --- a/gtsam/gtsam.i +++ b/gtsam/gtsam.i @@ -66,6 +66,27 @@ class KeySet { void serialize() const; }; +// Actually a vector, needed for Matlab +class KeyVector { + KeyVector(); + KeyVector(const gtsam::KeyVector& other); + + // Note: no print function + + // common STL methods + size_t size() const; + bool empty() const; + void clear(); + + // structure specific methods + size_t at(size_t i) const; + size_t front() const; + size_t back() const; + void push_back(size_t key) const; + + void serialize() const; +}; + // Actually a FastMap class KeyGroupMap { KeyGroupMap();