Public Types | Public Member Functions | Static Public Member Functions | List of all members
vtkMaterialInterfaceCommBuffer Class Reference

#include <vtkMaterialInterfaceCommBuffer.h>

Public Types

enum  { PROC_ID = 0, BUFFER_SIZE = 1, DESCR_BASE = 2 }
 

Public Member Functions

 vtkMaterialInterfaceCommBuffer ()
 
 ~vtkMaterialInterfaceCommBuffer ()
 
void Initialize (int procId, int nBlocks, vtkIdType nBytes)
 
void SizeHeader (int nBlocks)
 
void SizeBuffer (vtkIdType nBytes)
 
void SizeBuffer ()
 
void Clear ()
 
vtkIdType GetBufferSize () const
 
char * GetBuffer () const
 
vtkIdType GetEOD () const
 
int GetHeaderSize () const
 
vtkIdTypeGetHeader () const
 
vtkIdType Capacity ()
 
void SetNumberOfTuples (int blockId, vtkIdType nFragments)
 
vtkIdType GetNumberOfTuples (int blockId) const
 
vtkIdType Pack (const double *pData, int nComps, vtkIdType nTups)
 
vtkIdType Pack (const float *pData, int nComps, vtkIdType nTups)
 
vtkIdType Pack (const int *pData, int nComps, vtkIdType nTups)
 
vtkIdType Pack (vtkDoubleArray *da)
 
vtkIdType Pack (vtkFloatArray *da)
 
void InitUnpack ()
 
int UnPack (double *&rData, int nComps, vtkIdType nTups, bool copyFlag)
 
int UnPack (float *&rData, int nComps, vtkIdType nTups, bool copyFlag)
 
int UnPack (int *&rData, int nComps, vtkIdType nTups, bool copyFlag)
 
int UnPack (vtkDoubleArray *da, int nComps, vtkIdType nTups, bool copyFlag)
 
int UnPack (vtkFloatArray *da, int nComps, vtkIdType nTups, bool copyFlag)
 

Static Public Member Functions

static void SizeHeader (std::vector< vtkMaterialInterfaceCommBuffer > &buffers, int nBlocks)
 

Detailed Description

Definition at line 23 of file vtkMaterialInterfaceCommBuffer.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
PROC_ID 
BUFFER_SIZE 
DESCR_BASE 

Definition at line 27 of file vtkMaterialInterfaceCommBuffer.h.

Constructor & Destructor Documentation

◆ vtkMaterialInterfaceCommBuffer()

vtkMaterialInterfaceCommBuffer::vtkMaterialInterfaceCommBuffer ( )

◆ ~vtkMaterialInterfaceCommBuffer()

vtkMaterialInterfaceCommBuffer::~vtkMaterialInterfaceCommBuffer ( )

Member Function Documentation

◆ Initialize()

void vtkMaterialInterfaceCommBuffer::Initialize ( int  procId,
int  nBlocks,
vtkIdType  nBytes 
)

◆ SizeHeader() [1/2]

void vtkMaterialInterfaceCommBuffer::SizeHeader ( int  nBlocks)

◆ SizeHeader() [2/2]

static void vtkMaterialInterfaceCommBuffer::SizeHeader ( std::vector< vtkMaterialInterfaceCommBuffer > &  buffers,
int  nBlocks 
)
static

◆ SizeBuffer() [1/2]

void vtkMaterialInterfaceCommBuffer::SizeBuffer ( vtkIdType  nBytes)

◆ SizeBuffer() [2/2]

void vtkMaterialInterfaceCommBuffer::SizeBuffer ( )

◆ Clear()

void vtkMaterialInterfaceCommBuffer::Clear ( )

◆ GetBufferSize()

vtkIdType vtkMaterialInterfaceCommBuffer::GetBufferSize ( ) const
inline

Definition at line 59 of file vtkMaterialInterfaceCommBuffer.h.

◆ GetBuffer()

char* vtkMaterialInterfaceCommBuffer::GetBuffer ( ) const
inline

Definition at line 62 of file vtkMaterialInterfaceCommBuffer.h.

◆ GetEOD()

vtkIdType vtkMaterialInterfaceCommBuffer::GetEOD ( ) const
inline

Definition at line 65 of file vtkMaterialInterfaceCommBuffer.h.

◆ GetHeaderSize()

int vtkMaterialInterfaceCommBuffer::GetHeaderSize ( ) const
inline

Definition at line 68 of file vtkMaterialInterfaceCommBuffer.h.

◆ GetHeader()

vtkIdType* vtkMaterialInterfaceCommBuffer::GetHeader ( ) const
inline

Definition at line 71 of file vtkMaterialInterfaceCommBuffer.h.

◆ Capacity()

vtkIdType vtkMaterialInterfaceCommBuffer::Capacity ( )
inline

Definition at line 74 of file vtkMaterialInterfaceCommBuffer.h.

◆ SetNumberOfTuples()

void vtkMaterialInterfaceCommBuffer::SetNumberOfTuples ( int  blockId,
vtkIdType  nFragments 
)
inline

Definition at line 77 of file vtkMaterialInterfaceCommBuffer.h.

◆ GetNumberOfTuples()

vtkIdType vtkMaterialInterfaceCommBuffer::GetNumberOfTuples ( int  blockId) const
inline

Definition at line 84 of file vtkMaterialInterfaceCommBuffer.h.

◆ Pack() [1/5]

vtkIdType vtkMaterialInterfaceCommBuffer::Pack ( const double pData,
int  nComps,
vtkIdType  nTups 
)

◆ Pack() [2/5]

vtkIdType vtkMaterialInterfaceCommBuffer::Pack ( const float pData,
int  nComps,
vtkIdType  nTups 
)

◆ Pack() [3/5]

vtkIdType vtkMaterialInterfaceCommBuffer::Pack ( const int pData,
int  nComps,
vtkIdType  nTups 
)

◆ Pack() [4/5]

vtkIdType vtkMaterialInterfaceCommBuffer::Pack ( vtkDoubleArray da)

◆ Pack() [5/5]

vtkIdType vtkMaterialInterfaceCommBuffer::Pack ( vtkFloatArray da)

◆ InitUnpack()

void vtkMaterialInterfaceCommBuffer::InitUnpack ( )
inline

Definition at line 99 of file vtkMaterialInterfaceCommBuffer.h.

◆ UnPack() [1/5]

int vtkMaterialInterfaceCommBuffer::UnPack ( double *&  rData,
int  nComps,
vtkIdType  nTups,
bool  copyFlag 
)

◆ UnPack() [2/5]

int vtkMaterialInterfaceCommBuffer::UnPack ( float *&  rData,
int  nComps,
vtkIdType  nTups,
bool  copyFlag 
)

◆ UnPack() [3/5]

int vtkMaterialInterfaceCommBuffer::UnPack ( int *&  rData,
int  nComps,
vtkIdType  nTups,
bool  copyFlag 
)

◆ UnPack() [4/5]

int vtkMaterialInterfaceCommBuffer::UnPack ( vtkDoubleArray da,
int  nComps,
vtkIdType  nTups,
bool  copyFlag 
)

◆ UnPack() [5/5]

int vtkMaterialInterfaceCommBuffer::UnPack ( vtkFloatArray da,
int  nComps,
vtkIdType  nTups,
bool  copyFlag 
)

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