Lines Matching refs:WeightClass
77 class WeightClass {
79 WeightClass() : element_type_(ZERO), impl_(0) { } in WeightClass() function
82 explicit WeightClass(const W& weight) in WeightClass() function
85 WeightClass(const string &weight_type, const string &weight_str);
87 WeightClass(const WeightClass &other) : in WeightClass() function
91 WeightClass &operator = (const WeightClass &other) {
113 bool operator == (const WeightClass &other) const {
119 static const WeightClass &Zero() { in Zero()
120 static WeightClass w(ZERO); in Zero()
125 static const WeightClass &One() { in One()
126 static WeightClass w(ONE); in One()
138 ~WeightClass() { if (impl_) delete impl_; } in ~WeightClass()
145 explicit WeightClass(ElementType et) : element_type_(et), impl_(0) { } in WeightClass() function
147 friend ostream &operator << (ostream &o, const WeightClass &c);
151 const W* WeightClass::GetWeight() const { in GetWeight()
189 ostream& operator << (ostream &o, const WeightClass &c);