All Classes Namespaces Files Functions Variables Typedefs Enumerator Pages
Opm::FixedSizeIterCopyHandle< Iter1, Iter2 > Class Template Reference

A handle that copies a fixed number data per index. More...

#include <RedistributeDataHandles.hpp>

Public Types

typedef std::iterator_traits
< Iter1 >::value_type 
DataType
 

Public Member Functions

 FixedSizeIterCopyHandle (const Iter1 &send_begin, const Iter2 &receive_begin, std::size_t size=1)
 Constructor. More...
 
template<class Buffer >
void gather (Buffer &buffer, std::size_t i)
 
template<class Buffer >
void scatter (Buffer &buffer, std::size_t i, std::size_t s OPM_OPTIM_UNUSED)
 
bool fixedsize ()
 
std::size_t size (std::size_t)
 

Detailed Description

template<class Iter1, class Iter2 = Iter1>
class Opm::FixedSizeIterCopyHandle< Iter1, Iter2 >

A handle that copies a fixed number data per index.

It works on Iterators to allow for communicating C arrays.

Template Parameters
Iter1Constant random access iterator type.
Iter1Mutable random access iterator type.

Constructor & Destructor Documentation

template<class Iter1 , class Iter2 = Iter1>
Opm::FixedSizeIterCopyHandle< Iter1, Iter2 >::FixedSizeIterCopyHandle ( const Iter1 &  send_begin,
const Iter2 &  receive_begin,
std::size_t  size = 1 
)
inline

Constructor.

Parameters
send_beginThe begin iterator for sending.
receive_beginThe begin iterator for receiving.

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