Thrill  0.1
ZipWindowReader< ZipWindowNode, true > Class Template Reference

Detailed Description

template<typename ZipWindowNode>
class thrill::api::ZipWindowReader< ZipWindowNode, true >

template specialization Reader which delivers std::array<>s to ZipFunction

Definition at line 535 of file zip_window.hpp.

+ Collaboration diagram for ZipWindowReader< ZipWindowNode, true >:

#include <zip_window.hpp>

Public Types

using Reader = data::CatStream::CatReader
 
template<size_t Index>
using ZipArgN = typename ZipWindowTraits< ZipFunction > ::template value_type_plain< Index >
 
using ZipFunction = typename ZipWindowNode::ZipFunction
 
template<size_t Index>
using ZipVectorN = typename ZipWindowTraits< ZipFunction > ::template vector_plain< Index >
 

Public Member Functions

 ZipWindowReader (ZipWindowNode &zip_node, std::array< Reader, kNumInputs > &readers)
 
bool HasNext ()
 helper for PushData() which checks all inputs More...
 
template<typename Index >
const ZipVectorN< Index::index > & operator() (const Index &)
 

Static Public Attributes

static constexpr size_t kNumInputs = ZipWindowNode::kNumInputs
 
static constexpr size_t Pad = ZipWindowNode::Pad
 

Private Attributes

std::array< Reader, kNumInputs > & readers_
 reference to the reader array in PushData(). More...
 
ZipWindowTraits< ZipFunction >::vector_tuple_plain vectors_
 tuple of std::vector<>s More...
 
ZipWindowNodezip_node_
 

Member Typedef Documentation

◆ Reader

Definition at line 538 of file zip_window.hpp.

◆ ZipArgN

using ZipArgN = typename ZipWindowTraits<ZipFunction> ::template value_type_plain<Index>

Definition at line 546 of file zip_window.hpp.

◆ ZipFunction

Definition at line 539 of file zip_window.hpp.

◆ ZipVectorN

using ZipVectorN = typename ZipWindowTraits<ZipFunction> ::template vector_plain<Index>

Definition at line 551 of file zip_window.hpp.

Constructor & Destructor Documentation

◆ ZipWindowReader()

ZipWindowReader ( ZipWindowNode zip_node,
std::array< Reader, kNumInputs > &  readers 
)
inline

Definition at line 553 of file zip_window.hpp.

Member Function Documentation

◆ HasNext()

bool HasNext ( )
inline

helper for PushData() which checks all inputs

Definition at line 558 of file zip_window.hpp.

◆ operator()()

const ZipVectorN<Index::index>& operator() ( const Index &  )
inline

Definition at line 574 of file zip_window.hpp.

Member Data Documentation

◆ kNumInputs

constexpr size_t kNumInputs = ZipWindowNode::kNumInputs
static

Definition at line 541 of file zip_window.hpp.

◆ Pad

constexpr size_t Pad = ZipWindowNode::Pad
static

Definition at line 540 of file zip_window.hpp.

◆ readers_

std::array<Reader, kNumInputs>& readers_
private

reference to the reader array in PushData().

Definition at line 599 of file zip_window.hpp.

◆ vectors_

ZipWindowTraits<ZipFunction>::vector_tuple_plain vectors_
private

tuple of std::vector<>s

Definition at line 602 of file zip_window.hpp.

◆ zip_node_

ZipWindowNode& zip_node_
private

Definition at line 596 of file zip_window.hpp.


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