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 (OwningPtr< Document > &D)
NodegetKey ()
 Parse and return the key.
NodegetValue ()
 Parse and return the value.
virtual void skip () LLVM_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 222 of file YAMLParser.h.


Constructor & Destructor Documentation

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

Definition at line 224 of file YAMLParser.h.


Member Function Documentation

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

Definition at line 249 of file YAMLParser.h.

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

Node * KeyValueNode::getKey ( )
Node * KeyValueNode::getValue ( )
virtual void llvm::yaml::KeyValueNode::skip ( ) [inline, virtual]

Reimplemented from llvm::yaml::Node.

Definition at line 244 of file YAMLParser.h.

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


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