Version: 9.12.0
SALOME_CorbaDoubleCSender_i Class Reference

Servant class for CORBA sender for double* when copy of array _tabToSend is required, that is to say double and CORBA::Double are NOT binary equal. More...

#include <SALOME_Comm_i.hxx>

Inheritance diagram for SALOME_CorbaDoubleCSender_i:

Public Member Functions

 SALOME_CorbaDoubleCSender_i (const double *tabToSend, long lgrTabToSend, bool ownTabToSend=false)
 
 ~SALOME_CorbaDoubleCSender_i ()
 
CORBA::ULong getSize ()
 
SALOME::vectorOfDoublesendPart (CORBA::ULong offset, CORBA::ULong length)
 
SALOME::TypeOfDataTransmitted getTypeOfDataTransmitted ()
 
SALOME::SenderDouble_ptr buildOtherWithProtocol (SALOME::TypeOfCommunication type)
 Return a new sender of the same array but with an another protocol and delegates to the returned sender the ownership of array. More...
 
const void * getData (long &size) const
 Return the C++ data associated to the array to transmit. More...
 
int getSizeOf () const
 Return the sizeof() of each component of the generic array. More...
 
void setOwnerShip (bool own)
 To force ownerShip status. More...
 
bool getOwnerShip () const
 
void release ()
 Method for the remote destroy of the current servant. More...
 

Static Public Member Functions

static SALOME_SenderDouble_ifind (SALOME::SenderDouble_ptr pCorba)
 Method to establish if the CORBA object referred by pCorba is colocalized. More...
 

Protected Attributes

const void * _tabToSend
 Pointer to the generic array to transmit. More...
 
long _lgrTabToSend
 Length of the generic array to transmit. More...
 
int _sizeOf
 it represents the sizeof() of each component of the generic array:
Practically in terms of bytes the size to be transmitted is _lgrTabToSend*_sizeOf More...
 
bool _ownTabToSend
 Indicates if _tabToSend has to be deallocated. More...
 

Detailed Description

Servant class for CORBA sender for double* when copy of array _tabToSend is required, that is to say double and CORBA::Double are NOT binary equal.

Constructor & Destructor Documentation

◆ SALOME_CorbaDoubleCSender_i()

SALOME_CorbaDoubleCSender_i::SALOME_CorbaDoubleCSender_i ( const double *  tabToSend,
long  lgrTabToSend,
bool  ownTabToSend = false 
)

◆ ~SALOME_CorbaDoubleCSender_i()

SALOME_CorbaDoubleCSender_i::~SALOME_CorbaDoubleCSender_i ( )

Member Function Documentation

◆ buildOtherWithProtocol()

SALOME::SenderDouble_ptr SALOME_SenderDouble_i::buildOtherWithProtocol ( SALOME::TypeOfCommunication  type)
inherited

Return a new sender of the same array but with an another protocol and delegates to the returned sender the ownership of array.

References SenderFactory::buildSender().

◆ find()

SALOME_SenderDouble_i * SALOME_SenderDouble_i::find ( SALOME::SenderDouble_ptr  pCorba)
staticinherited

Method to establish if the CORBA object referred by pCorba is colocalized.


If it is, the pointer to the servant that incarnates the CORBA object is returned.

References TestKernelHelpers::ret.

◆ getData()

const void * SALOME_Sender_i::getData ( long &  size) const
inherited

Return the C++ data associated to the array to transmit.

Used when sender and receiver are colocalized.

References SALOME_Sender_i::_lgrTabToSend, and SALOME_Sender_i::_tabToSend.

Referenced by SenderFactory::buildSender().

◆ getOwnerShip()

bool SALOME_Sender_i::getOwnerShip ( ) const
inherited

◆ getSize()

CORBA::ULong SALOME_CorbaDoubleCSender_i::getSize ( )

◆ getSizeOf()

int SALOME_Sender_i::getSizeOf ( ) const
inherited

Return the sizeof() of each component of the generic array.

References SALOME_Sender_i::_sizeOf.

◆ getTypeOfDataTransmitted()

SALOME::TypeOfDataTransmitted SALOME_SenderDouble_i::getTypeOfDataTransmitted ( )
inherited

◆ release()

void SALOME_Sender_i::release ( )
inherited

Method for the remote destroy of the current servant.

This method is used by the receiver to destroy the sender when the transfert is complete.

◆ sendPart()

SALOME::vectorOfDouble * SALOME_CorbaDoubleCSender_i::sendPart ( CORBA::ULong  offset,
CORBA::ULong  length 
)

◆ setOwnerShip()

void SALOME_Sender_i::setOwnerShip ( bool  own)
inherited

To force ownerShip status.

References SALOME_Sender_i::_ownTabToSend.

Referenced by SenderFactory::buildSender().

Field Documentation

◆ _lgrTabToSend

◆ _ownTabToSend

bool SALOME_Sender_i::_ownTabToSend
protectedinherited

◆ _sizeOf

int SALOME_Sender_i::_sizeOf
protectedinherited

it represents the sizeof() of each component of the generic array:
Practically in terms of bytes the size to be transmitted is _lgrTabToSend*_sizeOf

Referenced by SALOME_Sender_i::getSizeOf().

◆ _tabToSend