use the string argument in DiscreteKeys::print
parent
e920953309
commit
84b42ed392
|
@ -49,6 +49,7 @@ namespace gtsam {
|
||||||
|
|
||||||
void DiscreteKeys::print(const std::string& s,
|
void DiscreteKeys::print(const std::string& s,
|
||||||
const KeyFormatter& keyFormatter) const {
|
const KeyFormatter& keyFormatter) const {
|
||||||
|
std::cout << (s.empty() ? "" : s + " ") << std::endl;
|
||||||
for (auto&& dkey : *this) {
|
for (auto&& dkey : *this) {
|
||||||
std::cout << DefaultKeyFormatter(dkey.first) << " " << dkey.second
|
std::cout << DefaultKeyFormatter(dkey.first) << " " << dkey.second
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
|
|
Loading…
Reference in New Issue