|
fmatvec
0.0.0
|
#include <atom.h>
Public Member Functions | |
| AdoptCurrentMessageStreamsUntilScopeExit (const Atom *src) | |
| AdoptCurrentMessageStreamsUntilScopeExit (const AdoptCurrentMessageStreamsUntilScopeExit &other)=delete | |
| AdoptCurrentMessageStreamsUntilScopeExit (AdoptCurrentMessageStreamsUntilScopeExit &&other) noexcept=delete | |
| AdoptCurrentMessageStreamsUntilScopeExit & | operator= (const AdoptCurrentMessageStreamsUntilScopeExit &other)=delete |
| AdoptCurrentMessageStreamsUntilScopeExit & | operator= (AdoptCurrentMessageStreamsUntilScopeExit &&other) noexcept=delete |
Private Attributes | |
| std::array< std::pair< std::shared_ptr< bool >, std::shared_ptr< std::ostream > >, Atom::SIZE > | savedStreams |
Adopt the current message streams for the livetime of this object. This can be used to set the current message streams to an existing object.
| fmatvec::AdoptCurrentMessageStreamsUntilScopeExit::AdoptCurrentMessageStreamsUntilScopeExit | ( | const Atom * | src | ) |
Save the current message streams and then set it to be equal to src. The current message streams are reset to the saved ones when this object goes out of scope.