Lines Matching refs:FloatWeightTpl
59 class FloatWeightTpl {
61 FloatWeightTpl() {} in FloatWeightTpl() function
63 FloatWeightTpl(T f) : value_(f) {} in FloatWeightTpl() function
65 FloatWeightTpl(const FloatWeightTpl<T> &w) : value_(w.value_) {} in FloatWeightTpl() function
67 FloatWeightTpl<T> &operator=(const FloatWeightTpl<T> &w) {
110 typedef FloatWeightTpl<float> FloatWeight;
113 inline bool operator==(const FloatWeightTpl<T> &w1,
114 const FloatWeightTpl<T> &w2) {
122 inline bool operator==(const FloatWeightTpl<double> &w1,
123 const FloatWeightTpl<double> &w2) {
127 inline bool operator==(const FloatWeightTpl<float> &w1,
128 const FloatWeightTpl<float> &w2) {
133 inline bool operator!=(const FloatWeightTpl<T> &w1,
134 const FloatWeightTpl<T> &w2) {
138 inline bool operator!=(const FloatWeightTpl<double> &w1,
139 const FloatWeightTpl<double> &w2) {
143 inline bool operator!=(const FloatWeightTpl<float> &w1,
144 const FloatWeightTpl<float> &w2) {
149 inline bool ApproxEqual(const FloatWeightTpl<T> &w1,
150 const FloatWeightTpl<T> &w2,
156 inline ostream &operator<<(ostream &strm, const FloatWeightTpl<T> &w) {
168 inline istream &operator>>(istream &strm, FloatWeightTpl<T> &w) {
172 w = FloatWeightTpl<T>(FloatLimits<T>::PosInfinity());
174 w = FloatWeightTpl<T>(FloatLimits<T>::NegInfinity());
181 w = FloatWeightTpl<T>(f);
189 class TropicalWeightTpl : public FloatWeightTpl<T> {
191 using FloatWeightTpl<T>::Value;
195 TropicalWeightTpl() : FloatWeightTpl<T>() {} in TropicalWeightTpl()
197 TropicalWeightTpl(T f) : FloatWeightTpl<T>(f) {} in TropicalWeightTpl()
199 TropicalWeightTpl(const TropicalWeightTpl<T> &w) : FloatWeightTpl<T>(w) {} in TropicalWeightTpl()
212 FloatWeightTpl<T>::GetPrecisionString(); in Type()
313 class LogWeightTpl : public FloatWeightTpl<T> {
315 using FloatWeightTpl<T>::Value;
319 LogWeightTpl() : FloatWeightTpl<T>() {} in LogWeightTpl()
321 LogWeightTpl(T f) : FloatWeightTpl<T>(f) {} in LogWeightTpl()
323 LogWeightTpl(const LogWeightTpl<T> &w) : FloatWeightTpl<T>(w) {} in LogWeightTpl()
337 static const string type = "log" + FloatWeightTpl<T>::GetPrecisionString(); in Type()
447 class MinMaxWeightTpl : public FloatWeightTpl<T> {
449 using FloatWeightTpl<T>::Value;
453 MinMaxWeightTpl() : FloatWeightTpl<T>() {} in MinMaxWeightTpl()
455 MinMaxWeightTpl(T f) : FloatWeightTpl<T>(f) {} in MinMaxWeightTpl()
457 MinMaxWeightTpl(const MinMaxWeightTpl<T> &w) : FloatWeightTpl<T>(w) {} in MinMaxWeightTpl()
472 FloatWeightTpl<T>::GetPrecisionString(); in Type()