35 class PersistentDataHandleMap;
56 return a.handle_ == b.handle_;
72 return static_cast<uint64_t>(handle_);
83 using PersistentIDHandle::PersistentIDHandle;
88 using PersistentIDHandle::PersistentIDHandle;
100 handle_by_id_.
add(&
id, handle);
101 id_by_handle_.
add(handle, &
id);
ID and Library types, which are fundamental for sdna.
bool add(const Key &key, const Value &value)
Value lookup_default(const Key &key, const Value &default_value) const
PersistentObjectHandle lookup(Object *object) const
Collection * lookup(const PersistentCollectionHandle &handle) const
PersistentCollectionHandle lookup(Collection *collection) const
PersistentIDHandle lookup(ID *id) const
ID * lookup(const PersistentIDHandle &handle) const
void add(int32_t handle, ID &id)
Object * lookup(const PersistentObjectHandle &handle) const
friend bool operator!=(const PersistentDataHandle &a, const PersistentDataHandle &b)
friend bool operator==(const PersistentDataHandle &a, const PersistentDataHandle &b)
PersistentDataHandle(int handle)
friend std::ostream & operator<<(std::ostream &stream, const PersistentDataHandle &a)
unsigned __int64 uint64_t