From 9a1d1f01bc55e7617c4ca6fb57b9aa1369717d62 Mon Sep 17 00:00:00 2001 From: Alex Cunningham Date: Tue, 12 Nov 2013 14:04:48 +0000 Subject: [PATCH] Added serialization to KeyVector, KeyList and KeySet --- gtsam.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtsam.h b/gtsam.h index 47930ad6b..7fa4b23e5 100644 --- a/gtsam.h +++ b/gtsam.h @@ -1651,6 +1651,8 @@ class KeyList { void pop_front(); void sort(); void remove(size_t key); + + void serialize() const; }; // Actually a FastSet @@ -1673,6 +1675,8 @@ class KeySet { void insert(size_t key); bool erase(size_t key); // returns true if value was removed bool count(size_t key) const; // returns true if value exists + + void serialize() const; }; // Actually a vector @@ -1694,6 +1698,8 @@ class KeyVector { size_t front() const; size_t back() const; void push_back(size_t key) const; + + void serialize() const; }; #include