|
LLVM 23.0.0git
|
Reference to an abstract hierarchical node, with data and references. More...
#include "llvm/CAS/ObjectStore.h"
Public Member Functions | |
| ObjectStore & | getCAS () const |
| CASID | getID () const |
| ObjectRef | getRef () const |
| size_t | getNumReferences () const |
| ObjectRef | getReference (size_t I) const |
| operator CASID () const | |
| CASID | getReferenceID (size_t I) const |
| Error | forEachReference (function_ref< Error(ObjectRef)> Callback) const |
Visit each reference in order, returning an error from Callback to stop early. | |
| std::unique_ptr< MemoryBuffer > | getMemoryBuffer (StringRef Name="", bool RequiresNullTerminator=true) const |
| StringRef | getData () const |
| Get the content of the node. Valid as long as the CAS is valid. | |
| Error | exportDataToFile (StringRef Path) const |
| Exports the data of an object to a file path. | |
| ObjectProxy ()=delete | |
Static Public Member Functions | |
| static ObjectProxy | load (ObjectStore &CAS, ObjectRef Ref, ObjectHandle Node) |
Friends | |
| bool | operator== (const ObjectProxy &Proxy, ObjectRef Ref) |
| bool | operator== (ObjectRef Ref, const ObjectProxy &Proxy) |
| bool | operator!= (const ObjectProxy &Proxy, ObjectRef Ref) |
| bool | operator!= (ObjectRef Ref, const ObjectProxy &Proxy) |
Reference to an abstract hierarchical node, with data and references.
Reference is passed by value and is expected to be valid as long as the ObjectStore is.
Definition at line 297 of file ObjectStore.h.
|
delete |
Referenced by load(), operator!=, operator!=, operator==, and operator==.
Exports the data of an object to a file path.
Definition at line 326 of file ObjectStore.h.
|
inline |
Visit each reference in order, returning an error from Callback to stop early.
Definition at line 314 of file ObjectStore.h.
|
inline |
Definition at line 299 of file ObjectStore.h.
Referenced by getReferenceID().
|
inline |
Get the content of the node. Valid as long as the CAS is valid.
Definition at line 323 of file ObjectStore.h.
Referenced by llvm::cas::NamedValuesProxy::getName().
|
inline |
Definition at line 300 of file ObjectStore.h.
Referenced by operator CASID().
| std::unique_ptr< MemoryBuffer > ObjectProxy::getMemoryBuffer | ( | StringRef | Name = "", |
| bool | RequiresNullTerminator = true ) const |
Definition at line 293 of file ObjectStore.cpp.
|
inline |
Definition at line 302 of file ObjectStore.h.
|
inline |
Definition at line 301 of file ObjectStore.h.
Referenced by operator!=, operator!=, operator==, and operator==.
|
inline |
|
inline |
Definition at line 306 of file ObjectStore.h.
References assert(), getCAS(), llvm::cas::ObjectStore::getID(), getReference(), and I.
|
inlinestatic |
Definition at line 346 of file ObjectStore.h.
References ObjectProxy().
Referenced by llvm::cas::ObjectStore::getProxy(), llvm::cas::ObjectStore::getProxyIfExists(), and llvm::cas::builtin::BuiltinCAS::validateObject().
|
inline |
Definition at line 305 of file ObjectStore.h.
References getID().
|
friend |
Definition at line 336 of file ObjectStore.h.
References getRef(), and ObjectProxy().
|
friend |
Definition at line 339 of file ObjectStore.h.
References getRef(), and ObjectProxy().
|
friend |
Definition at line 330 of file ObjectStore.h.
References getRef(), and ObjectProxy().
|
friend |
Definition at line 333 of file ObjectStore.h.
References getRef(), and ObjectProxy().