PPL Logo

ChareInfo Class Reference
[CkRegister]

Represents a class of Chares (or array or group elements). More...

#include <register.h>

Collaboration diagram for ChareInfo:

Collaboration graph
[legend]

Public Member Functions

 ChareInfo (const char *n, size_t s, ChareType t)
void setDefaultCtor (int idx)
int getDefaultCtor (void)
void setMigCtor (int idx)
int getMigCtor (void)
void addBase (int idx)
void setInCharm ()
bool isInCharm ()
void setMainChareType (int idx)
int mainChareType ()

Data Fields

const char * name
 Human-readable name of the chare class, like "MyFoo".
size_t size
 Size, in bytes, of the body of the chare.
int defCtor
 Constructor epIdx: default constructor and migration constructor (or -1 if none).
int migCtor
int numbases
 Number of base classes:.
int bases [16]
 chareIdx of each base class.
ChareType chareType
 chare type
int mainChareIdx
int ndims
 Number of dimensions for chare arrays (-1 if not an array, 0 is invalid).
bool isIrr
 For groups -- true if the group is Irreducible.
bool inCharm
 true if this EP is charm internal functions

Detailed Description

Represents a class of Chares (or array or group elements).

It is always stored in the _chareTable.

Definition at line 187 of file register.h.


Constructor & Destructor Documentation

ChareInfo::ChareInfo ( const char *  n,
size_t  s,
ChareType  t 
) [inline]

Definition at line 214 of file register.h.

References chareType, defCtor, inCharm, isIrr, mainChareIdx, migCtor, ndims, and numbases.


Member Function Documentation

void ChareInfo::setDefaultCtor ( int  idx  )  [inline]

Definition at line 223 of file register.h.

References defCtor.

int ChareInfo::getDefaultCtor ( void   )  [inline]

Definition at line 224 of file register.h.

References defCtor.

void ChareInfo::setMigCtor ( int  idx  )  [inline]

Definition at line 225 of file register.h.

References migCtor.

int ChareInfo::getMigCtor ( void   )  [inline]

Definition at line 226 of file register.h.

References migCtor.

Referenced by CkPupMainChareData().

Here is the caller graph for this function:

void ChareInfo::addBase ( int  idx  )  [inline]

Definition at line 227 of file register.h.

References bases, and numbases.

void ChareInfo::setInCharm (  )  [inline]

Definition at line 232 of file register.h.

References inCharm.

bool ChareInfo::isInCharm (  )  [inline]

Definition at line 233 of file register.h.

References inCharm.

void ChareInfo::setMainChareType ( int  idx  )  [inline]

Definition at line 234 of file register.h.

References mainChareIdx.

int ChareInfo::mainChareType (  )  [inline]

Definition at line 235 of file register.h.

References mainChareIdx.


Field Documentation

const char* ChareInfo::name

Human-readable name of the chare class, like "MyFoo".

Definition at line 190 of file register.h.

Referenced by CkPrintChareName(), and CkPupMainChareData().

Size, in bytes, of the body of the chare.

Definition at line 192 of file register.h.

Referenced by CkPupMainChareData().

Constructor epIdx: default constructor and migration constructor (or -1 if none).

Definition at line 195 of file register.h.

Referenced by ChareInfo(), getDefaultCtor(), and setDefaultCtor().

Definition at line 195 of file register.h.

Referenced by ChareInfo(), getMigCtor(), and setMigCtor().

Number of base classes:.

Definition at line 197 of file register.h.

Referenced by addBase(), ChareInfo(), and pupChare().

chareIdx of each base class.

Definition at line 199 of file register.h.

Referenced by addBase(), and pupChare().

chare type

Definition at line 202 of file register.h.

Referenced by ChareInfo().

Definition at line 203 of file register.h.

Referenced by ChareInfo(), mainChareType(), and setMainChareType().

Number of dimensions for chare arrays (-1 if not an array, 0 is invalid).

Definition at line 206 of file register.h.

Referenced by ChareInfo().

For groups -- true if the group is Irreducible.

Definition at line 209 of file register.h.

Referenced by ChareInfo().

true if this EP is charm internal functions

Definition at line 212 of file register.h.

Referenced by ChareInfo(), isInCharm(), and setInCharm().


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

Generated on Mon Sep 21 08:18:34 2020 for Charm++ by  doxygen 1.5.5