CatapultServer  v0.5.0.1 (Elephant)
catapult::handlers::BasicProducer< TContainer > Class Template Reference

A base class for producers. More...

Collaboration diagram for catapult::handlers::BasicProducer< TContainer >:

Public Member Functions

 BasicProducer (const TContainer &container)
 Creates a producer around container. More...
 

Protected Member Functions

template<typename TConverter >
auto next (TConverter convert)
 Produces the next entity and calls convert for any required adaptation. More...
 

Private Attributes

const TContainer & m_container
 
decltype(TContainer().cbegin()) m_iter
 

Detailed Description

template<typename TContainer>
class catapult::handlers::BasicProducer< TContainer >

A base class for producers.

Constructor & Destructor Documentation

◆ BasicProducer()

template<typename TContainer>
catapult::handlers::BasicProducer< TContainer >::BasicProducer ( const TContainer &  container)
inlineexplicit

Creates a producer around container.

Member Function Documentation

◆ next()

template<typename TContainer>
template<typename TConverter >
auto catapult::handlers::BasicProducer< TContainer >::next ( TConverter  convert)
inlineprotected

Produces the next entity and calls convert for any required adaptation.

Member Data Documentation

◆ m_container

template<typename TContainer>
const TContainer& catapult::handlers::BasicProducer< TContainer >::m_container
private

◆ m_iter

template<typename TContainer>
decltype(TContainer().cbegin()) catapult::handlers::BasicProducer< TContainer >::m_iter
private

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