rapidyaml  0.12.1
parse and emit YAML, and do it fast
c4::yml::FilterResult 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
 

Detailed Description

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

Definition at line 32 of file filter_processor.hpp.

Member Function Documentation

◆ valid()

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

Definition at line 34 of file filter_processor.hpp.

34 { return str.str != nullptr; }

References str.

◆ required_len()

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

Definition at line 35 of file filter_processor.hpp.

35 { return str.len; }

References str.

◆ get()

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

Definition at line 36 of file filter_processor.hpp.

36 { _RYML_ASSERT_BASIC(valid()); return str; }
bool valid() const noexcept

References str, and valid().

Member Data Documentation

◆ str

csubstr c4::yml::FilterResult::str

Definition at line 37 of file filter_processor.hpp.


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