17 #ifndef HH_SENF_Utils_Format_ 18 #define HH_SENF_Utils_Format_ 1 23 #include <boost/utility/enable_if.hpp> 24 #include <boost/type_traits/is_signed.hpp> 25 #include <boost/type_traits/is_unsigned.hpp> 114 streamable_type
eng(
float v,
float d=NAN);
121 eng(
float v,
float d = std::numeric_limits<float>::quiet_NaN());
123 eng
const & setw(
unsigned w = 1)
const;
124 eng
const & setprecision(
unsigned p)
const;
125 eng
const & setfill(
char c)
const;
127 eng
const & showbase()
const;
128 eng
const & noshowbase()
const;
129 eng
const & showpos()
const;
130 eng
const & noshowpos()
const;
131 eng
const & showpoint()
const;
132 eng
const & noshowpoint()
const;
133 eng
const & uppercase()
const;
134 eng
const & nouppercase()
const;
135 eng
const & left()
const;
136 eng
const &
internal()
const;
137 eng
const & right()
const;
143 mutable bool haveWidth_;
144 mutable unsigned width_;
145 mutable bool havePrecision_;
146 mutable unsigned precision_;
147 mutable bool haveFill_;
149 mutable std::ios_base::fmtflags mask_;
150 mutable std::ios_base::fmtflags flags_;
152 friend std::ostream &
operator<<(std::ostream & os, eng
const & v);
156 std::ostream &
operator<<(std::ostream & os, eng
const & v);
176 streamable_type
dumpint(T
const & v);
181 std::string
dumpint(T
const & v,
182 typename boost::enable_if<boost::is_signed<T> >::
type * = 0);
185 std::string
dumpint(T
const & v,
186 typename boost::enable_if<boost::is_unsigned<T> >::
type * = 0);
189 std::string
dumpint(T
const & v,
190 typename boost::enable_if<boost::is_signed<typename T::value_type> >::
type * = 0);
193 std::string
dumpint(T
const & v,
194 typename boost::enable_if<boost::is_unsigned<typename T::value_type> >::
type * = 0);
230 static unsigned int static_level;
231 unsigned int instance_level;
241 unsigned int level()
const;
std::ostream & operator<<(std::ostream &os, CpuStat const &cs)
void format(Type const &value, std::ostream &os)