Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
ContainerCore< CON > Class Template Reference

#include "lib/iter-adapter.hpp"

Description

template<class CON>
class lib::ContainerCore< CON >

Adapter to »piggy-back« a STL iterable container inline and expose it as »state core«.

Warning
be sure to understand the implications of this setup
  • when initialised by reference, the container's contents will be copied
  • when move-initialised, the container will be destroyed with this iterator
  • the container API remains visible (baseclass), which could confuse trait detection

Definition at line 614 of file iter-adapter.hpp.

Public Member Functions

 ContainerCore (CON &&container)
 
bool checkPoint () const
 
decltype(auto) yield () const
 
void iterNext ()
 

Private Types

using Iter = CON::iterator
 

Private Attributes

Iter p_
 

Constructor & Destructor Documentation

◆ ContainerCore()

template<class CON >
ContainerCore ( CON &&  container)
inline

Definition at line 622 of file iter-adapter.hpp.

Member Typedef Documentation

◆ Iter

template<class CON >
using Iter = CON::iterator
private

Definition at line 617 of file iter-adapter.hpp.

Member Function Documentation

◆ checkPoint()

template<class CON >
bool checkPoint ( ) const
inline

Definition at line 632 of file iter-adapter.hpp.

References ContainerCore< CON >::p_.

◆ yield()

template<class CON >
decltype(auto) yield ( ) const
inline

Definition at line 638 of file iter-adapter.hpp.

References ContainerCore< CON >::p_.

◆ iterNext()

template<class CON >
void iterNext ( )
inline

Definition at line 644 of file iter-adapter.hpp.

References ContainerCore< CON >::p_.

Member Data Documentation

◆ p_

template<class CON >
Iter p_
private
+ Inheritance diagram for ContainerCore< CON >:
+ Collaboration diagram for ContainerCore< CON >:

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