ParaView
Public Member Functions
vtkMaterialInterfacePieceTransactionMatrix Class Reference

#include <vtkMaterialInterfacePieceTransactionMatrix.h>

List of all members.

Public Member Functions

 vtkMaterialInterfacePieceTransactionMatrix ()
 vtkMaterialInterfacePieceTransactionMatrix (int nFragments, int nProcs)
void Clear ()
vtkIdType GetNumberOfTransactions (int procId)
 ~vtkMaterialInterfacePieceTransactionMatrix ()
void Initialize (int nProcs, int nFragments)
std::vector
< vtkMaterialInterfacePieceTransaction > & 
GetTransactions (int fragmentId, int procId)
void PushTransaction (int fragmentId, int procId, vtkMaterialInterfacePieceTransaction &transaction)
void Broadcast (vtkCommunicator *comm, int srcProc)
void Print ()
vtkIdType Capacity ()

Detailed Description

Container to hold a sets of transactions (sends/recvs) indexed by fragment and proc, inteneded to facilitiate moving fragment peices around.

Internaly we have a 2D matrix. On one axis is fragment id on the other is proc id.

Transaction are intended to execute in fragment order so that no deadlocks occur.

Definition at line 37 of file vtkMaterialInterfacePieceTransactionMatrix.h.


Constructor & Destructor Documentation

vtkMaterialInterfacePieceTransactionMatrix::vtkMaterialInterfacePieceTransactionMatrix ( )

Set the object to an un-initialized state.

vtkMaterialInterfacePieceTransactionMatrix::vtkMaterialInterfacePieceTransactionMatrix ( int  nFragments,
int  nProcs 
)

Allocate internal resources and set the object to an initialized state.

vtkMaterialInterfacePieceTransactionMatrix::~vtkMaterialInterfacePieceTransactionMatrix ( )

Free allocated resources and leave the object in an un-initialized state.


Member Function Documentation

void vtkMaterialInterfacePieceTransactionMatrix::Initialize ( int  nProcs,
int  nFragments 
)

Free allocated resources and leave the object in an un-initialized state.

void vtkMaterialInterfacePieceTransactionMatrix::Clear ( )

Free allocated resources and leave the object in an un-initialized state.

vtkIdType vtkMaterialInterfacePieceTransactionMatrix::GetNumberOfTransactions ( int  procId) [inline]

Get the number of transaction a given process will execute.

Definition at line 118 of file vtkMaterialInterfacePieceTransactionMatrix.h.

std::vector< vtkMaterialInterfacePieceTransaction > & vtkMaterialInterfacePieceTransactionMatrix::GetTransactions ( int  fragmentId,
int  procId 
) [inline]

Given a proc and a fragment, return a ref to the associated list of tranactions.

Definition at line 108 of file vtkMaterialInterfacePieceTransactionMatrix.h.

void vtkMaterialInterfacePieceTransactionMatrix::PushTransaction ( int  fragmentId,
int  procId,
vtkMaterialInterfacePieceTransaction transaction 
)

Add a transaction to the end of the given a proc,fragment pair's transaction list.

void vtkMaterialInterfacePieceTransactionMatrix::Broadcast ( vtkCommunicator comm,
int  srcProc 
)

Send the transaction matrix on srcProc to all other procs.

void vtkMaterialInterfacePieceTransactionMatrix::Print ( )

Send the transaction matrix on srcProc to all other procs.

vtkIdType vtkMaterialInterfacePieceTransactionMatrix::Capacity ( ) [inline]

Tells how much memory the matrix has allocated.

Definition at line 79 of file vtkMaterialInterfacePieceTransactionMatrix.h.


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