Home | History | Annotate | Download | only in indexeddb

Lines Matching refs:idbKey

37 class IDBKey : public GarbageCollectedFinalized<IDBKey> {
39 typedef HeapVector<Member<IDBKey> > KeyArray;
41 static IDBKey* createInvalid()
43 return new IDBKey();
46 static IDBKey* createNumber(double number)
48 return new IDBKey(NumberType, number);
51 static IDBKey* createBinary(PassRefPtr<SharedBuffer> binary)
53 return new IDBKey(binary);
56 static IDBKey* createString(const String& string)
58 return new IDBKey(string);
61 static IDBKey* createDate(double date)
63 return new IDBKey(DateType, date);
66 static IDBKey* createMultiEntryArray(const KeyArray& array)
85 IDBKey* idbKey = new IDBKey(result);
86 ASSERT(idbKey->isValid());
87 return idbKey;
90 static IDBKey* createArray(const KeyArray& array)
92 return new IDBKey(array);
95 ~IDBKey();
142 int compare(const IDBKey* other) const;
143 bool isLessThan(const IDBKey* other) const;
144 bool isEqual(const IDBKey* other) const;
147 IDBKey() : m_type(InvalidType), m_number(0) { }
148 IDBKey(Type type, double number) : m_type(type), m_number(number) { }
149 explicit IDBKey(const String& value) : m_type(StringType), m_string(value), m_number(0) { }
150 explicit IDBKey(PassRefPtr<SharedBuffer> value) : m_type(BinaryType), m_binary(value), m_number(0) { }
151 explicit IDBKey(const KeyArray& keyArray) : m_type(ArrayType), m_array(keyArray), m_number(0) { }