PPL Logo

xi::Parameter Class Reference

#include <xi-Parameter.h>

Collaboration diagram for xi::Parameter:

Collaboration graph
[legend]

Public Types

enum  {
  ACCEL_BUFFER_TYPE_UNKNOWN = 0, ACCEL_BUFFER_TYPE_MIN = 1, ACCEL_BUFFER_TYPE_READWRITE = 1, ACCEL_BUFFER_TYPE_READONLY = 2,
  ACCEL_BUFFER_TYPE_WRITEONLY = 3, ACCEL_BUFFER_TYPE_MAX = 3
}

Public Member Functions

void pup (XStr &str)
void pupArray (XStr &str)
void pupRdma (XStr &str, bool genRdma)
void copyPtr (XStr &str)
void check ()
void checkPointer (Type *dt)
void marshallArraySizes (XStr &str, Type *dt)
void marshallRegArraySizes (XStr &str)
void marshallRdmaParameters (XStr &str, bool genRdma)
void marshallArrayData (XStr &str)
void marshallRdmaArrayData (XStr &str)
void beginUnmarshall (XStr &str)
void beginUnmarshallArray (XStr &str)
void beginUnmarshallRdma (XStr &str, bool genRdma)
void beginUnmarshallSDAGRdma (XStr &str)
void beginUnmarshallSDAGCall (XStr &str)
void beginUnmarshallSDAGCallRdma (XStr &str, bool genRdma)
void unmarshallArrayData (XStr &str)
void unmarshallRegArrayData (XStr &str)
void unmarshallRdmaArrayData (XStr &str, bool genRegArray)
void adjustUnmarshalledRdmaPtrsSDAG (XStr &str)
void unmarshallRegArrayDataSDAG (XStr &str)
void unmarshallRdmaArrayDataSDAG (XStr &str)
void unmarshallRegArrayDataSDAGCall (XStr &str)
void unmarshallRdmaArrayDataSDAGCall (XStr &str)
void pupAllValues (XStr &str)
 Parameter (int Nline, Type *Ntype, const char *Nname=0, const char *NarrLen=0, Value *Nvalue=0)
void setConditional (int c)
void setRdma (int r)
void setFirstRdma (bool fr)
int print (XStr &str, int withDefaultValues=0, int useConst=1, int fwdNum=0)
void printAddress (XStr &str)
void printValue (XStr &str)
int isMessage (void) const
int isVoid (void) const
int isCkArgMsgPtr (void) const
int isCkMigMsgPtr (void) const
int isArray (void) const
int isRdma (void) const
int isSendRdma (void) const
int isRecvRdma (void) const
int getRdma (void) const
int isFirstRdma (void) const
int isConditional (void) const
TypegetType (void)
const char * getArrayLen (void) const
const char * getGivenName (void) const
void setGivenName (const char *s)
const char * getName (void) const
void printMsg (XStr &str)
void storePostedRdmaPtrs (XStr &str, bool genRdma, bool isSDAGGen, int &count)
int operator== (const Parameter &parm) const
void setAccelBufferType (int abt)
int getAccelBufferType ()
void setAccelInstName (XStr *ain)
XStrgetAccelInstName (void)

Data Fields

Typetype
const char * name
const char * given_name
const char * arrLen
Valueval
int line
int byReference
bool declaredReference
int conditional
bool byConst
int accelBufferType
XStraccelInstName
bool podType
Entryentry

Private Attributes

int rdma
bool firstRdma

Friends

class ParamList

Detailed Description

Definition at line 13 of file xi-Parameter.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
ACCEL_BUFFER_TYPE_UNKNOWN 
ACCEL_BUFFER_TYPE_MIN 
ACCEL_BUFFER_TYPE_READWRITE 
ACCEL_BUFFER_TYPE_READONLY 
ACCEL_BUFFER_TYPE_WRITEONLY 
ACCEL_BUFFER_TYPE_MAX 

Definition at line 95 of file xi-Parameter.h.


Constructor & Destructor Documentation

xi::Parameter::Parameter ( int  Nline,
Type Ntype,
const char *  Nname = 0,
const char *  NarrLen = 0,
Value Nvalue = 0 
)

Definition at line 48 of file xi-Parameter.C.

References arrLen, byConst, byReference, declaredReference, xi::Type::deref(), xi::Type::isConst(), isMessage(), xi::Type::isNamed(), xi::Type::isReference(), isVoid(), name, type, and val.

Here is the call graph for this function:


Member Function Documentation

void xi::Parameter::pup ( XStr str  ) 

Definition at line 351 of file xi-Parameter.C.

References byReference, conditional, isArray(), isRdma(), name, pupArray(), and type.

Referenced by xi::ParamList::marshall().

Here is the call graph for this function:

Here is the caller graph for this function:

void xi::Parameter::pupArray ( XStr str  ) 

Definition at line 346 of file xi-Parameter.C.

References name.

Referenced by pup(), and pupRdma().

Here is the caller graph for this function:

void xi::Parameter::pupRdma ( XStr str,
bool  genRdma 
)

Definition at line 337 of file xi-Parameter.C.

References isRdma(), name, and pupArray().

Referenced by xi::ParamList::marshall().

Here is the call graph for this function:

Here is the caller graph for this function:

void xi::Parameter::copyPtr ( XStr str  ) 

Definition at line 382 of file xi-Parameter.C.

References isConditional(), and name.

Referenced by xi::ParamList::marshall().

Here is the call graph for this function:

Here is the caller graph for this function:

void xi::Parameter::check ( void   ) 

Definition at line 299 of file xi-Parameter.C.

References checkPointer(), xi::Type::deref(), dt, and type.

Here is the call graph for this function:

void xi::Parameter::checkPointer ( Type dt  ) 

Definition at line 304 of file xi-Parameter.C.

References xi::Type::isPointer(), and line.

Referenced by check().

Here is the call graph for this function:

Here is the caller graph for this function:

void xi::Parameter::marshallArraySizes ( XStr str,
Type dt 
)

Definition at line 312 of file xi-Parameter.C.

References arrLen, and name.

Referenced by marshallRdmaParameters(), and marshallRegArraySizes().

Here is the caller graph for this function:

void xi::Parameter::marshallRegArraySizes ( XStr str  ) 

Definition at line 319 of file xi-Parameter.C.

References xi::Type::deref(), dt, isArray(), marshallArraySizes(), and type.

Referenced by xi::ParamList::marshall().

Here is the call graph for this function:

Here is the caller graph for this function:

void xi::Parameter::marshallRdmaParameters ( XStr str,
bool  genRdma 
)

Definition at line 324 of file xi-Parameter.C.

References arrLen, xi::Type::deref(), dt, isRdma(), marshallArraySizes(), name, and type.

Referenced by xi::ParamList::marshall().

Here is the call graph for this function:

Here is the caller graph for this function:

void xi::Parameter::marshallArrayData ( XStr str  ) 

Definition at line 376 of file xi-Parameter.C.

References isArray(), and name.

Referenced by xi::ParamList::marshall().

Here is the call graph for this function:

Here is the caller graph for this function:

void xi::Parameter::marshallRdmaArrayData ( XStr str  ) 

Definition at line 363 of file xi-Parameter.C.

References isRdma(), and name.

Referenced by xi::ParamList::marshall().

Here is the call graph for this function:

Here is the caller graph for this function:

void xi::Parameter::beginUnmarshall ( XStr str  ) 

Definition at line 612 of file xi-Parameter.C.

References beginUnmarshallArray(), xi::Type::deref(), dt, isArray(), isConditional(), isRdma(), name, and type.

Referenced by xi::ParamList::beginRednWrapperUnmarshall(), xi::ParamList::beginUnmarshall(), and xi::ParamList::beginUnmarshallSDAG().

Here is the call graph for this function:

Here is the caller graph for this function:

void xi::Parameter::beginUnmarshallArray ( XStr str  ) 

Definition at line 586 of file xi-Parameter.C.

References xi::Type::deref(), dt, isRecvRdma(), name, and type.

Referenced by beginUnmarshall(), beginUnmarshallRdma(), beginUnmarshallSDAGCall(), and beginUnmarshallSDAGCallRdma().

Here is the call graph for this function:

Here is the caller graph for this function:

void xi::Parameter::beginUnmarshallRdma ( XStr str,
bool  genRdma 
)

Definition at line 597 of file xi-Parameter.C.

References beginUnmarshallArray(), xi::Type::deref(), dt, isRdma(), name, and type.

Referenced by xi::ParamList::beginRednWrapperUnmarshall(), xi::ParamList::beginUnmarshall(), and xi::ParamList::beginUnmarshallSDAG().

Here is the call graph for this function:

Here is the caller graph for this function:

void xi::Parameter::beginUnmarshallSDAGRdma ( XStr str  ) 

void xi::Parameter::beginUnmarshallSDAGCall ( XStr str  ) 

Definition at line 642 of file xi-Parameter.C.

References beginUnmarshallArray(), xi::Type::deref(), dt, isArray(), isRdma(), name, podType, and type.

Referenced by xi::ParamList::beginRednWrapperUnmarshall(), and xi::ParamList::beginUnmarshallSDAGCall().

Here is the call graph for this function:

Here is the caller graph for this function:

void xi::Parameter::beginUnmarshallSDAGCallRdma ( XStr str,
bool  genRdma 
)

Definition at line 624 of file xi-Parameter.C.

References beginUnmarshallArray(), xi::Type::deref(), dt, isFirstRdma(), isRdma(), isRecvRdma(), name, and type.

Referenced by xi::ParamList::beginRednWrapperUnmarshall(), and xi::ParamList::beginUnmarshallSDAGCall().

Here is the call graph for this function:

Here is the caller graph for this function:

void xi::Parameter::unmarshallArrayData ( XStr str  ) 

Definition at line 784 of file xi-Parameter.C.

References xi::Type::deref(), dt, name, and type.

Referenced by unmarshallRdmaArrayData(), and unmarshallRegArrayData().

Here is the call graph for this function:

Here is the caller graph for this function:

void xi::Parameter::unmarshallRegArrayData ( XStr str  ) 

Definition at line 794 of file xi-Parameter.C.

References isArray(), and unmarshallArrayData().

Referenced by xi::ParamList::beginRednWrapperUnmarshall(), and xi::ParamList::beginUnmarshall().

Here is the call graph for this function:

Here is the caller graph for this function:

void xi::Parameter::unmarshallRdmaArrayData ( XStr str,
bool  genRegArray 
)

Definition at line 790 of file xi-Parameter.C.

References isRdma(), and unmarshallArrayData().

Referenced by xi::ParamList::beginUnmarshall().

Here is the call graph for this function:

Here is the caller graph for this function:

void xi::Parameter::adjustUnmarshalledRdmaPtrsSDAG ( XStr str  ) 

Definition at line 740 of file xi-Parameter.C.

References isRdma(), and name.

Referenced by xi::ParamList::beginUnmarshallSDAG().

Here is the call graph for this function:

Here is the caller graph for this function:

void xi::Parameter::unmarshallRegArrayDataSDAG ( XStr str  ) 

Definition at line 732 of file xi-Parameter.C.

References xi::Type::deref(), dt, isArray(), name, and type.

Referenced by xi::ParamList::beginUnmarshallSDAG().

Here is the call graph for this function:

Here is the caller graph for this function:

void xi::Parameter::unmarshallRdmaArrayDataSDAG ( XStr str  ) 

Definition at line 747 of file xi-Parameter.C.

References xi::Type::deref(), dt, isRdma(), name, and type.

Referenced by xi::ParamList::beginUnmarshallSDAG().

Here is the call graph for this function:

Here is the caller graph for this function:

void xi::Parameter::unmarshallRegArrayDataSDAGCall ( XStr str  ) 

Definition at line 755 of file xi-Parameter.C.

References xi::Type::deref(), dt, isArray(), name, and type.

Referenced by xi::ParamList::beginRednWrapperUnmarshall(), and xi::ParamList::beginUnmarshallSDAGCall().

Here is the call graph for this function:

Here is the caller graph for this function:

void xi::Parameter::unmarshallRdmaArrayDataSDAGCall ( XStr str  ) 

Definition at line 763 of file xi-Parameter.C.

References xi::Type::deref(), dt, isRdma(), name, and type.

Referenced by xi::ParamList::beginUnmarshallSDAGCall().

Here is the call graph for this function:

Here is the caller graph for this function:

void xi::Parameter::pupAllValues ( XStr str  ) 

Definition at line 878 of file xi-Parameter.C.

References isArray(), isConditional(), isRdma(), and name.

Referenced by xi::ParamList::pupAllValues().

Here is the call graph for this function:

Here is the caller graph for this function:

void xi::Parameter::setConditional ( int  c  ) 

Definition at line 952 of file xi-Parameter.C.

References byReference, and conditional.

void xi::Parameter::setRdma ( int  r  ) 

Definition at line 957 of file xi-Parameter.C.

References rdma.

void xi::Parameter::setFirstRdma ( bool  fr  ) 

Definition at line 959 of file xi-Parameter.C.

References firstRdma.

int xi::Parameter::print ( XStr str,
int  withDefaultValues = 0,
int  useConst = 1,
int  fwdNum = 0 
)

Definition at line 111 of file xi-Parameter.C.

References arrLen, byConst, byReference, conditional, isRdma(), xi::Type::isVoid(), name, xi::Value::print(), type, and val.

Referenced by xi::ParamList::print().

Here is the call graph for this function:

Here is the caller graph for this function:

void xi::Parameter::printAddress ( XStr str  ) 

Definition at line 153 of file xi-Parameter.C.

References name, xi::Type::print(), and type.

Referenced by xi::ParamList::printAddress().

Here is the call graph for this function:

Here is the caller graph for this function:

void xi::Parameter::printValue ( XStr str  ) 

Definition at line 167 of file xi-Parameter.C.

References arrLen, and name.

Referenced by xi::ParamList::printValue().

Here is the caller graph for this function:

int xi::Parameter::isMessage ( void   )  const

Definition at line 938 of file xi-Parameter.C.

References xi::Type::isMessage(), and type.

Referenced by xi::Entry::genClosure(), xi::ParamList::isMessage(), Parameter(), and xi::ParamList::ParamList().

Here is the call graph for this function:

Here is the caller graph for this function:

int xi::Parameter::isVoid ( void   )  const

Definition at line 939 of file xi-Parameter.C.

References xi::Type::isVoid(), and type.

Referenced by xi::Entry::genClosure(), xi::ParamList::isVoid(), and Parameter().

Here is the call graph for this function:

Here is the caller graph for this function:

int xi::Parameter::isCkArgMsgPtr ( void   )  const

Definition at line 940 of file xi-Parameter.C.

References xi::Type::isCkArgMsgPtr(), and type.

Referenced by xi::ParamList::isCkArgMsgPtr().

Here is the call graph for this function:

Here is the caller graph for this function:

int xi::Parameter::isCkMigMsgPtr ( void   )  const

Definition at line 941 of file xi-Parameter.C.

References xi::Type::isCkMigMsgPtr(), and type.

Referenced by xi::ParamList::isCkMigMsgPtr().

Here is the call graph for this function:

Here is the caller graph for this function:

int xi::Parameter::isArray ( void   )  const

int xi::Parameter::isRdma ( void   )  const

int xi::Parameter::isSendRdma ( void   )  const

Definition at line 945 of file xi-Parameter.C.

References rdma.

Referenced by xi::ParamList::hasSendRdma().

Here is the caller graph for this function:

int xi::Parameter::isRecvRdma ( void   )  const

Definition at line 946 of file xi-Parameter.C.

References rdma.

Referenced by beginUnmarshallArray(), beginUnmarshallSDAGCallRdma(), xi::ParamList::hasRecvRdma(), xi::ParamList::isRecvRdma(), and xi::ParamList::unmarshall().

Here is the caller graph for this function:

int xi::Parameter::getRdma ( void   )  const

Definition at line 947 of file xi-Parameter.C.

References rdma.

Referenced by xi::Entry::Entry(), and xi::ParamList::getRdma().

Here is the caller graph for this function:

int xi::Parameter::isFirstRdma ( void   )  const

Definition at line 948 of file xi-Parameter.C.

References firstRdma.

Referenced by beginUnmarshallSDAGCallRdma(), xi::Entry::genClosure(), and xi::ParamList::isFirstRdma().

Here is the caller graph for this function:

int xi::Parameter::isConditional ( void   )  const

Definition at line 943 of file xi-Parameter.C.

References conditional.

Referenced by beginUnmarshall(), copyPtr(), xi::ParamList::hasConditional(), xi::Entry::preprocess(), and pupAllValues().

Here is the caller graph for this function:

Type* xi::Parameter::getType ( void   )  [inline]

const char* xi::Parameter::getArrayLen ( void   )  const [inline]

Definition at line 85 of file xi-Parameter.h.

References arrLen.

Referenced by xi::Entry::genAccelIndexWrapperDef_spe(), and xi::ParamList::getArrayLen().

Here is the caller graph for this function:

const char* xi::Parameter::getGivenName ( void   )  const [inline]

Definition at line 86 of file xi-Parameter.h.

References given_name.

Referenced by xi::ParamList::getGivenName().

Here is the caller graph for this function:

void xi::Parameter::setGivenName ( const char *  s  )  [inline]

Definition at line 87 of file xi-Parameter.h.

References given_name.

Referenced by xi::ParamList::setGivenName().

Here is the caller graph for this function:

const char* xi::Parameter::getName ( void   )  const [inline]

void xi::Parameter::printMsg ( XStr str  ) 

Definition at line 933 of file xi-Parameter.C.

References given_name, xi::Type::print(), and type.

Referenced by xi::ParamList::printMsg().

Here is the call graph for this function:

Here is the caller graph for this function:

void xi::Parameter::storePostedRdmaPtrs ( XStr str,
bool  genRdma,
bool  isSDAGGen,
int count 
)

Definition at line 560 of file xi-Parameter.C.

References xi::Type::deref(), dt, isRdma(), name, and type.

Referenced by xi::ParamList::storePostedRdmaPtrs().

Here is the call graph for this function:

Here is the caller graph for this function:

int xi::Parameter::operator== ( const Parameter parm  )  const

Definition at line 950 of file xi-Parameter.C.

References type.

void xi::Parameter::setAccelBufferType ( int  abt  ) 

Definition at line 961 of file xi-Parameter.C.

References ACCEL_BUFFER_TYPE_MAX, ACCEL_BUFFER_TYPE_UNKNOWN, and accelBufferType.

int xi::Parameter::getAccelBufferType (  ) 

Definition at line 967 of file xi-Parameter.C.

References accelBufferType.

Referenced by xi::Entry::genAccelFullParamList(), xi::Entry::genAccelIndexWrapperDef_spe(), xi::Entry::genAccels_spe_c_funcBodies(), and xi::Entry::preprocess().

Here is the caller graph for this function:

void xi::Parameter::setAccelInstName ( XStr ain  ) 

Definition at line 968 of file xi-Parameter.C.

References accelInstName.

XStr * xi::Parameter::getAccelInstName ( void   ) 

Definition at line 969 of file xi-Parameter.C.

References accelInstName.

Referenced by xi::Entry::genAccelFullCallList(), and xi::Entry::genAccelIndexWrapperDef_spe().

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class ParamList [friend]

Definition at line 35 of file xi-Parameter.h.


Field Documentation

Definition at line 14 of file xi-Parameter.h.

Referenced by getRdma(), isRdma(), isRecvRdma(), isSendRdma(), and setRdma().

Definition at line 15 of file xi-Parameter.h.

Referenced by isFirstRdma(), and setFirstRdma().

const char* xi::Parameter::name

Definition at line 20 of file xi-Parameter.h.

Referenced by getGivenName(), printMsg(), and setGivenName().

const char* xi::Parameter::arrLen

Definition at line 23 of file xi-Parameter.h.

Referenced by Parameter(), and print().

Definition at line 24 of file xi-Parameter.h.

Referenced by xi::ParamList::checkParamList(), and checkPointer().

Definition at line 26 of file xi-Parameter.h.

Referenced by xi::ParamList::declaredReference(), and Parameter().

Definition at line 28 of file xi-Parameter.h.

Referenced by xi::Entry::genArrayDefs(), xi::ParamList::isConst(), Parameter(), and print().

Definition at line 31 of file xi-Parameter.h.

Referenced by getAccelBufferType(), and setAccelBufferType().

Definition at line 32 of file xi-Parameter.h.

Referenced by getAccelInstName(), and setAccelInstName().

Definition at line 33 of file xi-Parameter.h.

Referenced by beginUnmarshallSDAGCall(), and xi::Entry::genClosure().

Definition at line 64 of file xi-Parameter.h.

Referenced by xi::Entry::Entry().


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

Generated on Mon Sep 21 08:35:32 2020 for Charm++ by  doxygen 1.5.5