gtsam
base
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
9
RedirectCout::~RedirectCout
() {
10
std::cout.rdbuf(
coutBuffer_
);
11
}
12
13
}
gtsam::RedirectCout::str
std::string str() const
return the string
Definition:
utilities.cpp:5
utilities.h
gtsam
traits
Definition:
chartTesting.h:28
gtsam::RedirectCout::~RedirectCout
~RedirectCout()
destructor – redirect stdout buffer to its original buffer
Definition:
utilities.cpp:9
gtsam::RedirectCout::coutBuffer_
std::streambuf * coutBuffer_
Definition:
base/utilities.h:26
gtsam::RedirectCout::ssBuffer_
std::stringstream ssBuffer_
Definition:
base/utilities.h:25
gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:40:43