utilities.cpp
Go to the documentation of this file.
1 #include <gtsam/base/utilities.h>
2 
3 namespace gtsam {
4 
5 std::string RedirectCout::str() const {
6  return ssBuffer_.str();
7 }
8 
10  std::cout.rdbuf(coutBuffer_);
11 }
12 
13 }
std::string str() const
return the string
Definition: utilities.cpp:5
traits
Definition: chartTesting.h:28
~RedirectCout()
destructor – redirect stdout buffer to its original buffer
Definition: utilities.cpp:9
std::streambuf * coutBuffer_
std::stringstream ssBuffer_


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:40:43