class KeyValueNode
Declaration
class KeyValueNode : public Node { /* full declaration omitted */ };
Description
A key and value pair. While not technically a Node under the YAML representation graph, it is easier to treat them this way. TODO: Consider making this not a child of Node. Example: Section: .text
Declared at: llvm/include/llvm/Support/YAMLParser.h:279
Inherits from: Node
Member Variables
Inherited from Node:
Method Overview
- public KeyValueNode(std::unique_ptr<Document> & D)
- public static bool classof(const llvm::yaml::Node * N)
- public llvm::yaml::Node * getKey()
- public llvm::yaml::Node * getValue()
- public void skip()
Inherited from Node:
- public failed
- public getAllocator
- public getAnchor
- public getNext
- public getRawTag
- public getSourceRange
- public getType
- public getVerbatimTag
- public parseBlockNode
- public peekNext
- public setError
- public setSourceRange
- public skip
Methods
¶KeyValueNode(std::unique_ptr<Document>& D)
KeyValueNode(std::unique_ptr<Document>& D)
Declared at: llvm/include/llvm/Support/YAMLParser.h:283
Parameters
- std::unique_ptr<Document>& D
¶static bool classof(const llvm::yaml::Node* N)
static bool classof(const llvm::yaml::Node* N)
Declared at: llvm/include/llvm/Support/YAMLParser.h:308
Parameters
- const llvm::yaml::Node* N
¶llvm::yaml::Node* getKey()
llvm::yaml::Node* getKey()
Description
Parse and return the key. This may be called multiple times.
Declared at: llvm/include/llvm/Support/YAMLParser.h:291
Returns
The key, or nullptr if failed() == true.
¶llvm::yaml::Node* getValue()
llvm::yaml::Node* getValue()
Description
Parse and return the value. This may be called multiple times.
Declared at: llvm/include/llvm/Support/YAMLParser.h:298
Returns
The value, or nullptr if failed() == true.
¶void skip()
void skip()
Declared at: llvm/include/llvm/Support/YAMLParser.h:300