1 #ifndef MeasAlgoShapeletForm_H
2 #define MeasAlgoShapeletForm_H
14 namespace algorithms {
33 Form&
sci() {
_fmt = std::ios_base::scientific;
return *
this; }
35 Form&
gen() {
_fmt = ~std::ios_base::floatfield;
return *
this; }
46 Form&
internal() {
_just = std::ios_base::internal;
return *
this; }
58 friend std::ostream& operator<<(std::ostream&, const BoundForm<T>&);
65 std::ios_base::fmtflags
_fmt;
94 s.setf(f.
_fmt,std::ios_base::floatfield);
95 s.setf(f.
_just,std::ios_base::adjustfield);
99 if (f.
_doUpper>0) s.setf(std::ios_base::uppercase);
100 else s.unsetf(std::ios_base::uppercase);
103 if (f.
_doPlus>0) s.setf(std::ios_base::showpos);
104 else s.unsetf(std::ios_base::showpos);
107 if (f.
_doTrail>0) s.setf(std::ios_base::showpoint);
108 else s.unsetf(std::ios_base::showpoint);
114 s.setf(f.
_just,std::ios_base::adjustfield);
115 s.setf(f.
_base,std::ios_base::basefield);
119 if (f.
_doUpper>0) s.setf(std::ios_base::uppercase);
120 else s.unsetf(std::ios_base::uppercase);
123 if (f.
_doPlus>0) s.setf(std::ios_base::showpos);
124 else s.unsetf(std::ios_base::showpos);
126 if (f.
_base != std::ios_base::dec) s.setf(std::ios_base::showbase);
142 std::ostream& os,
const BoundForm<std::complex<long double> >& bf)
166 template <
typename T>
170 template <
typename T>
171 inline std::ostream& operator<<(std::ostream& os, const BoundForm<T>& bf)
173 std::ostringstream s;
176 if (bf.f._nTrail>0) s << std::string(bf.f._nTrail,bf.f._trailCh);
void setupFloat(std::ostream &s, const Form &f)
void setup(std::ostream &os, const BoundForm< double > &bf)
afw::table::Key< double > b
void setupInt(std::ostream &s, const Form &f)