PPL Logo

CkDDT_DataType Class Reference

#include <ddt.h>

Inheritance diagram for CkDDT_DataType:

Inheritance graph
[legend]
Collaboration diagram for CkDDT_DataType:

Collaboration graph
[legend]

Public Member Functions

 CkDDT_DataType ()
virtual ~CkDDT_DataType ()
 CkDDT_DataType (int type) noexcept
 CkDDT_DataType (int datatype, int size, MPI_Aint extent, int count, MPI_Aint lb, MPI_Aint ub, bool iscontig, int baseSize, MPI_Aint baseExtent, CkDDT_DataType *baseType, int numElements, int baseIndex, MPI_Aint trueExtent, MPI_Aint trueLB) noexcept
 CkDDT_DataType (const CkDDT_DataType &obj, MPI_Aint _lb=0, MPI_Aint _extent=0) noexcept
CkDDT_DataTypeoperator= (const CkDDT_DataType &obj) noexcept
virtual void pupType (PUP::er &p, CkDDT *ddt) noexcept
virtual int getEnvelope (int *num_integers, int *num_addresses, int *num_datatypes, int *combiner) const noexcept
virtual int getContents (int max_integers, int max_addresses, int max_datatypes, int array_of_integers[], MPI_Aint array_of_addresses[], int array_of_datatypes[]) const noexcept
virtual size_t serialize (char *userdata, char *buffer, int num, int msgLength, CkDDT_Dir dir) const noexcept
virtual int getNumBasicElements (int bytes) const noexcept
void setSize (MPI_Aint lb, MPI_Aint extent) noexcept
bool isContig () const noexcept
int getSize (int count=1) const noexcept
MPI_Aint getExtent () const noexcept
int getBaseSize () const noexcept
MPI_Aint getLB () const noexcept
MPI_Aint getUB () const noexcept
MPI_Aint getTrueExtent () const noexcept
MPI_Aint getTrueLB () const noexcept
int getBaseIndex () const noexcept
CkDDT_DataTypegetBaseType () const noexcept
MPI_Aint getBaseExtent () const noexcept
int getCount () const noexcept
int getType () const noexcept
int getNumElements () const noexcept
void incRefCount () noexcept
int decRefCount () noexcept
vector< int > & getKeyvals () noexcept
void setName (const char *src) noexcept
void getName (char *dest, int *len) const noexcept
void setAbsolute (bool arg) noexcept

Protected Attributes

bool iscontig
bool isAbsolute
int size
int count
int datatype
int refCount
int baseSize
int baseIndex
int numElements
MPI_Aint extent
MPI_Aint ub
MPI_Aint lb
MPI_Aint trueExtent
MPI_Aint trueLB
MPI_Aint baseExtent
CkDDT_DataTypebaseType
vector< intkeyvals
string name

Detailed Description

Definition at line 113 of file ddt.h.


Constructor & Destructor Documentation

CkDDT_DataType::CkDDT_DataType (  ) 

virtual CkDDT_DataType::~CkDDT_DataType (  )  [virtual]

CkDDT_DataType::CkDDT_DataType ( int  type  ) 

Definition at line 330 of file ddt.C.

References count, datatype, float, int, lb, name, size, type, and ub.

CkDDT_DataType::CkDDT_DataType ( int  datatype,
int  size,
MPI_Aint  extent,
int  count,
MPI_Aint  lb,
MPI_Aint  ub,
bool  iscontig,
int  baseSize,
MPI_Aint  baseExtent,
CkDDT_DataType baseType,
int  numElements,
int  baseIndex,
MPI_Aint  trueExtent,
MPI_Aint  trueLB 
)

Definition at line 506 of file ddt.C.

CkDDT_DataType::CkDDT_DataType ( const CkDDT_DataType obj,
MPI_Aint  _lb = 0,
MPI_Aint  _extent = 0 
)

Definition at line 520 of file ddt.C.


Member Function Documentation

CkDDT_DataType& CkDDT_DataType::operator= ( const CkDDT_DataType obj  ) 

void CkDDT_DataType::pupType ( PUP::er p,
CkDDT ddt 
) [virtual]

Reimplemented in final, CkDDT_Vector, final, CkDDT_HIndexed_Block, final, CkDDT_HIndexed, final, and final.

Definition at line 581 of file ddt.C.

References count, datatype, lb, name, p, size, and ub.

Referenced by CkDDT_HIndexed::pupType(), CkDDT_HIndexed_Block::pupType(), and CkDDT_Vector::pupType().

Here is the caller graph for this function:

int CkDDT_DataType::getEnvelope ( int num_integers,
int num_addresses,
int num_datatypes,
int combiner 
) const [virtual]

Reimplemented in final, CkDDT_Vector, final, CkDDT_HIndexed_Block, final, CkDDT_HIndexed, final, and final.

Definition at line 606 of file ddt.C.

Referenced by CkDDT::getEnvelope().

Here is the caller graph for this function:

int CkDDT_DataType::getContents ( int  max_integers,
int  max_addresses,
int  max_datatypes,
int  array_of_integers[],
MPI_Aint  array_of_addresses[],
int  array_of_datatypes[] 
) const [virtual]

Reimplemented in final, CkDDT_Vector, final, CkDDT_HIndexed_Block, final, CkDDT_HIndexed, final, and final.

Definition at line 616 of file ddt.C.

Referenced by CkDDT::getContents().

Here is the caller graph for this function:

virtual size_t CkDDT_DataType::serialize ( char *  userdata,
char *  buffer,
int  num,
int  msgLength,
CkDDT_Dir  dir 
) const [inline, virtual]

Reimplemented in final, CkDDT_Vector, final, CkDDT_HIndexed_Block, final, CkDDT_HIndexed, final, and final.

Definition at line 151 of file ddt.h.

References datatype, extent, iscontig, min(), PACK, serializeContig(), and size.

Referenced by AMPI_API_IMPL(), copyDatatype(), makeGatherMsg(), makeGathervMsg(), and makeRednMsg().

Here is the call graph for this function:

Here is the caller graph for this function:

int CkDDT_DataType::getNumBasicElements ( int  bytes  )  const [virtual]

Reimplemented in final, CkDDT_Vector, final, CkDDT_HIndexed_Block, final, CkDDT_HIndexed, final, and final.

Definition at line 569 of file ddt.C.

References CkDDT::getSize().

Referenced by AMPI_API_IMPL().

Here is the call graph for this function:

Here is the caller graph for this function:

void CkDDT_DataType::setSize ( MPI_Aint  lb,
MPI_Aint  extent 
)

Definition at line 549 of file ddt.C.

References lb, size, and ub.

Referenced by CkDDT::createResized().

Here is the caller graph for this function:

bool CkDDT_DataType::isContig (  )  const [inline]

Definition at line 174 of file ddt.h.

References iscontig.

Referenced by copyDatatype(), CkDDT::isContig(), makeGatherMsg(), makeGathervMsg(), and makeRednMsg().

Here is the caller graph for this function:

int CkDDT_DataType::getSize ( int  count = 1  )  const [inline]

Definition at line 175 of file ddt.h.

References count, and size.

Referenced by AMPI_API_IMPL(), copyDatatype(), CkDDT::getSize(), makeGatherMsg(), makeGathervMsg(), makeRednMsg(), MPI_Pack_size(), and MPID_Datatype_get_size_macro().

Here is the caller graph for this function:

MPI_Aint CkDDT_DataType::getExtent (  )  const [inline]

Definition at line 176 of file ddt.h.

References extent.

Referenced by AMPI_API_IMPL(), CkDDT::getExtent(), MPID_Datatype_get_extent_macro(), CkDDT::newIndexed(), and CkDDT::newIndexedBlock().

Here is the caller graph for this function:

int CkDDT_DataType::getBaseSize (  )  const [inline]

Definition at line 177 of file ddt.h.

References baseSize.

Referenced by AMPI_API_IMPL().

Here is the caller graph for this function:

MPI_Aint CkDDT_DataType::getLB (  )  const [inline]

Definition at line 178 of file ddt.h.

References lb.

Referenced by CkDDT::getLB(), and handle_MPI_BOTTOM().

Here is the caller graph for this function:

MPI_Aint CkDDT_DataType::getUB (  )  const [inline]

Definition at line 179 of file ddt.h.

References ub.

Referenced by CkDDT::getUB().

Here is the caller graph for this function:

MPI_Aint CkDDT_DataType::getTrueExtent (  )  const [inline]

Definition at line 180 of file ddt.h.

References trueExtent.

Referenced by CkDDT::getTrueExtent().

Here is the caller graph for this function:

MPI_Aint CkDDT_DataType::getTrueLB (  )  const [inline]

Definition at line 181 of file ddt.h.

References trueLB.

Referenced by CkDDT::getTrueLB().

Here is the caller graph for this function:

int CkDDT_DataType::getBaseIndex (  )  const [inline]

Definition at line 182 of file ddt.h.

References baseIndex.

CkDDT_DataType* CkDDT_DataType::getBaseType (  )  const [inline]

Definition at line 183 of file ddt.h.

References baseType.

Referenced by CkDDT::getContents().

Here is the caller graph for this function:

MPI_Aint CkDDT_DataType::getBaseExtent (  )  const [inline]

Definition at line 184 of file ddt.h.

References baseExtent.

int CkDDT_DataType::getCount ( void   )  const [inline]

Reimplemented in final.

Definition at line 185 of file ddt.h.

References count.

Referenced by CkDDT::getContents().

Here is the caller graph for this function:

int CkDDT_DataType::getType (  )  const [inline]

Reimplemented in final, final, final, final, final, final, final, final, final, final, and final.

Definition at line 186 of file ddt.h.

References datatype.

Referenced by AMPI_API_IMPL(), CkDDT::createDup(), CkDDT::createResized(), and CkDDT::getContents().

Here is the caller graph for this function:

int CkDDT_DataType::getNumElements (  )  const [inline]

Definition at line 187 of file ddt.h.

References numElements.

void CkDDT_DataType::incRefCount (  )  [inline]

Definition at line 188 of file ddt.h.

References datatype, and refCount.

Referenced by CkDDT::getContents().

Here is the caller graph for this function:

int CkDDT_DataType::decRefCount (  )  [inline]

Definition at line 194 of file ddt.h.

References datatype, and refCount.

vector<int>& CkDDT_DataType::getKeyvals (  )  [inline]

Definition at line 203 of file ddt.h.

References keyvals.

void CkDDT_DataType::setName ( const char *  src  )  [inline]

Definition at line 204 of file ddt.h.

References CkDDT_SetName(), name, and src.

Referenced by CkDDT::setName().

Here is the call graph for this function:

Here is the caller graph for this function:

void CkDDT_DataType::getName ( char *  dest,
int len 
) const [inline]

Definition at line 205 of file ddt.h.

References dest, len, length, and name.

Referenced by CkDDT::getName().

Here is the caller graph for this function:

void CkDDT_DataType::setAbsolute ( bool  arg  )  [inline]

Definition at line 210 of file ddt.h.

References isAbsolute.

Referenced by handle_MPI_BOTTOM().

Here is the caller graph for this function:


Field Documentation

Definition at line 116 of file ddt.h.

Referenced by isContig(), and serialize().

Definition at line 117 of file ddt.h.

Referenced by setAbsolute().

Definition at line 118 of file ddt.h.

Referenced by getSize(), and serialize().

Definition at line 119 of file ddt.h.

Referenced by getCount(), and getSize().

Definition at line 120 of file ddt.h.

Referenced by decRefCount(), getType(), incRefCount(), and serialize().

Definition at line 121 of file ddt.h.

Referenced by decRefCount(), and incRefCount().

Definition at line 122 of file ddt.h.

Referenced by getBaseSize().

Definition at line 123 of file ddt.h.

Referenced by getBaseIndex().

Definition at line 124 of file ddt.h.

Referenced by getNumElements().

Definition at line 125 of file ddt.h.

Referenced by getExtent(), and serialize().

Definition at line 126 of file ddt.h.

Referenced by getUB().

Definition at line 127 of file ddt.h.

Referenced by getLB().

Definition at line 128 of file ddt.h.

Referenced by getTrueExtent().

Definition at line 129 of file ddt.h.

Referenced by getTrueLB().

Definition at line 130 of file ddt.h.

Referenced by getBaseExtent().

Definition at line 131 of file ddt.h.

Referenced by getBaseType().

vector<int> CkDDT_DataType::keyvals [protected]

Definition at line 132 of file ddt.h.

Referenced by getKeyvals().

string CkDDT_DataType::name [protected]

Definition at line 133 of file ddt.h.

Referenced by getName(), and setName().


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

Generated on Mon Sep 21 08:19:52 2020 for Charm++ by  doxygen 1.5.5