Lines Matching refs:SparseTupleWeight
48 template <class W, class K> class SparseTupleWeight; variable
54 istream &operator>>(istream &strm, SparseTupleWeight<W, K> &w);
60 class SparseTupleWeight {
63 typedef SparseTupleWeight<typename W::ReverseWeight, K> ReverseWeight;
66 SparseTupleWeight() { in SparseTupleWeight() function
71 SparseTupleWeight(Iterator begin, Iterator end) { in SparseTupleWeight() function
79 SparseTupleWeight(const K& key, const W &w) { in SparseTupleWeight() function
84 SparseTupleWeight(const W &w) { in SparseTupleWeight() function
88 SparseTupleWeight(const SparseTupleWeight<W, K> &w) { in SparseTupleWeight() function
96 static const SparseTupleWeight<W, K> &Zero() { in Zero()
97 static SparseTupleWeight<W, K> zero; in Zero()
101 static const SparseTupleWeight<W, K> &One() { in One()
102 static SparseTupleWeight<W, K> one(W::One()); in One()
106 static const SparseTupleWeight<W, K> &NoWeight() { in NoWeight()
107 static SparseTupleWeight<W, K> no_weight(W::NoWeight()); in NoWeight()
123 SparseTupleWeight<W, K> &operator=(const SparseTupleWeight<W, K> &w) {
151 SparseTupleWeight<W, K> Quantize(float delta = kDelta) const {
152 SparseTupleWeight<W, K> w;
160 SparseTupleWeight<W, K> w; in Reverse()
205 istream&, SparseTupleWeight<W, K>&, char separator);
208 istream&, SparseTupleWeight<W, K>&,
221 friend istream &operator>><W, K>(istream&, SparseTupleWeight<W, K>&);
228 typedef typename SparseTupleWeight<W, K>::Pair Pair;
232 explicit SparseTupleWeightIterator(const SparseTupleWeight<W, K>& w) in SparseTupleWeightIterator()
238 return first_.first == SparseTupleWeight<W, K>::kNoKey; in Done()
268 SparseTupleWeight<W, K>* ret, in SparseTupleWeightMap()
269 const SparseTupleWeight<W, K>& w1, in SparseTupleWeightMap()
270 const SparseTupleWeight<W, K>& w2, in SparseTupleWeightMap()
297 inline bool operator==(const SparseTupleWeight<W, K> &w1,
298 const SparseTupleWeight<W, K> &w2) {
326 inline bool operator!=(const SparseTupleWeight<W, K> &w1,
327 const SparseTupleWeight<W, K> &w2) {
332 inline ostream &operator<<(ostream &strm, const SparseTupleWeight<W, K> &w) {
373 inline istream &operator>>(istream &strm, SparseTupleWeight<W, K> &w) {
387 return SparseTupleWeight<W, K>::ReadWithParen(
391 return SparseTupleWeight<W, K>::ReadNoParen(strm, w, separator);
397 inline istream& SparseTupleWeight<W, K>::ReadNoParen( in ReadNoParen()
399 SparseTupleWeight<W, K> &w, in ReadNoParen()
491 inline istream& SparseTupleWeight<W, K>::ReadWithParen( in ReadWithParen()
493 SparseTupleWeight<W, K> &w, in ReadWithParen()