Thrill  0.1
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

◆ Key

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

Definition at line 65 of file group_by_iterator.hpp.

◆ Reader

using Reader = typename data::File::Reader

Definition at line 66 of file group_by_iterator.hpp.

◆ ValueIn

using ValueIn = ValueType

Definition at line 64 of file group_by_iterator.hpp.

Constructor & Destructor Documentation

◆ GroupByIterator() [1/3]

GroupByIterator ( Reader reader,
const KeyExtractor &  key_extractor 
)
inline

◆ GroupByIterator() [2/3]

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

non-copyable: delete copy-constructor

◆ GroupByIterator() [3/3]

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

move-constructor: default

Member Function Documentation

◆ GetNextElem()

◆ GetNextKey()

◆ HasNext()

◆ HasNextForReal()

bool HasNextForReal ( )
inlineprivate

◆ Next()

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

move-assignment operator: default

Member Data Documentation

◆ debug

constexpr bool debug = false
static

Definition at line 63 of file group_by_iterator.hpp.

◆ elem_

◆ equal_key_

◆ is_reader_empty_

◆ key_

◆ key_extractor_

◆ reader_

Reader& reader_
private

Definition at line 107 of file group_by_iterator.hpp.


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