Lumiera  0.pre.03
»edit your freedom«
IdentityCore< IT > Struct Template Reference

#include "lib/itertools.hpp"

Description

template<class IT>
struct lib::IdentityCore< IT >

A neutral identity-function core, also serving as point-of reference how any core is intended to work.

Any core is intended to serve as inner part of an iterator tool template.

  • it provides the trait typedefs
  • it abstracts the "source"
  • it abstracts the local operation to be performed
  • the ctor of the core sets up the configuration.
    Note
    cores should be copyable without much overhead

Definition at line 105 of file itertools.hpp.

Public Types

typedef IT::pointer pointer
 
typedef IT::reference reference
 
typedef IT::value_type value_type
 

Public Member Functions

 IdentityCore (IT &&orig)
 
 IdentityCore (IT const &orig)
 
void advance ()
 
bool evaluate () const
 
IT & pipe ()
 
IT const & pipe () const
 

Public Attributes

IT source_
 
+ Inheritance diagram for IdentityCore< IT >:
+ Collaboration diagram for IdentityCore< IT >:

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