LLVM API Documentation

Public Member Functions | Static Public Member Functions
llvm::yaml::KeyValueNode Class Reference

A key and value pair. While not technically a Node under the YAML representation graph, it is easier to treat them this way. More...

#include <YAMLParser.h>

Inheritance diagram for llvm::yaml::KeyValueNode:
Inheritance graph
[legend]
Collaboration diagram for llvm::yaml::KeyValueNode:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 KeyValueNode (std::unique_ptr< Document > &D)
NodegetKey ()
 Parse and return the key.
NodegetValue ()
 Parse and return the value.
void skip () override

Static Public Member Functions

static bool classof (const Node *N)

Detailed 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

Definition at line 233 of file YAMLParser.h.


Constructor & Destructor Documentation

llvm::yaml::KeyValueNode::KeyValueNode ( std::unique_ptr< Document > &  D) [inline]

Definition at line 237 of file YAMLParser.h.


Member Function Documentation

static bool llvm::yaml::KeyValueNode::classof ( const Node N) [inline, static]

Definition at line 260 of file YAMLParser.h.

References llvm::yaml::Node::getType(), and llvm::yaml::Node::NK_KeyValue.

Parse and return the key.

This may be called multiple times.

Returns:
The key, or nullptr if failed() == true.

Definition at line 1812 of file YAMLParser.cpp.

References llvm::yaml::Token::Kind.

Referenced by skip().

Parse and return the value.

This may be called multiple times.

Returns:
The value, or nullptr if failed() == true.

Definition at line 1837 of file YAMLParser.cpp.

References llvm::yaml::Token::Kind.

Referenced by skip().

void llvm::yaml::KeyValueNode::skip ( ) [inline, override, virtual]

Reimplemented from llvm::yaml::Node.

Definition at line 255 of file YAMLParser.h.

References getKey(), getValue(), and llvm::yaml::Node::skip().


The documentation for this class was generated from the following files: