AnCH Framework 0.1
Another C++ Hack Framework
 
Loading...
Searching...
No Matches
anch::Flux< T > Class Template Reference

Manage collection as stream. More...

#include <flux.hpp>

+ Collaboration diagram for anch::Flux< T >:

Public Member Functions

 Flux ()=delete
 
 Flux (std::function< void(const T &...)> consume)
 
virtual ~Flux ()
 
void push (const T &... object)
 
void handleError ()
 Handle error.
 

Detailed Description

template<typename... T>
class anch::Flux< T >

Manage collection as stream.

Template Parameters
Tthe collection's type
Since
0.1
Author
Vincent Lachenal

Constructor & Destructor Documentation

◆ Flux() [1/2]

template<typename... T>
anch::Flux< T >::Flux ( )
delete

Forbids Flux default constructor

◆ Flux() [2/2]

template<typename... T>
anch::Flux< T >::Flux ( std::function< void(const T &...)> consume)

Flux constructor

Parameters
consumethe consume object function to use

◆ ~Flux()

template<typename... T>
virtual anch::Flux< T >::~Flux ( )
virtual

Flux destructor

Member Function Documentation

◆ handleError()

template<typename... T>
void anch::Flux< T >::handleError ( )

Handle error.

This method has to be implemented for each T implementation when push method can raise error.
Default implementation will only rethrow the error.

◆ push()

template<typename... T>
void anch::Flux< T >::push ( const T &... object)

Push object in stream

Parameters
objectthe object to push in stream

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