fmatvec 0.0.0

Public Member Functions | Private Attributes | List of all members
fmatvec::AdoptCurrentMessageStreamsUntilScopeExit Class Reference

`#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

## Detailed Description

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.

## Constructor & Destructor Documentation

## ◆ AdoptCurrentMessageStreamsUntilScopeExit()

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.

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

- /mbsim-env/fmatvec/fmatvec/atom.h
- /mbsim-env/fmatvec/fmatvec/atom.cc