EntryKey
struct ShareVolume::EntryMap : HashMap<EntryKey, ShareDirEntry*> {
return fEntries->Get(EntryKey(localDirID, name));
return fEntries->Get(EntryKey(localDirID, name));
error = fEntries->Put(EntryKey(directory->GetID(), entry->GetName()),
fEntries->Remove(EntryKey(entry->GetDirectory()->GetID(),
EntryKey(ino_t directoryID, const char* name)
EntryKey(const EntryKey& other)
EntryKey& operator=(const EntryKey& other)
bool operator==(const EntryKey& other) const
bool operator!=(const EntryKey& other) const
struct EntryKey;
return fEntries->Put(EntryKey(entry), entry);
fEntries->Remove(EntryKey(entry));
return fEntries->Get(EntryKey(dirID, name));
EntryKey(ino_t directoryID, const char* name)
EntryKey(Entry* entry)
EntryKey(const EntryKey& other)
EntryKey& operator=(const EntryKey& other)
bool operator==(const EntryKey& other) const
bool operator!=(const EntryKey& other) const
struct Volume::EntryMap : HashMap<EntryKey, Entry*> {
struct EntryKey;
return fEntries.Lookup(EntryKey(parent, name));
return fEntries.Lookup(EntryKey(parent, name));
typedef EntryKey KeyType;
size_t HashKey(const EntryKey& key) const
return HashKey(EntryKey(value->Parent(), value->Name()));
bool Compare(const EntryKey& key, const Entry* value) const
class EntryKey {
EntryKey(Entry* parent, const char* name)
EntryKey(Entry* parent, const String& name)
return fEntries.Lookup(EntryKey(parent, name));
return fEntries.Lookup(EntryKey(parent, name, nameLength));
typedef EntryKey KeyType;
size_t HashKey(const EntryKey& key) const
return HashKey(EntryKey(value->Parent(), value->Name()));
bool Compare(const EntryKey& key, const Entry* value) const
class EntryKey {
EntryKey(Entry* parent, const char* name, size_t nameLength)
EntryKey(Entry* parent, const char* name)