Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F79790444
dumper_series.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Aug 28, 06:22
Size
737 B
Mime Type
text/x-c++
Expires
Fri, Aug 30, 06:22 (2 d)
Engine
blob
Format
Raw Data
Handle
20231664
Attached To
R7571 SP4E-TB-TL-FR
dumper_series.hh
View Options
#ifndef __DUMPER_SERIES_HH__
#define __DUMPER_SERIES_HH__
/* -------------------------------------------------------------------------- */
#include "series.hh"
#include <iomanip>
/* -------------------------------------------------------------------------- */
class
DumperSeries
{
public
:
DumperSeries
(
Series
&
series
)
:
series
(
series
){};
virtual
void
dump
(
std
::
ostream
&
os
)
=
0
;
void
setPrecision
(
UInt
precision
)
{
this
->
precision
=
precision
;
}
void
setMaxIter
(
UInt
maxiter
)
{
this
->
maxiter
=
maxiter
;
}
protected
:
Series
&
series
;
UInt
precision
=
4
;
UInt
maxiter
=
100
;
};
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
DumperSeries
&
dumper
)
{
dumper
.
dump
(
os
);
return
os
;
}
#endif
/* __DUMPER_SERIES_HH__ */
Event Timeline
Log In to Comment