wrap key printing funcs and remove redundancy

release/4.3a0
Varun Agrawal 2021-09-10 11:53:06 -04:00
parent b3da7e0697
commit 0a8080f2fc
1 changed files with 9 additions and 6 deletions

View File

@ -75,12 +75,15 @@ size_t Z(size_t j);
} // namespace symbol_shorthand } // namespace symbol_shorthand
// Default keyformatter // Default keyformatter
void PrintKeyList(const gtsam::KeyList& keys); void PrintKeyList(
void PrintKeyList(const gtsam::KeyList& keys, string s); const gtsam::KeyList& keys, const string& s = "",
void PrintKeyVector(const gtsam::KeyVector& keys); const gtsam::KeyFormatter& keyFormatter = gtsam::DefaultKeyFormatter);
void PrintKeyVector(const gtsam::KeyVector& keys, string s); void PrintKeyVector(
void PrintKeySet(const gtsam::KeySet& keys); const gtsam::KeyVector& keys, const string& s = "",
void PrintKeySet(const gtsam::KeySet& keys, string s); const gtsam::KeyFormatter& keyFormatter = gtsam::DefaultKeyFormatter);
void PrintKeySet(
const gtsam::KeySet& keys, const string& s = "",
const gtsam::KeyFormatter& keyFormatter = gtsam::DefaultKeyFormatter);
#include <gtsam/inference/LabeledSymbol.h> #include <gtsam/inference/LabeledSymbol.h>
class LabeledSymbol { class LabeledSymbol {