ParaView
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
vtkMultiProcessControllerHelper Class Reference

collection of assorted helper routines dealing with communication. More...

#include <vtkMultiProcessControllerHelper.h>

Inherits vtkObject.

Public Types

typedef vtkObject Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent)
 

Static Public Member Functions

static vtkMultiProcessControllerHelperNew ()
 
static int IsTypeOf (const char *type)
 
static vtkMultiProcessControllerHelperSafeDownCast (vtkObject *o)
 
static int ReduceToAll (vtkMultiProcessController *controller, vtkMultiProcessStream &data, void(*operation)(vtkMultiProcessStream &A, vtkMultiProcessStream &B), int tag)
 Reduce the stream to all processes calling the (*operation) for reduction. More...
 
static vtkDataObject * MergePieces (vtkDataObject **pieces, unsigned int num_pieces)
 Utility method to merge pieces received from several processes. More...
 
static bool MergePieces (std::vector< vtkSmartPointer< vtkDataObject > > &pieces, vtkDataObject *result)
 Overload where the merged pieces are combined into result. More...
 

Protected Member Functions

 vtkMultiProcessControllerHelper ()
 
 ~vtkMultiProcessControllerHelper ()
 

Detailed Description

collection of assorted helper routines dealing with communication.

vtkMultiProcessControllerHelper is collection of assorted helper routines dealing with communication.

Definition at line 37 of file vtkMultiProcessControllerHelper.h.

Member Typedef Documentation

§ Superclass

Definition at line 41 of file vtkMultiProcessControllerHelper.h.

Constructor & Destructor Documentation

§ vtkMultiProcessControllerHelper()

vtkMultiProcessControllerHelper::vtkMultiProcessControllerHelper ( )
protected

§ ~vtkMultiProcessControllerHelper()

vtkMultiProcessControllerHelper::~vtkMultiProcessControllerHelper ( )
protected

Member Function Documentation

§ New()

static vtkMultiProcessControllerHelper* vtkMultiProcessControllerHelper::New ( )
static

§ GetClassName()

virtual const char* vtkMultiProcessControllerHelper::GetClassName ( )
virtual

§ IsTypeOf()

static int vtkMultiProcessControllerHelper::IsTypeOf ( const char *  type)
static

§ IsA()

virtual int vtkMultiProcessControllerHelper::IsA ( const char *  type)
virtual

§ SafeDownCast()

static vtkMultiProcessControllerHelper* vtkMultiProcessControllerHelper::SafeDownCast ( vtkObject *  o)
static

§ PrintSelf()

void vtkMultiProcessControllerHelper::PrintSelf ( ostream &  os,
vtkIndent  indent 
)

§ ReduceToAll()

static int vtkMultiProcessControllerHelper::ReduceToAll ( vtkMultiProcessController *  controller,
vtkMultiProcessStream &  data,
void(*)(vtkMultiProcessStream &A, vtkMultiProcessStream &B)  operation,
int  tag 
)
static

Reduce the stream to all processes calling the (*operation) for reduction.

The operation is assumed to be commutative.

§ MergePieces() [1/2]

static vtkDataObject* vtkMultiProcessControllerHelper::MergePieces ( vtkDataObject **  pieces,
unsigned int  num_pieces 
)
static

Utility method to merge pieces received from several processes.

It does not handle all data types, and hence not meant for non-paraview specific use. Returns a new instance of data object containing the merged result on success, else returns NULL. The caller is expected to release the memory from the returned data-object.

§ MergePieces() [2/2]

static bool vtkMultiProcessControllerHelper::MergePieces ( std::vector< vtkSmartPointer< vtkDataObject > > &  pieces,
vtkDataObject *  result 
)
static

Overload where the merged pieces are combined into result.


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