rangeless::fn
rangeless::fn::impl::sliding_window::gen< InGen > Struct Template Reference

#include <fn.hpp>

Public Types

using inp_t = typename InGen::value_type
 
using queue_t = std::deque< inp_t >
 
using value_type = view< typename queue_t::iterator >
 

Public Member Functions

auto operator() () -> maybe< value_type >
 

Public Attributes

InGen gen
 
queue_t queue
 
value_type curr
 
const size_t win_size
 

Detailed Description

template<typename InGen>
struct rangeless::fn::impl::sliding_window::gen< InGen >

Definition at line 1647 of file fn.hpp.

Member Typedef Documentation

◆ inp_t

template<typename InGen >
using rangeless::fn::impl::sliding_window::gen< InGen >::inp_t = typename InGen::value_type

Definition at line 1651 of file fn.hpp.

◆ queue_t

template<typename InGen >
using rangeless::fn::impl::sliding_window::gen< InGen >::queue_t = std::deque<inp_t>

Definition at line 1652 of file fn.hpp.

◆ value_type

template<typename InGen >
using rangeless::fn::impl::sliding_window::gen< InGen >::value_type = view<typename queue_t::iterator>

Definition at line 1653 of file fn.hpp.

Member Function Documentation

◆ operator()()

template<typename InGen >
auto rangeless::fn::impl::sliding_window::gen< InGen >::operator() ( ) -> maybe<value_type>
inline

Definition at line 1659 of file fn.hpp.

Member Data Documentation

◆ curr

template<typename InGen >
value_type rangeless::fn::impl::sliding_window::gen< InGen >::curr

Definition at line 1656 of file fn.hpp.

◆ gen

template<typename InGen >
InGen rangeless::fn::impl::sliding_window::gen< InGen >::gen

Definition at line 1649 of file fn.hpp.

◆ queue

template<typename InGen >
queue_t rangeless::fn::impl::sliding_window::gen< InGen >::queue

Definition at line 1655 of file fn.hpp.

◆ win_size

template<typename InGen >
const size_t rangeless::fn::impl::sliding_window::gen< InGen >::win_size

Definition at line 1657 of file fn.hpp.


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