readbuf.hpp File Reference
#include <atria/xform/maybe_reduced.hpp>
#include <atria/xform/transducer_impl.hpp>
#include <atria/prelude/comp.hpp>
#include <functional>
#include <ableton/build_system/Warnings.hpp>
#include <boost/range/iterator_range.hpp>
#include <array>
#include <vector>

Go to the source code of this file.

Namespaces

 atria
 C++ amazing templates and reusable implementations awesomeness.
 
 atria::xform
 Efficient and flexible C++ implementation of transducers.
 

Typedefs

template<typename InputStreamRefT , typename BufferT >
using readbuf_t = transducer_impl< detail::readbuf_rf_gen, InputStreamRefT, BufferT >
 

Functions

template<std::size_t N, typename InputStreamT >
auto readbuf (InputStreamT &stream) -> readbuf_t< std::reference_wrapper< InputStreamT >, std::array< char, N > >
 Generator transducer that reads buffers of size N from stream, and passes them into the sequence. More...
 
template<typename InputStreamT >
auto readbuf (InputStreamT &stream, std::size_t n) -> readbuf_t< std::reference_wrapper< InputStreamT >, std::vector< char > >
 Like readbuf(stream) but with runtime specified size. More...
 
Fork me on GitHub