OpenADFortTk (basic)
xaif2whirl::XlationContext Class Reference

#include <XlationContext.h>

List of all members.

Public Types

enum  Flags_E {
  NOFLAG = 0x00000000, ACTIVETYPE = 0x00000001, VALUESELECTOR = 0x00000002, DERIVSELECTOR = 0x00000004,
  SUPPRESSSELECTOR = 0x00000008, VARREF = 0x00000010, LVALUE = 0x00000020, ARRAY = 0x00000040,
  ARRAYIDX = 0x00000080, EXPRSIMPLE = 0x00000100
}

Public Member Functions

 XlationContext ()
 ~XlationContext ()
void dump (std::ostream &o, const std::string &indent) const
void ddump () const
bool isFlag (Flags_E f) const
void setFlag (Flags_E f)
void unsetFlag (Flags_E f)
void inheritFlagsUp (const XlationContext &childContext)
void inheritFlagsDown (const XlationContext &parentContext)

Private Attributes

unsigned int myFlags

Detailed Description

XlationContext for xaif2whirl: Represents information about a XAIF->WHIRL translation context. Designed to contain information about a particular level. Contained in a stack in PUXlationContext.

Definition at line 21 of file XlationContext.h.


Member Enumeration Documentation

Enumerator:
NOFLAG 
ACTIVETYPE 
VALUESELECTOR 
DERIVSELECTOR 
SUPPRESSSELECTOR 
VARREF 
LVALUE 
ARRAY 
ARRAYIDX 
EXPRSIMPLE 

Definition at line 32 of file XlationContext.h.


Constructor & Destructor Documentation


Member Function Documentation

Definition at line 70 of file XlationContext.cxx.

References dump().

Here is the call graph for this function:

void xaif2whirl::XlationContext::dump ( std::ostream &  o,
const std::string &  indent 
) const

Definition at line 55 of file XlationContext.cxx.

References ACTIVETYPE, ARRAY, ARRAYIDX, DERIVSELECTOR, EXPRSIMPLE, isFlag(), LVALUE, SUPPRESSSELECTOR, VALUESELECTOR, and VARREF.

Referenced by ddump(), and setFlag().

Here is the call graph for this function:

Definition at line 51 of file XlationContext.cxx.

References ACTIVETYPE, and myFlags.


Member Data Documentation

unsigned int xaif2whirl::XlationContext::myFlags [private]

the flags

Definition at line 56 of file XlationContext.h.

Referenced by inheritFlagsDown(), inheritFlagsUp(), isFlag(), setFlag(), and unsetFlag().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines