Thrill  0.1
ZipWindowReader< ZipWindowNode, false > Class Template Reference

Detailed Description

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

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

Definition at line 461 of file zip_window.hpp.

+ Collaboration diagram for ZipWindowReader< ZipWindowNode, false >:

#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 464 of file zip_window.hpp.

◆ ZipArgN

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

Definition at line 472 of file zip_window.hpp.

◆ ZipFunction

Definition at line 465 of file zip_window.hpp.

◆ ZipVectorN

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

Definition at line 477 of file zip_window.hpp.

Constructor & Destructor Documentation

◆ ZipWindowReader()

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

Definition at line 479 of file zip_window.hpp.

Member Function Documentation

◆ HasNext()

bool HasNext ( )
inline

helper for PushData() which checks all inputs

Definition at line 484 of file zip_window.hpp.

◆ operator()()

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

Definition at line 500 of file zip_window.hpp.

Member Data Documentation

◆ kNumInputs

constexpr size_t kNumInputs = ZipWindowNode::kNumInputs
static

Definition at line 467 of file zip_window.hpp.

◆ Pad

constexpr size_t Pad = ZipWindowNode::Pad
static

Definition at line 466 of file zip_window.hpp.

◆ readers_

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

reference to the reader array in PushData().

Definition at line 527 of file zip_window.hpp.

◆ vectors_

ZipWindowTraits<ZipFunction>::vector_tuple_plain vectors_
private

tuple of std::vector<>s

Definition at line 530 of file zip_window.hpp.

◆ zip_node_

ZipWindowNode& zip_node_
private

Definition at line 524 of file zip_window.hpp.


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