rapidyaml  0.12.0
parse and emit YAML, and do it fast
c4::yml::FilterResultExtending Struct Reference

Abstracts the fact that a scalar filter result may not fit in the intended memory. More...

#include <filter_processor.hpp>

Public Member Functions

bool valid () const noexcept
 
size_t required_len () const noexcept
 
csubstr get () const
 

Public Attributes

csubstr str
 
size_t reqlen
 

Detailed Description

Abstracts the fact that a scalar filter result may not fit in the intended memory.

Definition at line 41 of file filter_processor.hpp.

Member Function Documentation

◆ valid()

bool c4::yml::FilterResultExtending::valid ( ) const
inlinenoexcept

Definition at line 43 of file filter_processor.hpp.

43 { return str.str != nullptr; }

References str.

◆ required_len()

size_t c4::yml::FilterResultExtending::required_len ( ) const
inlinenoexcept

Definition at line 44 of file filter_processor.hpp.

References reqlen.

◆ get()

csubstr c4::yml::FilterResultExtending::get ( ) const
inline

Definition at line 45 of file filter_processor.hpp.

45 { _RYML_ASSERT_BASIC(valid()); return str; }

References str, and valid().

Member Data Documentation

◆ str

csubstr c4::yml::FilterResultExtending::str

Definition at line 46 of file filter_processor.hpp.

◆ reqlen

size_t c4::yml::FilterResultExtending::reqlen

Definition at line 47 of file filter_processor.hpp.


The documentation for this struct was generated from the following file: