Thrill  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GroupByIterator< ValueType, KeyExtractor, Comparator > Class Template Reference

Detailed Description

template<typename ValueType, typename KeyExtractor, typename Comparator>
class thrill::api::GroupByIterator< ValueType, KeyExtractor, Comparator >

Definition at line 48 of file group_by_iterator.hpp.

#include <group_by_iterator.hpp>

Public Types

using Key = typename common::FunctionTraits< KeyExtractor >::result_type
 
using Reader = typename data::File::Reader
 
using ValueIn = ValueType
 

Public Member Functions

 GroupByIterator (Reader &reader, const KeyExtractor &key_extractor)
 
 GroupByIterator (const GroupByIterator &)=delete
 non-copyable: delete copy-constructor More...
 
 GroupByIterator (GroupByIterator &&)=default
 move-constructor: default More...
 
bool HasNext ()
 
ValueIn Next ()
 
GroupByIteratoroperator= (const GroupByIterator &)=delete
 non-copyable: delete assignment operator More...
 
GroupByIteratoroperator= (GroupByIterator &&)=default
 move-assignment operator: default More...
 

Static Public Attributes

static constexpr bool debug = false
 

Private Member Functions

void GetNextElem ()
 
const KeyGetNextKey ()
 
bool HasNextForReal ()
 

Private Attributes

ValueIn elem_
 
bool equal_key_
 
bool is_reader_empty_
 
Key key_
 
const KeyExtractor & key_extractor_
 
Readerreader_
 

Member Typedef Documentation

using Key = typename common::FunctionTraits<KeyExtractor>::result_type

Definition at line 65 of file group_by_iterator.hpp.

using Reader = typename data::File::Reader

Definition at line 66 of file group_by_iterator.hpp.

using ValueIn = ValueType

Definition at line 64 of file group_by_iterator.hpp.

Constructor & Destructor Documentation

GroupByIterator ( Reader reader,
const KeyExtractor &  key_extractor 
)
inline

Definition at line 68 of file group_by_iterator.hpp.

GroupByIterator ( const GroupByIterator< ValueType, KeyExtractor, Comparator > &  )
delete

non-copyable: delete copy-constructor

GroupByIterator ( GroupByIterator< ValueType, KeyExtractor, Comparator > &&  )
default

move-constructor: default

Member Function Documentation

bool HasNextForReal ( )
inlineprivate
GroupByIterator& operator= ( const GroupByIterator< ValueType, KeyExtractor, Comparator > &  )
delete

non-copyable: delete assignment operator

GroupByIterator& operator= ( GroupByIterator< ValueType, KeyExtractor, Comparator > &&  )
default

move-assignment operator: default

Member Data Documentation

constexpr bool debug = false
static

Definition at line 63 of file group_by_iterator.hpp.

const KeyExtractor& key_extractor_
private

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