Back to index

salome-kernel  6.5.0
Public Member Functions | Protected Member Functions | Static Protected Member Functions
Receiver< T, senderPtr, senderSrv > Class Template Reference

Abstract class factorizing common methods of all the receivers. More...

#include <Receiver.hxx>

Inheritance diagram for Receiver< T, senderPtr, senderSrv >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual T * getValue (long &size)=0
virtual ~Receiver ()

Protected Member Functions

virtual T * getValue (long &size, senderPtr sender)
virtual T * getDistValue (long &size)=0

Static Protected Member Functions

static T * getLocalValue (long &size, senderSrv *servant)

Detailed Description

template<class T, class senderPtr, class senderSrv>
class Receiver< T, senderPtr, senderSrv >

Abstract class factorizing common methods of all the receivers.

All of the receivers have to inheritate from it.

Definition at line 31 of file Receiver.hxx.


Constructor & Destructor Documentation

template<class T, class senderPtr, class senderSrv>
virtual Receiver< T, senderPtr, senderSrv >::~Receiver ( ) [inline, virtual]

Definition at line 35 of file Receiver.hxx.

{}

Member Function Documentation

template<class T, class senderPtr, class senderSrv>
virtual T* Receiver< T, senderPtr, senderSrv >::getDistValue ( long &  size) [protected, pure virtual]
template<class T , class senderPtr , class senderSrv>
T * Receiver< T, senderPtr, senderSrv >::getLocalValue ( long &  size,
senderSrv *  servant 
) [inline, static, protected]

Definition at line 43 of file Receiver.hxx.

{
  const T *src=(const T *)servant->getData(size);
  long lgr=size*servant->getSizeOf();
  void *ret=new char[lgr];
  memcpy(ret,src,lgr);
  return (T *)ret;
  //return (void *)servant->getData(size);
}
template<class T, class senderPtr, class senderSrv>
virtual T* Receiver< T, senderPtr, senderSrv >::getValue ( long &  size) [pure virtual]
template<class T , class senderPtr, class senderSrv >
T * Receiver< T, senderPtr, senderSrv >::getValue ( long &  size,
senderPtr  sender 
) [protected, virtual]

Definition at line 54 of file Receiver.hxx.

{
  senderSrv* data=senderSrv::find(sender);
  if(data)
    return getLocalValue(size,data);
  else
    return getDistValue(size);
}

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