~zorba-coders/zorba/bug_897616

« back to all changes in this revision

Viewing changes to src/store/naive/simple_index_general.h

  • Committer: Tarmac
  • Author(s): Markos Zaharioudakis
  • Date: 2011-11-07 06:22:47 UTC
  • mfrom: (10537.1.1 markos-scratch)
  • Revision ID: tarmac-20111107062247-2tzlhzuzqgshkyoo
trying to fix Windows compilation problem Approved: Markos Zaharioudakis

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
 
48
48
  const XQPCollator* getCollator() const { return theCollator; }
49
49
 
50
 
  uint32_t hash(const store::Item_t& key) const;
51
 
 
52
 
  bool equal(const store::Item_t& key1, const store::Item_t& key2) const;
53
 
 
54
 
  long compare(const store::Item_t& key1, const store::Item_t& key2) const;
55
 
 
56
 
  bool operator()(const store::Item_t& key1, const store::Item_t& key2) const
 
50
  uint32_t hash(const store::Item* key) const;
 
51
 
 
52
  bool equal(const store::Item* key1, const store::Item* key2) const;
 
53
 
 
54
  long compare(const store::Item* key1, const store::Item* key2) const;
 
55
 
 
56
  bool operator()(const store::Item* key1, const store::Item* key2) const
57
57
  {
58
58
    return compare(key1, key2) < 0;
59
59
  }
129
129
  friend class ProbeGeneralIndexIterator;
130
130
  friend class ProbeGeneralTreeIndexIterator;
131
131
 
132
 
  typedef std::pair<store::Item*, GeneralIndexValue*> IndexMapPair;
 
132
  typedef std::pair<const store::Item*, GeneralIndexValue*> IndexMapPair;
133
133
 
134
134
private:
135
135
  static const int64_t        theMaxLong;
197
197
  friend class ProbeGeneralIndexIterator;
198
198
  friend class ProbeGeneralHashIndexIterator;
199
199
 
200
 
  typedef HashMap<store::Item*,
 
200
  typedef HashMap<const store::Item*,
201
201
                  GeneralIndexValue*,
202
202
                  GeneralIndexCompareFunction> IndexMap;
203
203
 
248
248
  friend class ProbeGeneralIndexIterator;
249
249
  friend class ProbeGeneralTreeIndexIterator;
250
250
 
251
 
  typedef std::map<store::Item*,
 
251
  typedef std::map<const store::Item*,
252
252
                   GeneralIndexValue*,
253
253
                   GeneralIndexCompareFunction> IndexMap;
254
254
 
410
410
 
411
411
  void probeMap(
412
412
      const SchemaTypeCode targetMap,
413
 
      const AtomicItem_t& lowerKey,
414
 
      const AtomicItem_t& upperKey);
 
413
      const store::Item* lowerKey,
 
414
      const store::Item* upperKey);
415
415
 
416
416
  void checkStringKeyType(const AtomicItem* keyItem) const;
417
417
 
467
467
 
468
468
  void probeMap(
469
469
      const GeneralTreeIndex::IndexMap* targetMap,
470
 
      const AtomicItem_t& lowerKey,
471
 
      const AtomicItem_t& upperKey);
 
470
      const store::Item* lowerKey,
 
471
      const store::Item* upperKey);
472
472
 
473
473
public:
474
474
  ProbeGeneralTreeIndexIterator(const store::Index_t& index);