ESBMC
Efficient SMT-based Context-Bounded Model Checker
Loading...
Searching...
No Matches
format_spec.h
Go to the documentation of this file.
1
#ifndef CPROVER_FORMAT_SPEC_H
2
#define CPROVER_FORMAT_SPEC_H
3
4
class
format_spect
5
{
6
public
:
7
unsigned
min_width
;
8
unsigned
precision
;
9
bool
zero_padding
;
10
typedef
enum
11
{
12
DECIMAL
,
13
SCIENTIFIC
,
14
AUTOMATIC
15
}
stylet
;
16
stylet
style
;
17
18
format_spect
()
19
:
min_width
(0),
precision
(6),
zero_padding
(
false
),
style
(
AUTOMATIC
)
20
{
21
}
22
23
explicit
format_spect
(
stylet
_style)
24
:
min_width
(0),
precision
(6),
zero_padding
(
false
),
style
(_style)
25
{
26
}
27
28
static
format_spect
scientific
()
29
{
30
return
format_spect
(
SCIENTIFIC
);
31
}
32
33
static
format_spect
automatic
()
34
{
35
return
format_spect
(
AUTOMATIC
);
36
}
37
};
38
39
#endif
format_spect::format_spect
format_spect(stylet _style)
Definition
format_spec.h:23
format_spect::stylet
stylet
Definition
format_spec.h:11
format_spect::DECIMAL
@ DECIMAL
Definition
format_spec.h:12
format_spect::SCIENTIFIC
@ SCIENTIFIC
Definition
format_spec.h:13
format_spect::AUTOMATIC
@ AUTOMATIC
Definition
format_spec.h:14
format_spect::style
stylet style
Definition
format_spec.h:16
format_spect::format_spect
format_spect()
Definition
format_spec.h:18
format_spect::zero_padding
bool zero_padding
Definition
format_spec.h:9
format_spect::precision
unsigned precision
Definition
format_spec.h:8
format_spect::min_width
unsigned min_width
Definition
format_spec.h:7
format_spect::automatic
static format_spect automatic()
Definition
format_spec.h:33
format_spect::scientific
static format_spect scientific()
Definition
format_spec.h:28
false
#define false
Definition
stdbool.h:10
src
util
arith
format_spec.h
Generated by
1.15.0