PlasCom2  1.0
XPACC Multi-physics simluation application
MobileObject Class Reference

provides communication for complex objects. More...

Detailed Description

provides communication for complex objects.

The MobileObject provides buffering and an interface for complex objects to use communication routines.

Definition at line 27 of file COMM.H.

#include <COMM.H>

Public Member Functions

 MobileObject ()
 
void ** GetBufPtr ()
 
const void * GetBuffer () const
 
void * GetBuffer ()
 
int BufSize ()
 
virtual int PrepareBuffer (size_t bsize)
 
virtual int Pack (void **inbuf=NULL)
 
virtual int UnPack (const void *outbuf=NULL)
 
virtual void DestroyBuffer ()
 
virtual ~MobileObject ()
 

Protected Attributes

void * _buf
 
bool _mine
 
int _bsize
 
Inheritance diagram for MobileObject:

Constructor & Destructor Documentation

◆ MobileObject()

MobileObject ( )
inline

Definition at line 34 of file COMM.H.

◆ ~MobileObject()

virtual ~MobileObject ( )
inlinevirtual

Definition at line 50 of file COMM.H.

References MobileObject::DestroyBuffer().

Here is the call graph for this function:

Member Function Documentation

◆ BufSize()

int BufSize ( )
inline

Definition at line 38 of file COMM.H.

References MobileObject::Pack(), MobileObject::PrepareBuffer(), and MobileObject::UnPack().

Here is the call graph for this function:

◆ DestroyBuffer()

virtual void DestroyBuffer ( )
inlinevirtual

Definition at line 42 of file COMM.H.

Referenced by CommunicatorObject::_AllGatherMO(), CommunicatorObject::_GatherMO(), MobileParameters::operator=(), and MobileObject::~MobileObject().

Here is the caller graph for this function:

◆ GetBuffer() [1/2]

const void* GetBuffer ( ) const
inline

Definition at line 36 of file COMM.H.

Referenced by CommunicatorObject::_AllGatherMO(), CommunicatorObject::_GatherMO(), and CommunicatorObject::BroadCast().

Here is the caller graph for this function:

◆ GetBuffer() [2/2]

void* GetBuffer ( )
inline

Definition at line 37 of file COMM.H.

◆ GetBufPtr()

void** GetBufPtr ( )
inline

Definition at line 35 of file COMM.H.

◆ Pack()

int Pack ( void **  inbuf = NULL)
virtual

Reimplemented in MobileString, and MobileParameters.

Definition at line 22 of file COMM.C.

References MobileObject::_bsize, MobileObject::_buf, MobileObject::_mine, and ix::util::String2Buf().

Referenced by CommunicatorObject::_AllGatherMO(), CommunicatorObject::_GatherMO(), CommunicatorObject::BroadCast(), and MobileObject::BufSize().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PrepareBuffer()

int PrepareBuffer ( size_t  bsize)
virtual

Definition at line 10 of file COMM.C.

References MobileObject::_bsize, MobileObject::_buf, and MobileObject::_mine.

Referenced by CommunicatorObject::BroadCast(), and MobileObject::BufSize().

Here is the caller graph for this function:

◆ UnPack()

int UnPack ( const void *  outbuf = NULL)
virtual

Reimplemented in MobileString, and MobileParameters.

Definition at line 52 of file COMM.C.

References MobileObject::_bsize, MobileObject::_buf, and MobileObject::_mine.

Referenced by CommunicatorObject::BroadCast(), and MobileObject::BufSize().

Here is the caller graph for this function:

Member Data Documentation

◆ _bsize

int _bsize
protected

◆ _buf

◆ _mine


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