Go to the documentation of this file.
36 if (asSymbol.
chr() > 0) {
37 return (
string) asSymbol;
40 return std::to_string(
key);
46 cout <<
s << keyFormatter(
key);
52 if (asLabeledSymbol.
chr() > 0 && asLabeledSymbol.
label() > 0)
53 return (
string) asLabeledSymbol;
56 if (asLabeledSymbol.
chr() > 0) {
57 return (
string) asSymbol;
60 return std::to_string(
key);
65 template<
class CONTAINER>
70 cout <<
"(none)" << endl;
73 cout << keyFormatter(
key) <<
" ";
96 void *&key_formatter::property(ios_base &
s) {
97 static int kUniqueIndex = ios_base::xalloc();
98 return s.pword(kUniqueIndex);
104 property(
s) = (
void *)(&
f);
116 key_formatter::set_property(
os,
m.formatter_);
127 os << (*formatter)(streamedKey.
key_);
unsigned char chr() const
Retrieve key character.
void PrintKeyVector(const KeyVector &keys, const string &s, const KeyFormatter &keyFormatter)
Utility function to print sets of keys with optional prefix.
const KeyFormatter & formatter
ofstream os("timeSchurFactors.csv")
FastVector< Key > KeyVector
Define collection type once and for all - also used in wrappers.
KeyFormatter DefaultKeyFormatter
Assign default key formatter.
unsigned char chr() const
string _multirobotKeyFormatter(Key key)
void PrintKey(Key key, const string &s, const KeyFormatter &keyFormatter)
Utility function to print one key with optional prefix.
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
ostream & operator<<(ostream &os, const StreamedKey &streamedKey)
unsigned char label() const
Retrieve label character.
const gtsam::Symbol key('X', 0)
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
KeyFormatter MultiRobotKeyFormatter
To use the key_formatter on Keys, they must be wrapped in a StreamedKey.
string _defaultKeyFormatter(Key key)
void Print(const CONTAINER &keys, const string &s, const KeyFormatter &keyFormatter)
std::uint64_t Key
Integer nonlinear key type.
void PrintKeySet(const KeySet &keys, const string &s, const KeyFormatter &keyFormatter)
Utility function to print sets of keys with optional prefix.
void PrintKeyList(const KeyList &keys, const string &s, const KeyFormatter &keyFormatter)
Utility function to print sets of keys with optional prefix.
gtsam
Author(s):
autogenerated on Wed May 28 2025 03:01:37