C++ mpi module for stochmagnet_main Package
Public Member Functions | List of all members
MPI_RAMIO< T > Class Template Reference

This class is a class to modify directctly memory between 2 cores. More...

#include <MPI_RAMIO.h>

Inheritance diagram for MPI_RAMIO< T >:
Inheritance graph
[legend]
Collaboration diagram for MPI_RAMIO< T >:
Collaboration graph
[legend]

Public Member Functions

 MPI_RAMIO ()
 create
 
virtual ~MPI_RAMIO (void)
 destroy
 
MPI_RAMIO< T > & operator= (const T &value)
 initialize the RAM values More...
 
void openRAMWindow (const MPI_Environment &env, const tMPICount &n)
 open a ram window of size n within the core this More...
 
void closeRAMWindow ()
 close a ram window
 
void flush ()
 open the asscess
 
void read (std::valarray< T > &values, const tMPICoreId &srcCore)
 read the memory More...
 
void write (const std::valarray< T > &values, const tMPICoreId &destCore)
 read the memory More...
 
- Public Member Functions inherited from CORE_Object
template<class T >
std::shared_ptr< T > getSharedPointer ()
 return the shared pointer for this More...
 
template<class T >
std::shared_ptr< const T > getConstSharedPointer () const
 return a const shared pointer for this More...
 
virtual tMemSize getMemorySize () const
 return the memory size of the class and the memory size of all its attributes/associations More...
 
virtual tMemSize getContentsMemorySize () const
 return nthe memory size of the included associations More...
 
template<class T >
tBoolean isInstanceOf () const
 test if the clas T is an instance of this class More...
 
tString getClassName () const
 return the name of the class More...
 
tString getPointerString () const
 retrun the pointer of the class as a string More...
 
tString getIdentityString () const
 retrun the string identification of the class More...
 
virtual tString toString () const
 return the string representation of the object node More...
 

Additional Inherited Members

- Static Public Member Functions inherited from CORE_Object
static tBoolean EnableMemoryStack (const tBoolean &isMemoryChecked)
 enable the memory stack More...
 
static void EnableMemoryStack ()
 enable the memory stack
 
static void DisableMemoryStack ()
 disable the memory stack
 
static tBoolean IsMemoryStackEnabled ()
 return trur if the memory stack is enabled
 
static tString MemoryStackToString ()
 get the memory stack in string More...
 
static tIndex GetRegisteredClassesNumber ()
 get the memory stack in string More...
 
- Protected Member Functions inherited from MPI_Object
 MPI_Object (void)
 create
 
virtual ~MPI_Object (void)
 destroy
 
- Protected Member Functions inherited from CORE_Object
 CORE_Object ()
 build an instance of the object
 
virtual ~CORE_Object ()
 destroy the instance of object std

 

Detailed Description

template<typename T>
class MPI_RAMIO< T >

This class is a class to modify directctly memory between 2 cores.

Template Parameters
T: type of RAM memory
Author
Stephane Despreaux
Version
2.0

Member Function Documentation

◆ openRAMWindow()

template<typename T >
void MPI_RAMIO< T >::openRAMWindow ( const MPI_Environment env,
const tMPICount &  n 
)
inline

open a ram window of size n within the core this

Parameters
[in]env: environement
[in]n: size of mmeory of type T

◆ operator=()

template<typename T >
MPI_RAMIO<T>& MPI_RAMIO< T >::operator= ( const T &  value)
inline

initialize the RAM values

Parameters
[in]value: value of the memory

◆ read()

template<typename T >
void MPI_RAMIO< T >::read ( std::valarray< T > &  values,
const tMPICoreId &  srcCore 
)
inline

read the memory

Parameters
[out]valuesvalues of the memory
[in]srcCore: src core of the memory

◆ write()

template<typename T >
void MPI_RAMIO< T >::write ( const std::valarray< T > &  values,
const tMPICoreId &  destCore 
)
inline

read the memory

Parameters
[in]valuesvalues of the memory
[in]destCore: dest core of the memory

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