GTSAM  4.0.2
C++ library for smoothing and mapping (SAM)
Public Member Functions | Friends | List of all members
gtsam::key_formatter Class Reference

#include <Key.h>

Public Member Functions

 key_formatter (KeyFormatter v)
 

Friends

GTSAM_EXPORT friend std::ostream & operator<< (std::ostream &, const key_formatter &)
 
GTSAM_EXPORT friend std::ostream & operator<< (std::ostream &, const StreamedKey &)
 

Detailed Description

Output stream manipulator that will format gtsam::Keys according to the given KeyFormatter, as long as Key values are wrapped in a gtsam::StreamedKey. LabeledSymbol and Symbol values do not have to be wrapped. usage: Key key = LabeledSymbol('x', 'A', 5); // cast to key type cout << key_formatter(MultiRobotKeyFormatter) << StreamedKey(key);


The documentation for this class was generated from the following file: