Lines Matching defs:Key
0 // Key.h
36 // Key
38 \class Key
46 class Key : private key {
48 Key() {}
49 Key(const Key &k) : key(k) {}
50 ~Key() {}
52 static Key* CastFrom(key* k)
53 { return static_cast<Key*>(k); }
54 static const Key* CastFrom(const key* k)
55 { return static_cast<const Key*>(k); }
118 Key &operator=(const Key &k)
160 \brief Wraps a Key and adds format version information.
162 This class is much more useful than Key. It knows its format version and
173 VKey(const Key *k, uint32 version)
174 : fKey(const_cast<Key*>(k)), fVersion(version) {}
175 VKey(const Key *k) : fKey(NULL), fVersion(KEY_FORMAT_3_5) { SetTo(k); }
183 : fKey(new(nothrow) Key(*k.fKey)), fVersion(k.fVersion | ALLOCATED) {}
186 void SetTo(const Key *k, uint32 version)
189 fKey = const_cast<Key*>(k);
192 void SetTo(const Key *k)
195 fKey = const_cast<Key*>(k);
202 fKey = new(nothrow) Key;
255 fKey = new(nothrow) Key;
274 Key *fKey;