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
5{
6public:
7 unsigned min_width;
8 unsigned precision;
10 typedef enum
11 {
15 } stylet;
17
22
23 explicit format_spect(stylet _style)
24 : min_width(0), precision(6), zero_padding(false), style(_style)
25 {
26 }
27
29 {
31 }
32
34 {
35 return format_spect(AUTOMATIC);
36 }
37};
38
39#endif
format_spect(stylet _style)
Definition format_spec.h:23
stylet
Definition format_spec.h:11
@ DECIMAL
Definition format_spec.h:12
@ SCIENTIFIC
Definition format_spec.h:13
@ AUTOMATIC
Definition format_spec.h:14
stylet style
Definition format_spec.h:16
format_spect()
Definition format_spec.h:18
bool zero_padding
Definition format_spec.h:9
unsigned precision
Definition format_spec.h:8
unsigned min_width
Definition format_spec.h:7
static format_spect automatic()
Definition format_spec.h:33
static format_spect scientific()
Definition format_spec.h:28
#define false
Definition stdbool.h:10