PPL Logo

xi Namespace Reference


Data Structures

class  CEntry
class  TList
class  CParsedFile
struct  CStateVar
class  CToken
class  MacroDefinition
class  perElemGenC
 Apply fn_ on each Construct in the list l, passing it arg as the target. More...
class  Prefix
class  Value
class  ValueList
class  Construct
class  ConstructList
class  Type
class  BuiltinType
class  NamedType
class  PtrType
class  ReferenceType
class  TypeList
class  Parameter
class  ParamList
class  FuncType
class  TParam
class  TParamList
class  TParamType
class  TParamVal
class  Scope
class  UsingScope
class  Template
class  TEntity
class  TVar
class  TType
class  TFunc
class  TName
class  TVarList
class  Member
class  MemberList
class  Chare
class  MainChare
class  Array
class  Group
class  NodeGroup
class  MsgVar
class  MsgVarList
class  Message
class  Entry
class  EntryList
class  AccelBlock
class  Module
class  ModuleList
class  Readonly
class  InitCall
class  PUPableClass
class  IncludeFile
class  ClassDeclaration
class  SdagConstruct
class  XStr
class  Printable

Enumerations

enum  EToken {
  DEFAULT = 1, SIDENT = 2, SLBRACE = 3, SRBRACE = 4,
  SLB = 5, SRB = 6, SLP = 7, SRP = 8,
  SCOLON = 9, SSTAR = 10, SCHAR = 11, SSTRING = 12,
  SNEW_LINE = 13, SCLASS = 14, SENTRY = 15, SSDAGENTRY = 16,
  SOVERLAP = 17, SWHEN = 18, SIF = 19, SWHILE = 20,
  SFOR = 21, SFORALL = 22, SATOMIC = 23, SCOMMA = 24,
  SELSE = 25, SSEMICOLON = 26, SPARAMLIST = 27, SPARAMETER = 28,
  SVARTYPELIST = 29, SVARTYPE = 30, SFUNCTYPE = 31, SSIMPLETYPE = 32,
  SBUILTINTYPE = 33, SONEPTRTYPE = 34, SPTRTYPE = 35, SINT = 36,
  SLONG = 37, SSHORT = 38, SUNSIGNED = 39, SDOUBLE = 40,
  SVOID = 41, SFLOAT = 42, SCONST = 43, SEQUAL = 44,
  SAMPERESIGN = 45, SLITERAL = 46, SNUMBER = 47, SFORWARD = 48,
  SCONNECT = 49, SPUBLISHES = 50, SOVERLAP_END = 51, SWHEN_END = 52,
  SIF_END = 53, SELSE_END = 54, SWHILE_END = 55, SFOR_END = 56,
  SFOR_ENDALL = 57, SMATCHED_CPP_CODE = 100, SINT_EXPR = 101, SWSPACE = 102,
  SSLIST = 103, SELIST = 104, SOLIST = 105, SOLIST_END = 106
}
enum  forWhom {
  forAll = 0, forIndividual = 1, forSection = 2, forPython = 3,
  forIndex = -1
}

Functions

static void generateWhenCode (XStr &op, SdagConstruct *cn)
SdagConstructbuildAtomic (const char *code, SdagConstruct *pub_list, const char *trace_name)
void generateSignature (XStr &str, const XStr *name, const char *suffix, TList< CStateVar * > *params)
void generateSignature (XStr &decls, XStr &defs, const Entry *entry, bool declareStatic, const char *returnType, const XStr *name, bool isEnd, TList< CStateVar * > *params)
void generateSignature (XStr &decls, XStr &defs, const Chare *chare, bool declareStatic, const char *returnType, const XStr *name, bool isEnd, TList< CStateVar * > *params)
void endMethod (XStr &op)
void RemoveSdagComments (char *str)
void Indent (int indent)
void resetNumbers (void)
void pH (int, const char *,...)
int macroDefined (const char *str, int istrue)
void splitScopedName (const char *name, const char **scope, const char **basename)
FILE * openFile (char *interfacefile)
ModuleListParse (FILE *fp)
void abortxi (char *name)
void die (const char *why, int line)
char * fortranify (const char *s, const char *suff1="", const char *suff2="", const char *suff3="")
void templateGuardBegin (bool templateOnly, XStr &str)
void templateGuardEnd (XStr &str)
template<typename T, typename U, typename A>
void perElemGen (list< T * > &l, A &arg_, void(U::*fn_)(A &), void(*between_)(A &))
template<typename T, typename U, typename A>
void perElemGen (list< T * > &l, A &arg_, void(U::*fn_)(A &))
template<typename T, typename U, typename A>
void perElemGen (list< T * > &l, A *arg_, void(U::*fn_)(A *), void(*between_)(A *))
template<typename T, typename U, typename A>
void perElemGen (list< T * > &l, A *arg_, void(U::*fn_)(A *))
void newLine (XStr &str)
static const char * forWhomStr (forWhom w)
static void disambig_proxy (XStr &str, const XStr &super)
static void disambig_reduction_client (XStr &str, const XStr &super)
static void disambig_group (XStr &str, const XStr &super)
XStr indexSuffix2object (const XStr &indexSuffix)
static void disambig_array (XStr &str, const XStr &super)
XStr generateTemplateSpec (TVarList *tspec)
XStr makeIdent (const XStr &in)
int isatty (int)

Variables

int numSdagEntries = 0
int numSlists = 0
int numOverlaps = 0
int numWhens = 0
int numFors = 0
int numIfs = 0
int numElses = 0
int numEntries = 0
int numOlists = 0
int numWhiles = 0
int numAtomics = 0
int numForwards = 0
int numForalls = 0
int numConnects = 0
FILE * fh
static TList< MacroDefinition * > macros
int fortranMode
int internalMode
const char * cur_file
const char * python_doc
static const char * CIClassStart
static const char * CIClassEnd
static const char * CIMsgClassAnsi


Enumeration Type Documentation

enum xi::EToken

Enumerator:
DEFAULT 
SIDENT 
SLBRACE 
SRBRACE 
SLB 
SRB 
SLP 
SRP 
SCOLON 
SSTAR 
SCHAR 
SSTRING 
SNEW_LINE 
SCLASS 
SENTRY 
SSDAGENTRY 
SOVERLAP 
SWHEN 
SIF 
SWHILE 
SFOR 
SFORALL 
SATOMIC 
SCOMMA 
SELSE 
SSEMICOLON 
SPARAMLIST 
SPARAMETER 
SVARTYPELIST 
SVARTYPE 
SFUNCTYPE 
SSIMPLETYPE 
SBUILTINTYPE 
SONEPTRTYPE 
SPTRTYPE 
SINT 
SLONG 
SSHORT 
SUNSIGNED 
SDOUBLE 
SVOID 
SFLOAT 
SCONST 
SEQUAL 
SAMPERESIGN 
SLITERAL 
SNUMBER 
SFORWARD 
SCONNECT 
SPUBLISHES 
SOVERLAP_END 
SWHEN_END 
SIF_END 
SELSE_END 
SWHILE_END 
SFOR_END 
SFOR_ENDALL 
SMATCHED_CPP_CODE 
SINT_EXPR 
SWSPACE 
SSLIST 
SELIST 
SOLIST 
SOLIST_END 

Definition at line 6 of file EToken.h.

Enumerator:
forAll 
forIndividual 
forSection 
forPython 
forIndex 

Definition at line 44 of file xi-symbol.h.


Function Documentation

static void xi::generateWhenCode ( XStr &  op,
SdagConstruct *  cn 
) [static]

SdagConstruct * xi::buildAtomic ( const char *  code,
SdagConstruct *  pub_list,
const char *  trace_name 
)

Definition at line 11 of file CSdagConstruct.C.

References free(), RemoveSdagComments(), SATOMIC, and xi::SdagConstruct::traceName.

void xi::generateSignature ( XStr &  str,
const XStr *  name,
const char *  suffix,
TList< CStateVar * > *  params 
)

void xi::generateSignature ( XStr &  decls,
XStr &  defs,
const Entry *  entry,
bool  declareStatic,
const char *  returnType,
const XStr *  name,
bool  isEnd,
TList< CStateVar * > *  params 
)

Definition at line 1183 of file CSdagConstruct.C.

References generateSignature(), and xi::Member::getContainer().

void xi::generateSignature ( XStr &  decls,
XStr &  defs,
const Chare chare,
bool  declareStatic,
const char *  returnType,
const XStr *  name,
bool  isEnd,
TList< CStateVar * > *  params 
)

void xi::endMethod ( XStr &  op  ) 

void xi::RemoveSdagComments ( char *  str  ) 

Definition at line 1459 of file CSdagConstruct.C.

References ptr.

Referenced by buildAtomic().

void xi::Indent ( int  indent  ) 

Definition at line 7 of file sdag-globals.C.

References printf().

Referenced by xi::CToken::print(), and xi::CEntry::print().

void xi::resetNumbers ( void   ) 

void xi::pH ( int  ,
const char *  ,
  ... 
)

int xi::macroDefined ( const char *  str,
int  istrue 
)

Definition at line 46 of file xi-main.C.

References macros, and xi::MacroDefinition::match().

void xi::splitScopedName ( const char *  name,
const char **  scope,
const char **  basename 
)

Definition at line 62 of file xi-main.C.

FILE* xi::openFile ( char *  interfacefile  ) 

Definition at line 77 of file xi-main.C.

References cur_file, and endl().

Referenced by main().

ModuleList* xi::Parse ( FILE *  fp  ) 

Definition at line 112 of file xi-main.C.

References yyin, and yyparse().

Referenced by main().

void xi::abortxi ( char *  name  ) 

Definition at line 123 of file xi-main.C.

References endl().

Referenced by main().

void xi::die ( const char *  why,
int  line 
)

char* xi::fortranify ( const char *  s,
const char *  suff1 = "",
const char *  suff2 = "",
const char *  suff3 = "" 
)

Definition at line 45 of file xi-symbol.C.

References c.

Referenced by xi::Entry::genCall(), xi::Entry::genDefs(), xi::Readonly::genDefs(), and xi::Chare::genDefs().

void xi::templateGuardBegin ( bool  templateOnly,
XStr &  str 
)

void xi::templateGuardEnd ( XStr &  str  ) 

template<typename T, typename U, typename A>
void xi::perElemGen ( list< T * > &  l,
A &  arg_,
void(U::*)(A &)  fn_,
void(*)(A &)  between_ 
) [inline]

template<typename T, typename U, typename A>
void xi::perElemGen ( list< T * > &  l,
A &  arg_,
void(U::*)(A &)  fn_ 
) [inline]

Definition at line 149 of file xi-symbol.C.

template<typename T, typename U, typename A>
void xi::perElemGen ( list< T * > &  l,
A *  arg_,
void(U::*)(A *)  fn_,
void(*)(A *)  between_ 
) [inline]

Definition at line 155 of file xi-symbol.C.

template<typename T, typename U, typename A>
void xi::perElemGen ( list< T * > &  l,
A *  arg_,
void(U::*)(A *)  fn_ 
) [inline]

Definition at line 164 of file xi-symbol.C.

void xi::newLine ( XStr &  str  ) 

static const char* xi::forWhomStr ( forWhom  w  )  [static]

Definition at line 750 of file xi-symbol.C.

References forAll, forIndex, forIndividual, forPython, and forSection.

Referenced by xi::NamedType::genProxyName(), and xi::Chare::proxyPrefix().

static void xi::disambig_proxy ( XStr &  str,
const XStr &  super 
) [static]

Definition at line 1028 of file xi-symbol.C.

Referenced by disambig_array(), disambig_group(), and xi::Chare::genSubDecls().

static void xi::disambig_reduction_client ( XStr &  str,
const XStr &  super 
) [static]

Definition at line 1191 of file xi-symbol.C.

Referenced by disambig_array(), and disambig_group().

static void xi::disambig_group ( XStr &  str,
const XStr &  super 
) [static]

Definition at line 1203 of file xi-symbol.C.

References disambig_proxy(), and disambig_reduction_client().

Referenced by xi::Group::genSubDecls().

XStr xi::indexSuffix2object ( const XStr &  indexSuffix  ) 

Definition at line 1333 of file xi-symbol.C.

Referenced by xi::Array::Array().

static void xi::disambig_array ( XStr &  str,
const XStr &  super 
) [static]

Definition at line 1375 of file xi-symbol.C.

References disambig_proxy(), and disambig_reduction_client().

Referenced by xi::Array::genSubDecls().

XStr xi::generateTemplateSpec ( TVarList *  tspec  ) 

XStr xi::makeIdent ( const XStr &  in  ) 

Definition at line 2535 of file xi-symbol.C.

References xi::XStr::get_string_const().

Referenced by xi::Readonly::genDefs(), and xi::Readonly::genReg().

int xi::isatty ( int   ) 


Variable Documentation

Definition at line 13 of file sdag-globals.C.

Referenced by xi::SdagConstruct::numberNodes(), and resetNumbers().

Definition at line 14 of file sdag-globals.C.

Referenced by xi::SdagConstruct::numberNodes(), and resetNumbers().

Definition at line 15 of file sdag-globals.C.

Referenced by xi::SdagConstruct::numberNodes(), and resetNumbers().

Definition at line 17 of file sdag-globals.C.

Referenced by xi::SdagConstruct::numberNodes(), and resetNumbers().

Definition at line 18 of file sdag-globals.C.

Referenced by xi::SdagConstruct::numberNodes(), and resetNumbers().

Definition at line 19 of file sdag-globals.C.

Referenced by xi::SdagConstruct::numberNodes(), and resetNumbers().

Definition at line 22 of file sdag-globals.C.

Referenced by xi::SdagConstruct::numberNodes(), and resetNumbers().

Definition at line 23 of file sdag-globals.C.

Referenced by xi::SdagConstruct::numberNodes(), and resetNumbers().

Definition at line 24 of file sdag-globals.C.

Referenced by xi::SdagConstruct::numberNodes(), and resetNumbers().

Definition at line 25 of file sdag-globals.C.

Referenced by xi::SdagConstruct::numberNodes(), and resetNumbers().

Definition at line 26 of file sdag-globals.C.

Referenced by xi::SdagConstruct::numberNodes(), and resetNumbers().

FILE* xi::fh

Definition at line 44 of file xi-main.C.

Referenced by macroDefined(), and main().

Definition at line 22 of file xi-symbol.C.

Referenced by xi::Entry::genRegEp(), xi::Chare::genRegisterMethodDef(), and main().

const char * xi::cur_file

Definition at line 23 of file xi-symbol.C.

Referenced by die(), and openFile().

const char* xi::python_doc

Definition at line 24 of file xi-symbol.C.

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

const char* xi::CIClassStart [static]

Initial value:

 
"{\n"
"  public:\n"

Definition at line 829 of file xi-symbol.C.

Referenced by xi::Chare::genDecls(), xi::Chare::genPythonDecls(), xi::Array::genSubDecls(), xi::Group::genSubDecls(), and xi::Chare::genSubDecls().

const char* xi::CIClassEnd [static]

const char* xi::CIMsgClassAnsi [static]

Initial value:

"{\n"
"  public:\n"
"    static int __idx;\n"
"    void* operator new(size_t, void*p) { return p; }\n"
"    void* operator new(size_t);\n"
"    void* operator new(size_t, int*, const int);\n"
"    void* operator new(size_t, int*);\n"
"#if CMK_MULTIPLE_DELETE\n"
"    void operator delete(void*p, void*){dealloc(p);}\n"
"    void operator delete(void*p){dealloc(p);}\n"
"    void operator delete(void*p, int*, const int){dealloc(p);}\n"
"    void operator delete(void*p, int*){dealloc(p);}\n"
"#endif\n"
"    void operator delete(void*p, size_t){dealloc(p);}\n"
"    static void* alloc(int,size_t, int*, int);\n"
"    static void dealloc(void *p);\n"

Definition at line 1898 of file xi-symbol.C.

Referenced by xi::Message::genAllocDecl().


Generated on Sat May 26 08:13:46 2012 for Charm++ by  doxygen 1.5.5