Crow  1.0
A C++ microframework for the web
crow::detail::context< Middlewares > Struct Template Reference
Inheritance diagram for crow::detail::context< Middlewares >:
Collaboration diagram for crow::detail::context< Middlewares >:

Public Types

template<int N>
using partial = typename partial_context< Middlewares... >::template partial< N >
 

Public Member Functions

template<typename T >
T::context & get ()
 

Private Types

using parent_context = typename black_magic::pop_back< Middlewares... >::template rebind<::crow::detail::partial_context >
 

Friends

template<template< typename QueryMW > class CallCriteria, int N, typename Context , typename Container >
std::enable_if<(N==0)>::type after_handlers_call_helper (Container &middlewares, Context &ctx, request &req, response &res)
 
template<template< typename QueryMW > class CallCriteria, int N, typename Context , typename Container >
std::enable_if<(N > 0)>::type after_handlers_call_helper (Container &middlewares, Context &ctx, request &req, response &res)
 
template<template< typename QueryMW > class CallCriteria, int N, typename Context , typename Container >
std::enable_if<(N< std::tuple_size< typename std::remove_reference< Container >::type >::value), bool >::type middleware_call_helper (Container &middlewares, request &req, response &res, Context &ctx)
 

Member Typedef Documentation

◆ partial

template<typename... Middlewares>
template<int N>
using crow::detail::context< Middlewares >::partial = typename partial_context<Middlewares...>::template partial<N>

◆ parent_context

using crow::detail::partial_context< Middlewares >::parent_context = typename black_magic::pop_back<Middlewares...>::template rebind<::crow::detail::partial_context>
inherited

Member Function Documentation

◆ get()

template<typename... Middlewares>
template<typename T >
T::context& crow::detail::context< Middlewares >::get ( )
inline

Friends And Related Function Documentation

◆ after_handlers_call_helper [1/2]

template<typename... Middlewares>
template<template< typename QueryMW > class CallCriteria, int N, typename Context , typename Container >
std::enable_if<(N == 0)>::type after_handlers_call_helper ( Container &  middlewares,
Context &  ctx,
request req,
response res 
)
friend

◆ after_handlers_call_helper [2/2]

template<typename... Middlewares>
template<template< typename QueryMW > class CallCriteria, int N, typename Context , typename Container >
std::enable_if<(N > 0)>::type after_handlers_call_helper ( Container &  middlewares,
Context &  ctx,
request req,
response res 
)
friend

◆ middleware_call_helper

template<typename... Middlewares>
template<template< typename QueryMW > class CallCriteria, int N, typename Context , typename Container >
std::enable_if<(N < std::tuple_size<typename std::remove_reference<Container>::type>::value), bool>::type middleware_call_helper ( Container &  middlewares,
request req,
response res,
Context &  ctx 
)
friend

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