Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F65379431
print_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
Mon, Jun 3, 09:15
Size
555 B
Mime Type
text/x-c++
Expires
Wed, Jun 5, 09:15 (2 d)
Engine
blob
Format
Raw Data
Handle
18059179
Attached To
R9484 sp4e-homework-lars-bertil
print_series.hh
View Options
#ifndef PRINTSERIES_HPP
#define PRINTSERIES_HPP
#include "dumper_series.hh"
class
PrintSeries
:
public
DumperSeries
{
public
:
PrintSeries
(
Series
&
series
,
int
maxiter
,
int
freq
)
:
DumperSeries
(
series
),
maxiter
(
maxiter
),
freq
(
freq
)
{}
virtual
~
PrintSeries
()
{}
void
setSeparator
(
std
::
string
in_sep
);
void
setPrecision
(
unsigned
int
precision
);
void
dump
(
std
::
ostream
&
os
=
std
::
cout
);
protected
:
int
freq
;
int
maxiter
;
std
::
string
sep
=
" "
;
// default value
unsigned
int
prec
=
4
;
// default value
};
// end class PrintSeries
#endif
Event Timeline
Log In to Comment