uTL
micro Template library
|
A virtual base class specialization. More...
#include <inbuf_dev.h>
Public Types | |
using | type = inbuf_dev_t |
Export type as identity meta-function. More... | |
using | data_type = data_t |
using | pointer_type = data_t * |
Public Member Functions | |
Public Get interface | |
size_t | in_avail () |
size_t | get (data_t &data) |
size_t | get (data_t *data, size_t n) |
Stream operator >> interface | |
template<typename _Dst_t > | |
inbuf_dev_t & | operator>> (_Dst_t &dst) |
Template operator >> implementation for for all by value/ref parameters. More... | |
template<typename _Dst_t > | |
inbuf_dev_t & | operator>> (_Dst_t *dst)=delete |
specialization to disallow pointer types as destination More... | |
inbuf_dev_t & | operator>> (data_t &dst) |
Overload for single data_t object. More... | |
iterator | end () noexcept |
const_iterator | end () const noexcept |
const_iterator | cend () const noexcept |
Private Types | |
using | inbuf_dev_t = inbuf_dev< virtual_tag, data_t, streamsize > |
< class type syntactic sugar More... | |
Private Member Functions | |
Common input device interface requirements | |
virtual size_t | in_avail_ ()=0 |
virtual size_t | get_ (data_t &data)=0 |
The base get interface. This function should read a single data_t object from device usually in non-blocking mode. More... | |
virtual size_t | get_ (data_t *data, size_t n)=0 |
Old stile get functionality using free standing data_t*. This function should return a stream of data from device. More... | |
Constructor / Destructor | |
virtual | ~inbuf_dev ()=default |
Virtual destructor. More... | |
inbuf_dev ()=default | |
A default constructor from derived only. More... | |
inbuf_dev (const inbuf_dev_t &)=delete | |
No copies. More... | |
inbuf_dev_t & | operator= (const inbuf_dev_t &)=delete |
STL-like Input iterator interface | |
using | iterator = indev_it< inbuf_dev_t, data_t *, streamsize > |
Iterator. More... | |
using | const_iterator = indev_it< inbuf_dev_t, const data_t *, streamsize > |
Const iterator. More... | |
iterator | begin () noexcept |
.begin implementation More... | |
const_iterator | begin () const noexcept |
const_iterator | cbegin () const noexcept |
A virtual base class specialization.
impl_t | = virtual_tag |
data_t | The devices base type of data |
streamsize | The number of elements to indicate eos. |
Definition at line 188 of file inbuf_dev.h.
using utl::inbuf_dev< virtual_tag, data_t, streamsize >::const_iterator = indev_it <inbuf_dev_t, const data_t*, streamsize> |
Const iterator.
Definition at line 291 of file inbuf_dev.h.
using utl::inbuf_dev< virtual_tag, data_t, streamsize >::data_type = data_t |
Export types as input device concept demands
Definition at line 195 of file inbuf_dev.h.
|
private |
< class type syntactic sugar
Definition at line 190 of file inbuf_dev.h.
using utl::inbuf_dev< virtual_tag, data_t, streamsize >::iterator = indev_it <inbuf_dev_t, data_t*, streamsize> |
Iterator.
Definition at line 290 of file inbuf_dev.h.
using utl::inbuf_dev< virtual_tag, data_t, streamsize >::pointer_type = data_t* |
Definition at line 196 of file inbuf_dev.h.
using utl::inbuf_dev< virtual_tag, data_t, streamsize >::type = inbuf_dev_t |
Export type as identity meta-function.
Definition at line 198 of file inbuf_dev.h.
|
virtualdefault |
Virtual destructor.
|
protecteddefault |
A default constructor from derived only.
|
protecteddelete |
No copies.
|
inlinenoexcept |
.begin implementation
Definition at line 294 of file inbuf_dev.h.
|
inlinenoexcept |
Definition at line 295 of file inbuf_dev.h.
|
inlinenoexcept |
Definition at line 296 of file inbuf_dev.h.
|
inlinenoexcept |
Definition at line 301 of file inbuf_dev.h.
|
inlinenoexcept |
.end implementation
Definition at line 299 of file inbuf_dev.h.
|
inlinenoexcept |
Definition at line 300 of file inbuf_dev.h.
|
inline |
Definition at line 251 of file inbuf_dev.h.
|
inline |
Definition at line 252 of file inbuf_dev.h.
|
privatepure virtual |
The base get interface. This function should read a single data_t object from device usually in non-blocking mode.
data | Reference to data output from device. |
|
privatepure virtual |
Old stile get functionality using free standing data_t*. This function should return a stream of data from device.
data | Pointer to buffer to write the data from device. |
n | The number of data of type data_t to read |
|
inline |
Definition at line 250 of file inbuf_dev.h.
|
privatepure virtual |
|
protecteddelete |
No copy assignments
|
inline |
Template operator >> implementation for for all by value/ref parameters.
dst | Reference to destination |
Definition at line 269 of file inbuf_dev.h.
|
delete |
specialization to disallow pointer types as destination
|
inline |
Overload for single data_t object.
Definition at line 280 of file inbuf_dev.h.