ROSE
0.11.145.247
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
a
c
d
g
h
i
l
m
n
s
t
u
v
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
Enumerations
a
b
c
d
e
f
i
k
l
m
o
p
s
t
v
w
x
Enumerator
a
b
c
d
e
f
h
i
l
m
n
o
p
s
t
u
v
w
y
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
x
y
Related Symbols
b
i
o
Files
File List
Examples
src
Rose
FormatRestorer.h
1
#ifndef ROSE_FormatRestorer_H
2
#define ROSE_FormatRestorer_H
3
#include <RoseFirst.h>
4
5
#include <iostream>
6
53
class
FormatRestorer
{
54
protected
:
55
std::ostream &stream;
56
std::ios_base::fmtflags fmt;
57
58
public
:
60
FormatRestorer
(std::ostream &o): stream(o) {
61
save
(o);
62
}
60
FormatRestorer
(std::ostream &o): stream(o) {
…
}
63
65
~FormatRestorer
() {
66
restore
();
67
}
65
~FormatRestorer
() {
…
}
68
70
void
save
(std::ostream &o) {
71
fmt = o.flags();
72
}
70
void
save
(std::ostream &o) {
…
}
73
75
void
restore
() {
76
stream.flags(fmt);
77
}
75
void
restore
() {
…
}
78
};
53
class
FormatRestorer
{
…
};
79
80
#endif
FormatRestorer
Restores output stream flags to original values.
Definition
FormatRestorer.h:53
FormatRestorer::restore
void restore()
Restore saved flags.
Definition
FormatRestorer.h:75
FormatRestorer::~FormatRestorer
~FormatRestorer()
Destructor restores output stream flags.
Definition
FormatRestorer.h:65
FormatRestorer::save
void save(std::ostream &o)
Save current output stream flags.
Definition
FormatRestorer.h:70
FormatRestorer::FormatRestorer
FormatRestorer(std::ostream &o)
Constructor saves output stream flags.
Definition
FormatRestorer.h:60
Generated on Mon Mar 31 2025 00:23:31 for ROSE by
1.9.8