LLVM  4.0.0
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
llvm::yaml::SequenceNode Class Referencefinal

Represents a YAML sequence created from either a block sequence for a flow sequence. More...

#include <YAMLParser.h>

Inheritance diagram for llvm::yaml::SequenceNode:
[legend]
Collaboration diagram for llvm::yaml::SequenceNode:
[legend]

Public Types

enum  SequenceType { ST_Block, ST_Flow, ST_Indentless }
 
typedef
basic_collection_iterator
< SequenceNode, Node
iterator
 
- Public Types inherited from llvm::yaml::Node
enum  NodeKind {
  NK_Null, NK_Scalar, NK_BlockScalar, NK_KeyValue,
  NK_Mapping, NK_Sequence, NK_Alias
}
 

Public Member Functions

 SequenceNode (std::unique_ptr< Document > &D, StringRef Anchor, StringRef Tag, SequenceType ST)
 
void increment ()
 
iterator begin ()
 
iterator end ()
 
void skip () override
 
- Public Member Functions inherited from llvm::yaml::Node
 Node (unsigned int Type, std::unique_ptr< Document > &, StringRef Anchor, StringRef Tag)
 
StringRef getAnchor () const
 Get the value of the anchor attached to this node. More...
 
StringRef getRawTag () const
 Get the tag as it was written in the document. More...
 
std::string getVerbatimTag () const
 Get the verbatium tag for a given Node. More...
 
SMRange getSourceRange () const
 
void setSourceRange (SMRange SR)
 
TokenpeekNext ()
 
Token getNext ()
 
NodeparseBlockNode ()
 
BumpPtrAllocatorgetAllocator ()
 
void setError (const Twine &Message, Token &Location) const
 
bool failed () const
 
unsigned int getType () const
 
void * operator new (size_t Size, BumpPtrAllocator &Alloc, size_t Alignment=16) noexcept
 
void operator delete (void *Ptr, BumpPtrAllocator &Alloc, size_t Size) noexcept
 

Static Public Member Functions

static bool classof (const Node *N)
 

Friends

class basic_collection_iterator< SequenceNode, Node >
 
template<class T >
T::iterator yaml::begin (T &)
 
template<class T >
void yaml::skip (T &)
 

Additional Inherited Members

- Protected Member Functions inherited from llvm::yaml::Node
void operator delete (void *) noexcept=delete
 
 ~Node ()=default
 
- Protected Attributes inherited from llvm::yaml::Node
std::unique_ptr< Document > & Doc
 
SMRange SourceRange
 

Detailed Description

Represents a YAML sequence created from either a block sequence for a flow sequence.

This parses the YAML stream as increment() is called.

Example:

Definition at line 437 of file YAMLParser.h.

Member Typedef Documentation

Definition at line 462 of file YAMLParser.h.

Member Enumeration Documentation

Enumerator
ST_Block 
ST_Flow 
ST_Indentless 

Definition at line 441 of file YAMLParser.h.

Constructor & Destructor Documentation

llvm::yaml::SequenceNode::SequenceNode ( std::unique_ptr< Document > &  D,
StringRef  Anchor,
StringRef  Tag,
SequenceType  ST 
)
inline

Definition at line 454 of file YAMLParser.h.

Member Function Documentation

iterator llvm::yaml::SequenceNode::begin ( )
inline

Definition at line 468 of file YAMLParser.h.

References llvm::yaml::begin().

static bool llvm::yaml::SequenceNode::classof ( const Node N)
inlinestatic

Definition at line 474 of file YAMLParser.h.

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

iterator llvm::yaml::SequenceNode::end ( )
inline

Definition at line 470 of file YAMLParser.h.

void SequenceNode::increment ( )

Definition at line 2146 of file YAMLParser.cpp.

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

void llvm::yaml::SequenceNode::skip ( )
inlineoverridevirtual

Reimplemented from llvm::yaml::Node.

Definition at line 472 of file YAMLParser.h.

References llvm::yaml::skip().

Friends And Related Function Documentation

friend class basic_collection_iterator< SequenceNode, Node >
friend

Definition at line 461 of file YAMLParser.h.

template<class T >
T::iterator yaml::begin ( T )
friend
template<class T >
void yaml::skip ( T )
friend

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