|
LLVM 23.0.0git
|
A schema for representing an array of named nodes in a CAS. More...
#include "llvm/CAS/NamedValuesSchema.h"
Classes | |
| class | Builder |
| A builder class for creating nodes in NamedValuesSchema. More... | |
Public Member Functions | |
| bool | isRootNode (const ObjectProxy &Node) const final |
| bool | isNode (const ObjectProxy &Node) const final |
| Check if a proxy represents a valid node. | |
| Expected< NamedValuesProxy > | load (ObjectRef Object) const |
| Load NamedValuesProxy from an ObjectRef. | |
| Expected< NamedValuesProxy > | load (ObjectProxy Object) const |
| Load NamedValuesProxy from an ObjectProxy. | |
| Expected< NamedValuesProxy > | construct (ArrayRef< NamedValuesEntry > Entries) |
Construct a NamedValuesSchema CAS object with the given entries. | |
| Public Member Functions inherited from llvm::RTTIExtends< NamedValuesSchema, NodeSchema > | |
| const void * | dynamicClassID () const override |
| bool | isA () const |
| Check whether this instance is a subclass of QueryT. | |
Static Public Member Functions | |
| static Expected< NamedValuesSchema > | create (ObjectStore &CAS) |
| Create a NamedValuesSchema. | |
| Static Public Member Functions inherited from llvm::RTTIExtends< NamedValuesSchema, NodeSchema > | |
| static const void * | classID () |
| static bool | classof (const T *R) |
Static Public Attributes | |
| static char | ID = 0 |
Friends | |
| class | NamedValuesProxy |
A schema for representing an array of named nodes in a CAS.
The name of the nodes are stored in the root node so child node can be loaded on demand based on name and the name for all nodes need to be unique.
Definition at line 49 of file NamedValuesSchema.h.
| Expected< NamedValuesProxy > NamedValuesSchema::construct | ( | ArrayRef< NamedValuesEntry > | Entries | ) |
Construct a NamedValuesSchema CAS object with the given entries.
Definition at line 123 of file NamedValuesSchema.cpp.
References llvm::cas::ObjectStore::createProxy(), llvm::createStringError(), llvm::Data, llvm::SmallVectorTemplateCommon< T, typename >::end(), llvm::little, NamedValuesProxy, llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::SmallVectorTemplateCommon< T, typename >::size(), llvm::stable_sort(), llvm::unique(), and llvm::support::endian::Writer::write().
|
static |
Create a NamedValuesSchema.
Definition at line 42 of file NamedValuesSchema.cpp.
References llvm::Error::success().
Referenced by llvm::cas::NamedValuesSchema::Builder::build().
|
final |
Check if a proxy represents a valid node.
Definition at line 22 of file NamedValuesSchema.cpp.
Referenced by isRootNode(), and load().
|
inlinefinal |
Definition at line 56 of file NamedValuesSchema.h.
References isNode().
| Expected< NamedValuesProxy > NamedValuesSchema::load | ( | ObjectProxy | Object | ) | const |
Load NamedValuesProxy from an ObjectProxy.
Definition at line 114 of file NamedValuesSchema.cpp.
References llvm::createStringError(), llvm::inconvertibleErrorCode(), isNode(), and NamedValuesProxy.
| Expected< NamedValuesProxy > NamedValuesSchema::load | ( | ObjectRef | Object | ) | const |
Load NamedValuesProxy from an ObjectRef.
Definition at line 106 of file NamedValuesSchema.cpp.
References llvm::cas::ObjectStore::getProxy(), and load.
|
friend |
Definition at line 94 of file NamedValuesSchema.h.
References E(), I, and NamedValuesProxy.
Referenced by construct(), load(), and NamedValuesProxy.
|
static |
Definition at line 54 of file NamedValuesSchema.h.