COMMS
Template library intended to help with implementation of communication protocols.
Namespaces | Functions
iterator.h File Reference

Provides auxiliary functions for retrieving best type of iterator for read/write operations. More...

#include "comms/details/ReadIteratorHelper.h"
#include "comms/details/WriteIteratorHelper.h"

Go to the source code of this file.

Namespaces

 comms
 Main namespace for all classes / functions of COMMS library.
 

Functions

template<typename TMessage , typename TIter >
auto comms::readIteratorFor (TIter &&iter) -> decltype(details::ReadIteratorHelper<>::template get< TMessage >(std::forward< TIter >(iter)))
 Create and initialise iterator for message read. More...
 
template<typename TMessage , typename TIter >
auto comms::readIteratorFor (TMessage &&msg, TIter &&iter) -> decltype(details::ReadIteratorHelper<>::template get< typename std::decay< decltype(msg)>::type >(std::forward< TIter >(iter)))
 Create and initialise iterator for message read. More...
 
template<typename TMessage , typename TIter >
auto comms::writeIteratorFor (TIter &&iter) -> decltype(details::WriteIteratorHelper<>::template get< TMessage >(std::forward< TIter >(iter)))
 Create and initialise iterator for message write. More...
 
template<typename TMessage , typename TIter >
auto comms::writeIteratorFor (TMessage &&msg, TIter &&iter) -> decltype(details::WriteIteratorHelper<>::template get< typename std::decay< decltype(msg)>::type >(std::forward< TIter >(iter)))
 Create and initialise iterator for message write. More...
 

Detailed Description

Provides auxiliary functions for retrieving best type of iterator for read/write operations.