LLVM 20.0.0git
|
This is an iterator abstraction over YAML collections shared by both sequences and maps. More...
#include "llvm/Support/YAMLParser.h"
Public Types | |
using | iterator_category = std::input_iterator_tag |
using | value_type = ValueT |
using | difference_type = std::ptrdiff_t |
using | pointer = value_type * |
using | reference = value_type & |
Public Member Functions | |
basic_collection_iterator ()=default | |
basic_collection_iterator (BaseT *B) | |
ValueT * | operator-> () const |
ValueT & | operator* () const |
operator ValueT * () const | |
bool | operator== (const basic_collection_iterator &Other) const |
Note on EqualityComparable: | |
bool | operator!= (const basic_collection_iterator &Other) const |
basic_collection_iterator & | operator++ () |
This is an iterator abstraction over YAML collections shared by both sequences and maps.
BaseT must have a ValueT* member named CurrentEntry and a member function increment() which must set CurrentEntry to 0 to create an end iterator.
Definition at line 333 of file YAMLParser.h.
using llvm::yaml::basic_collection_iterator< BaseT, ValueT >::difference_type = std::ptrdiff_t |
Definition at line 337 of file YAMLParser.h.
using llvm::yaml::basic_collection_iterator< BaseT, ValueT >::iterator_category = std::input_iterator_tag |
Definition at line 335 of file YAMLParser.h.
using llvm::yaml::basic_collection_iterator< BaseT, ValueT >::pointer = value_type * |
Definition at line 338 of file YAMLParser.h.
using llvm::yaml::basic_collection_iterator< BaseT, ValueT >::reference = value_type & |
Definition at line 339 of file YAMLParser.h.
using llvm::yaml::basic_collection_iterator< BaseT, ValueT >::value_type = ValueT |
Definition at line 336 of file YAMLParser.h.
|
default |
|
inline |
Definition at line 342 of file YAMLParser.h.
|
inline |
Definition at line 355 of file YAMLParser.h.
References assert().
|
inline |
Definition at line 376 of file YAMLParser.h.
References llvm::Other.
|
inline |
Definition at line 349 of file YAMLParser.h.
References assert().
|
inline |
Definition at line 380 of file YAMLParser.h.
References assert().
|
inline |
Definition at line 344 of file YAMLParser.h.
References assert().
|
inline |
Note on EqualityComparable:
The iterator is not re-entrant, it is meant to be used for parsing YAML on-demand Once iteration started - it can point only to one entry at a time hence Base.CurrentEntry and Other.Base.CurrentEntry are equal iff Base and Other.Base are equal.
Definition at line 367 of file YAMLParser.h.
References assert(), and llvm::Other.