PABLO  0.1
PArallel Balanced Linear Octree
 All Classes Functions Variables Pages
Public Member Functions | Friends | List of all members
Class_Comm_Buffer Class Reference

Bundle char container for communications. More...

#include "Class_Comm_Buffer.hpp"

Public Member Functions

 Class_Comm_Buffer (MPI_Comm comm_)
 
 Class_Comm_Buffer (uint32_t size, char value, MPI_Comm comm_)
 
 Class_Comm_Buffer (const Class_Comm_Buffer &other)
 
Class_Comm_Bufferoperator= (const Class_Comm_Buffer &rhs)
 
template<class T >
void read (T &val)
 
template<class T >
void write (T &val)
 

Friends

template<int dim>
class Class_Para_Tree
 

Detailed Description

Bundle char container for communications.

Date
09/sep/2015
Authors
Edoardo Lombardi
Marco Cisternino
Version
0.1
License
This version of PABLO is released under the LGPL License.

This calls is intended to provide the user with a basic container for data MPI communications.

The user should use this container implementing his communications interface specializations.

More precisely, he has to call read/write methods to read/write every MPI-compatible POD datum in the buffer. By this way, data communications are data independent.

Definition at line 40 of file Class_Comm_Buffer.hpp.

Member Function Documentation

template<class T >
void Class_Comm_Buffer::read ( T &  val)

This method reads from commBuffer the user MPI-compatible POD datum of type T.

Parameters
[in]valThe values that has to be read from the buffer.

Definition at line 8 of file Class_Comm_Buffer.tpp.

template<class T >
void Class_Comm_Buffer::write ( T &  val)

This method writes a MPI-compatible POD datum of type T in commBuffer

Parameters
[in]valThe values that has to be written in the buffer.

Definition at line 2 of file Class_Comm_Buffer.tpp.


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