vtkCommunicator Class Reference

#include <vtkCommunicator.h>

Inheritance diagram for vtkCommunicator:

Inheritance graph
[legend]
Collaboration diagram for vtkCommunicator:

Collaboration graph
[legend]
List of all members.

Detailed Description

Used to send/receive messages in a multiprocess environment.

This is an abstact class which contains functionality for sending and receiving inter-process messages. It contains methods for marshaling an object into a string (currently used by the MPI communicator but not the shared memory communicator).

Warning:
Communication between systems with different vtkIdTypes is not supported. All machines have to have the same vtkIdType.
See also:
vtkMPICommunicator
Tests:
vtkCommunicator (Tests)

Definition at line 48 of file vtkCommunicator.h.

Public Types

typedef vtkObject Superclass
 BROADCAST_TAG = 10
 GATHER_TAG = 11
 GATHERV_TAG = 12
 SCATTER_TAG = 13
 SCATTERV_TAG = 14
 REDUCE_TAG = 15
 BARRIER_TAG = 16
 MAX_OP
 MIN_OP
 SUM_OP
 PRODUCT_OP
 LOGICAL_AND_OP
 BITWISE_AND_OP
 LOGICAL_OR_OP
 BITWISE_OR_OP
 LOGICAL_XOR_OP
 BITWISE_XOR_OP
enum  Tags {
  BROADCAST_TAG = 10, GATHER_TAG = 11, GATHERV_TAG = 12, SCATTER_TAG = 13,
  SCATTERV_TAG = 14, REDUCE_TAG = 15, BARRIER_TAG = 16
}
enum  StandardOperations {
  MAX_OP, MIN_OP, SUM_OP, PRODUCT_OP,
  LOGICAL_AND_OP, BITWISE_AND_OP, LOGICAL_OR_OP, BITWISE_OR_OP,
  LOGICAL_XOR_OP, BITWISE_XOR_OP
}

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetNumberOfProcesses (int num)
virtual int GetNumberOfProcesses ()
virtual int GetLocalProcessId ()
int Send (vtkDataObject *data, int remoteHandle, int tag)
int Send (vtkDataArray *data, int remoteHandle, int tag)
virtual int SendVoidArray (const void *data, vtkIdType length, int type, int remoteHandle, int tag)=0
int Send (const int *data, vtkIdType length, int remoteHandle, int tag)
int Send (const unsigned int *data, vtkIdType length, int remoteHandle, int tag)
int Send (const unsigned long *data, vtkIdType length, int remoteHandle, int tag)
int Send (const unsigned char *data, vtkIdType length, int remoteHandle, int tag)
int Send (const char *data, vtkIdType length, int remoteHandle, int tag)
int Send (const float *data, vtkIdType length, int remoteHandle, int tag)
int Send (const double *data, vtkIdType length, int remoteHandle, int tag)
int Receive (vtkDataObject *data, int remoteHandle, int tag)
vtkDataObjectReceiveDataObject (int remoteHandle, int tag)
int Receive (vtkDataArray *data, int remoteHandle, int tag)
virtual int ReceiveVoidArray (void *data, vtkIdType length, int type, int remoteHandle, int tag)=0
int Receive (int *data, vtkIdType length, int remoteHandle, int tag)
int Receive (unsigned int *data, vtkIdType length, int remoteHandle, int tag)
int Receive (unsigned long *data, vtkIdType length, int remoteHandle, int tag)
int Receive (unsigned char *data, vtkIdType length, int remoteHandle, int tag)
int Receive (char *data, vtkIdType length, int remoteHandle, int tag)
int Receive (float *data, vtkIdType length, int remoteHandle, int tag)
int Receive (double *data, vtkIdType length, int remoteHandle, int tag)
virtual void Barrier ()
int Broadcast (int *data, vtkIdType length, int srcProcessId)
int Broadcast (unsigned long *data, vtkIdType length, int srcProcessId)
int Broadcast (unsigned char *data, vtkIdType length, int srcProcessId)
int Broadcast (char *data, vtkIdType length, int srcProcessId)
int Broadcast (float *data, vtkIdType length, int srcProcessId)
int Broadcast (double *data, vtkIdType length, int srcProcessId)
int Broadcast (vtkDataObject *data, int srcProcessId)
int Broadcast (vtkDataArray *data, int srcProcessId)
int Gather (const int *sendBuffer, int *recvBuffer, vtkIdType length, int destProcessId)
int Gather (const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType length, int destProcessId)
int Gather (const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType length, int destProcessId)
int Gather (const char *sendBuffer, char *recvBuffer, vtkIdType length, int destProcessId)
int Gather (const float *sendBuffer, float *recvBuffer, vtkIdType length, int destProcessId)
int Gather (const double *sendBuffer, double *recvBuffer, vtkIdType length, int destProcessId)
int Gather (vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, int destProcessId)
int GatherV (const int *sendBuffer, int *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
int GatherV (const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
int GatherV (const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
int GatherV (const char *sendBuffer, char *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
int GatherV (const float *sendBuffer, float *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
int GatherV (const double *sendBuffer, double *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
int Scatter (const int *sendBuffer, int *recvBuffer, vtkIdType length, int srcProcessId)
int Scatter (const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType length, int srcProcessId)
int Scatter (const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType length, int srcProcessId)
int Scatter (const char *sendBuffer, char *recvBuffer, vtkIdType length, int srcProcessId)
int Scatter (const float *sendBuffer, float *recvBuffer, vtkIdType length, int srcProcessId)
int Scatter (const double *sendBuffer, double *recvBuffer, vtkIdType length, int srcProcessId)
int Scatter (vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, int srcProcessId)
int ScatterV (const int *sendBuffer, int *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId)
int ScatterV (const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId)
int ScatterV (const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId)
int ScatterV (const char *sendBuffer, char *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId)
int ScatterV (const float *sendBuffer, float *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId)
int ScatterV (const double *sendBuffer, double *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId)
int AllGather (const int *sendBuffer, int *recvBuffer, vtkIdType length)
int AllGather (const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType length)
int AllGather (const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType length)
int AllGather (const char *sendBuffer, char *recvBuffer, vtkIdType length)
int AllGather (const float *sendBuffer, float *recvBuffer, vtkIdType length)
int AllGather (const double *sendBuffer, double *recvBuffer, vtkIdType length)
int AllGather (vtkDataArray *sendBuffer, vtkDataArray *recvBuffer)
int AllGatherV (const int *sendBuffer, int *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets)
int AllGatherV (const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets)
int AllGatherV (const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets)
int AllGatherV (const char *sendBuffer, char *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets)
int AllGatherV (const float *sendBuffer, float *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets)
int AllGatherV (const double *sendBuffer, double *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets)
int Reduce (const int *sendBuffer, int *recvBuffer, vtkIdType length, int operation, int destProcessId)
int Reduce (const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType length, int operation, int destProcessId)
int Reduce (const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType length, int operation, int destProcessId)
int Reduce (const char *sendBuffer, char *recvBuffer, vtkIdType length, int operation, int destProcessId)
int Reduce (const float *sendBuffer, float *recvBuffer, vtkIdType length, int operation, int destProcessId)
int Reduce (const double *sendBuffer, double *recvBuffer, vtkIdType length, int operation, int destProcessId)
int Reduce (vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, int operation, int destProcessId)
int Reduce (const int *sendBuffer, int *recvBuffer, vtkIdType length, Operation *operation, int destProcessId)
int Reduce (const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType length, Operation *operation, int destProcessId)
int Reduce (const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType length, Operation *operation, int destProcessId)
int Reduce (const char *sendBuffer, char *recvBuffer, vtkIdType length, Operation *operation, int destProcessId)
int Reduce (const float *sendBuffer, float *recvBuffer, vtkIdType length, Operation *operation, int destProcessId)
int Reduce (const double *sendBuffer, double *recvBuffer, vtkIdType length, Operation *operation, int destProcessId)
int Reduce (vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, Operation *operation, int destProcessId)
int AllReduce (const int *sendBuffer, int *recvBuffer, vtkIdType length, int operation)
int AllReduce (const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType length, int operation)
int AllReduce (const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType length, int operation)
int AllReduce (const char *sendBuffer, char *recvBuffer, vtkIdType length, int operation)
int AllReduce (const float *sendBuffer, float *recvBuffer, vtkIdType length, int operation)
int AllReduce (const double *sendBuffer, double *recvBuffer, vtkIdType length, int operation)
int AllReduce (vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, int operation)
int AllReduce (const int *sendBuffer, int *recvBuffer, vtkIdType length, Operation *operation)
int AllReduce (const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType length, Operation *operation)
int AllReduce (const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType length, Operation *operation)
int AllReduce (const char *sendBuffer, char *recvBuffer, vtkIdType length, Operation *operation)
int AllReduce (const float *sendBuffer, float *recvBuffer, vtkIdType length, Operation *operation)
int AllReduce (const double *sendBuffer, double *recvBuffer, vtkIdType length, Operation *operation)
int AllReduce (vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, Operation *operation)
virtual int BroadcastVoidArray (void *data, vtkIdType length, int type, int srcProcessId)
virtual int GatherVoidArray (const void *sendBuffer, void *recvBuffer, vtkIdType length, int type, int destProcessId)
virtual int GatherVVoidArray (const void *sendBuffer, void *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int type, int destProcessId)
virtual int ScatterVoidArray (const void *sendBuffer, void *recvBuffer, vtkIdType length, int type, int srcProcessId)
virtual int ScatterVVoidArray (const void *sendBuffer, void *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int type, int srcProcessId)
virtual int AllGatherVoidArray (const void *sendBuffer, void *recvBuffer, vtkIdType length, int type)
virtual int AllGatherVVoidArray (const void *sendBuffer, void *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int type)
virtual int ReduceVoidArray (const void *sendBuffer, void *recvBuffer, vtkIdType length, int type, int operation, int destProcessId)
virtual int ReduceVoidArray (const void *sendBuffer, void *recvBuffer, vtkIdType length, int type, Operation *operation, int destProcessId)
virtual int AllReduceVoidArray (const void *sendBuffer, void *recvBuffer, vtkIdType length, int type, int operation)
virtual int AllReduceVoidArray (const void *sendBuffer, void *recvBuffer, vtkIdType length, int type, Operation *operation)
virtual int ComputeGlobalBounds (int processorId, int numProcesses, vtkBoundingBox *bounds, int *rightHasBounds=0, int *leftHasBounds=0, int hasBoundsTag=288402, int localBoundsTag=288403, int globalBoundsTag=288404)

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkCommunicatorSafeDownCast (vtkObject *o)
static void SetUseCopy (int useCopy)
static int GetParentProcessor (int pid)
static int GetLeftChildProcessor (int pid)
static int MarshalDataObject (vtkDataObject *object, vtkCharArray *buffer)
static int UnMarshalDataObject (vtkCharArray *buffer, vtkDataObject *object)

Protected Member Functions

int WriteDataArray (vtkDataArray *object)
int ReadDataArray (vtkDataArray *object)
 vtkCommunicator ()
 ~vtkCommunicator ()
int SendElementalDataObject (vtkDataObject *data, int remoteHandle, int tag)
int SendMultiBlockDataSet (vtkMultiBlockDataSet *data, int remoteHandle, int tag)
int SendTemporalDataSet (vtkTemporalDataSet *data, int remoteHandle, int tag)
int ReceiveDataObject (vtkDataObject *data, int remoteHandle, int tag, int type=-1)
int ReceiveElementalDataObject (vtkDataObject *data, int remoteHandle, int tag)
int ReceiveMultiBlockDataSet (vtkMultiBlockDataSet *data, int remoteHandle, int tag)
int ReceiveTemporalDataSet (vtkTemporalDataSet *data, int remoteHandle, int tag)

Protected Attributes

int MaximumNumberOfProcesses
int NumberOfProcesses
int LocalProcessId

Static Protected Attributes

static int UseCopy

Classes

class  Operation


Member Typedef Documentation

typedef vtkObject vtkCommunicator::Superclass

Reimplemented from vtkObject.

Reimplemented in vtkDummyCommunicator, vtkMPICommunicator, vtkSocketCommunicator, and vtkSubCommunicator.

Definition at line 53 of file vtkCommunicator.h.


Member Enumeration Documentation

enum vtkCommunicator::Tags

Enumerator:
BROADCAST_TAG 
GATHER_TAG 
GATHERV_TAG 
SCATTER_TAG 
SCATTERV_TAG 
REDUCE_TAG 
BARRIER_TAG 

Definition at line 71 of file vtkCommunicator.h.

enum vtkCommunicator::StandardOperations

Enumerator:
MAX_OP 
MIN_OP 
SUM_OP 
PRODUCT_OP 
LOGICAL_AND_OP 
BITWISE_AND_OP 
LOGICAL_OR_OP 
BITWISE_OR_OP 
LOGICAL_XOR_OP 
BITWISE_XOR_OP 

Definition at line 82 of file vtkCommunicator.h.


Constructor & Destructor Documentation

vtkCommunicator::vtkCommunicator (  )  [protected]

vtkCommunicator::~vtkCommunicator (  )  [protected]


Member Function Documentation

virtual const char* vtkCommunicator::GetClassName (  )  [virtual]

Reimplemented from vtkObject.

Reimplemented in vtkDummyCommunicator, vtkMPICommunicator, vtkSocketCommunicator, and vtkSubCommunicator.

static int vtkCommunicator::IsTypeOf ( const char *  type  )  [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

Reimplemented in vtkDummyCommunicator, vtkMPICommunicator, vtkSocketCommunicator, and vtkSubCommunicator.

virtual int vtkCommunicator::IsA ( const char *  type  )  [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

Reimplemented in vtkDummyCommunicator, vtkMPICommunicator, vtkSocketCommunicator, and vtkSubCommunicator.

static vtkCommunicator* vtkCommunicator::SafeDownCast ( vtkObject o  )  [static]

Reimplemented from vtkObject.

Reimplemented in vtkDummyCommunicator, vtkMPICommunicator, vtkSocketCommunicator, and vtkSubCommunicator.

void vtkCommunicator::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkObject.

Reimplemented in vtkDummyCommunicator, vtkMPICommunicator, vtkSocketCommunicator, and vtkSubCommunicator.

virtual void vtkCommunicator::SetNumberOfProcesses ( int  num  )  [virtual]

Set the number of processes you will be using. This defaults to the maximum number available. If you set this to a value higher than the default, you will get an error.

Reimplemented in vtkSocketCommunicator.

virtual int vtkCommunicator::GetNumberOfProcesses (  )  [virtual]

Set the number of processes you will be using. This defaults to the maximum number available. If you set this to a value higher than the default, you will get an error.

virtual int vtkCommunicator::GetLocalProcessId (  )  [virtual]

Tells you which process [0, NumProcess) you are in.

int vtkCommunicator::Send ( vtkDataObject data,
int  remoteHandle,
int  tag 
)

This method sends a data object to a destination. Tag eliminates ambiguity and is used to match sends to receives.

Referenced by vtkMultiProcessController::Send().

int vtkCommunicator::Send ( vtkDataArray data,
int  remoteHandle,
int  tag 
)

This method sends a data array to a destination. Tag eliminates ambiguity and is used to match sends to receives.

virtual int vtkCommunicator::SendVoidArray ( const void *  data,
vtkIdType  length,
int  type,
int  remoteHandle,
int  tag 
) [pure virtual]

Subclasses have to supply this method to send various arrays of data. The type arg is one of the VTK type constants recognized by the vtkTemplateMacro (VTK_FLOAT, VTK_INT, etc.). length is measured in number of values (as opposed to number of bytes).

Implemented in vtkDummyCommunicator, vtkMPICommunicator, vtkSocketCommunicator, and vtkSubCommunicator.

int vtkCommunicator::Send ( const int *  data,
vtkIdType  length,
int  remoteHandle,
int  tag 
) [inline]

Convenience methods for sending data arrays.

Definition at line 143 of file vtkCommunicator.h.

References VTK_INT.

int vtkCommunicator::Send ( const unsigned int *  data,
vtkIdType  length,
int  remoteHandle,
int  tag 
) [inline]

Convenience methods for sending data arrays.

Definition at line 146 of file vtkCommunicator.h.

References VTK_INT.

int vtkCommunicator::Send ( const unsigned long *  data,
vtkIdType  length,
int  remoteHandle,
int  tag 
) [inline]

Convenience methods for sending data arrays.

Definition at line 149 of file vtkCommunicator.h.

References VTK_UNSIGNED_LONG.

int vtkCommunicator::Send ( const unsigned char *  data,
vtkIdType  length,
int  remoteHandle,
int  tag 
) [inline]

Convenience methods for sending data arrays.

Definition at line 153 of file vtkCommunicator.h.

References VTK_UNSIGNED_CHAR.

int vtkCommunicator::Send ( const char *  data,
vtkIdType  length,
int  remoteHandle,
int  tag 
) [inline]

Convenience methods for sending data arrays.

Definition at line 157 of file vtkCommunicator.h.

References VTK_CHAR.

int vtkCommunicator::Send ( const float *  data,
vtkIdType  length,
int  remoteHandle,
int  tag 
) [inline]

Convenience methods for sending data arrays.

Definition at line 160 of file vtkCommunicator.h.

References VTK_FLOAT.

int vtkCommunicator::Send ( const double *  data,
vtkIdType  length,
int  remoteHandle,
int  tag 
) [inline]

Convenience methods for sending data arrays.

Definition at line 163 of file vtkCommunicator.h.

References VTK_DOUBLE.

int vtkCommunicator::Receive ( vtkDataObject data,
int  remoteHandle,
int  tag 
)

This method receives a data object from a corresponding send. It blocks until the receive is finished.

Referenced by vtkMultiProcessController::Receive().

vtkDataObject* vtkCommunicator::ReceiveDataObject ( int  remoteHandle,
int  tag 
)

The caller does not have to know the data type before this call is made. It returns the newly created object.

Referenced by vtkMultiProcessController::ReceiveDataObject().

int vtkCommunicator::Receive ( vtkDataArray data,
int  remoteHandle,
int  tag 
)

This method receives a data array from a corresponding send. It blocks until the receive is finished.

virtual int vtkCommunicator::ReceiveVoidArray ( void *  data,
vtkIdType  length,
int  type,
int  remoteHandle,
int  tag 
) [pure virtual]

Subclasses have to supply this method to receive various arrays of data. The type arg is one of the VTK type constants recognized by the vtkTemplateMacro (VTK_FLOAT, VTK_INT, etc.). length is measured in number of values (as opposed to number of bytes).

Implemented in vtkDummyCommunicator, vtkMPICommunicator, vtkSocketCommunicator, and vtkSubCommunicator.

int vtkCommunicator::Receive ( int *  data,
vtkIdType  length,
int  remoteHandle,
int  tag 
) [inline]

Convenience methods for receiving data arrays.

Definition at line 197 of file vtkCommunicator.h.

References VTK_INT.

int vtkCommunicator::Receive ( unsigned int *  data,
vtkIdType  length,
int  remoteHandle,
int  tag 
) [inline]

Convenience methods for receiving data arrays.

Definition at line 200 of file vtkCommunicator.h.

References VTK_INT.

int vtkCommunicator::Receive ( unsigned long *  data,
vtkIdType  length,
int  remoteHandle,
int  tag 
) [inline]

Convenience methods for receiving data arrays.

Definition at line 203 of file vtkCommunicator.h.

References VTK_UNSIGNED_LONG.

int vtkCommunicator::Receive ( unsigned char *  data,
vtkIdType  length,
int  remoteHandle,
int  tag 
) [inline]

Convenience methods for receiving data arrays.

Definition at line 207 of file vtkCommunicator.h.

References VTK_UNSIGNED_CHAR.

int vtkCommunicator::Receive ( char *  data,
vtkIdType  length,
int  remoteHandle,
int  tag 
) [inline]

Convenience methods for receiving data arrays.

Definition at line 211 of file vtkCommunicator.h.

References VTK_CHAR.

int vtkCommunicator::Receive ( float *  data,
vtkIdType  length,
int  remoteHandle,
int  tag 
) [inline]

Convenience methods for receiving data arrays.

Definition at line 214 of file vtkCommunicator.h.

References VTK_FLOAT.

int vtkCommunicator::Receive ( double *  data,
vtkIdType  length,
int  remoteHandle,
int  tag 
) [inline]

Convenience methods for receiving data arrays.

Definition at line 217 of file vtkCommunicator.h.

References VTK_DOUBLE.

virtual void vtkCommunicator::Barrier (  )  [virtual]

Will block the processes until all other processes reach the Barrier function.

Reimplemented in vtkMPICommunicator, and vtkSocketCommunicator.

Referenced by vtkMultiProcessController::Barrier().

int vtkCommunicator::Broadcast ( int *  data,
vtkIdType  length,
int  srcProcessId 
) [inline]

Broadcast sends the array in the process with id srcProcessId to all of the other processes. All processes must call these method with the same arguments in order for it to complete.

Definition at line 237 of file vtkCommunicator.h.

References VTK_INT.

int vtkCommunicator::Broadcast ( unsigned long *  data,
vtkIdType  length,
int  srcProcessId 
) [inline]

Convenience methods for receiving data arrays.

Definition at line 240 of file vtkCommunicator.h.

References VTK_UNSIGNED_LONG.

int vtkCommunicator::Broadcast ( unsigned char *  data,
vtkIdType  length,
int  srcProcessId 
) [inline]

Convenience methods for receiving data arrays.

Definition at line 243 of file vtkCommunicator.h.

References VTK_UNSIGNED_CHAR.

int vtkCommunicator::Broadcast ( char *  data,
vtkIdType  length,
int  srcProcessId 
) [inline]

Convenience methods for receiving data arrays.

Definition at line 246 of file vtkCommunicator.h.

References VTK_CHAR.

int vtkCommunicator::Broadcast ( float *  data,
vtkIdType  length,
int  srcProcessId 
) [inline]

Convenience methods for receiving data arrays.

Definition at line 249 of file vtkCommunicator.h.

References VTK_FLOAT.

int vtkCommunicator::Broadcast ( double *  data,
vtkIdType  length,
int  srcProcessId 
) [inline]

Convenience methods for receiving data arrays.

Definition at line 252 of file vtkCommunicator.h.

References VTK_DOUBLE.

int vtkCommunicator::Broadcast ( vtkDataObject data,
int  srcProcessId 
)

Convenience methods for receiving data arrays.