RESTinio
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
restinio::easy_parser::impl::not_clause_t< Subitems_Tuple > Class Template Reference

A template for implementation of clause that checks absence of some entity in the input stream. More...

#include <easy_parser.hpp>

Inheritance diagram for restinio::easy_parser::impl::not_clause_t< Subitems_Tuple >:
restinio::easy_parser::impl::clause_tag

Public Member Functions

 not_clause_t (Subitems_Tuple &&subitems)
 
template<typename Target_Type >
std::optional< parse_error_ttry_process (source_t &from, Target_Type &)
 

Private Attributes

Subitems_Tuple m_subitems
 

Additional Inherited Members

- Static Public Attributes inherited from restinio::easy_parser::impl::clause_tag
static constexpr entity_type_t entity_type = entity_type_t::clause
 

Detailed Description

template<typename Subitems_Tuple>
class restinio::easy_parser::impl::not_clause_t< Subitems_Tuple >

A template for implementation of clause that checks absence of some entity in the input stream.

This template implements rules like:

 T := !A B 

where not_clause_t is related to the part !A only.

Note
The empty temporary object of Target_Type passed to call of try_process of subitems.
This clause always returns the current position in the input stream back at the position where this clause was called.
Template Parameters
Subitems_Tuplethe type of std::tuple with items for every clause to be checked.
Since
v.0.6.1

Definition at line 1780 of file easy_parser.hpp.

Constructor & Destructor Documentation

◆ not_clause_t()

Definition at line 1785 of file easy_parser.hpp.

Member Function Documentation

◆ try_process()

template<typename Target_Type >
std::optional< parse_error_t > restinio::easy_parser::impl::not_clause_t< Subitems_Tuple >::try_process ( source_t & from,
Target_Type &  )
inline

Definition at line 1793 of file easy_parser.hpp.

Member Data Documentation

◆ m_subitems

Definition at line 1782 of file easy_parser.hpp.


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