RESTinio
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Types | Private Attributes | List of all members
restinio::easy_parser::impl::transformed_value_producer_t< Producer, Transformer > Class Template Reference

A template of producer that gets a value from another producer, transforms it and produces transformed value. More...

#include <easy_parser.hpp>

Inheritance diagram for restinio::easy_parser::impl::transformed_value_producer_t< Producer, Transformer >:
restinio::easy_parser::impl::producer_tag< Transformer::result_type >

Public Types

using result_type = typename Transformer::result_type
 
- Public Types inherited from restinio::easy_parser::impl::producer_tag< Transformer::result_type >
using result_type
 

Public Member Functions

 transformed_value_producer_t (Producer &&producer, Transformer &&transformer)
 
expected_t< result_type, parse_error_ttry_parse (source_t &source)
 

Private Types

using traits_checker
 

Private Attributes

Producer m_producer
 
Transformer m_transformer
 

Additional Inherited Members

- Static Public Attributes inherited from restinio::easy_parser::impl::producer_tag< Transformer::result_type >
static constexpr entity_type_t entity_type
 

Detailed Description

template<typename Producer, typename Transformer>
class restinio::easy_parser::impl::transformed_value_producer_t< Producer, Transformer >

A template of producer that gets a value from another producer, transforms it and produces transformed value.

Template Parameters
Producerthe type of producer of source value.
Transformerthe type of transformer from source to the target value.
Since
v.0.6.1

Definition at line 1180 of file easy_parser.hpp.

Member Typedef Documentation

◆ result_type

Definition at line 1195 of file easy_parser.hpp.

◆ traits_checker

Initial value:
transformed_value_producer_traits_checker<
run_on_this_thread_settings_t< Traits > on_this_thread()
A special marker for the case when http_server must be run on the context of the current thread.

Definition at line 1183 of file easy_parser.hpp.

Constructor & Destructor Documentation

◆ transformed_value_producer_t()

restinio::easy_parser::impl::transformed_value_producer_t< Producer, Transformer >::transformed_value_producer_t ( Producer && producer,
Transformer && transformer )
inline

Definition at line 1197 of file easy_parser.hpp.

Member Function Documentation

◆ try_parse()

Definition at line 1206 of file easy_parser.hpp.

Member Data Documentation

◆ m_producer

Definition at line 1191 of file easy_parser.hpp.

◆ m_transformer

Definition at line 1192 of file easy_parser.hpp.


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