MCPcopy Create free account
hub / github.com/Clarionos/clarion / db_ref

Class db_ref

tests/clio/database.cpp:249–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247
248template <typename T>
249struct db_ref
250{
251 db_ref(const cache::cache_record& c) : _cr(c) {}
252
253 const T* operator->() const { return reinterpret_cast<const T*>(_cr.data()); }
254
255 T* operator->() { return reinterpret_cast<T*>(_cr.modify().data()); }
256
257 operator db_ptr<T>() const { return db_ptr<T>(_cr.handle()); }
258 operator db_handle() const { return _cr.handle(); }
259
260 private:
261 const cache::cache_record& _cr;
262};
263
264template <typename T>
265struct db_ptr

Callers

nothing calls this directly

Calls 1

handleMethod · 0.45

Tested by

no test coverage detected