class SgClassType : public SgType

a C struct or Fortran Record, a C++ class, a C Union and a C Enum and a pC++ collection

Inheritance:

SgClassType < SgType


Public Methods

SgSymbol* fieldSymb(int i)
SgSymbol* firstFieldSymb()
SgClassType(int variant, char *name, SgStatement &struct_decl, int num_fields, SgSymbol &first_field)
why is struct_decl needed
SgStatement& structureDecl()
~SgClassType()

Inherited from SgType:

Public Fields

PTR_TYPE thetype

Public Methods

void addAttribute(SgAttribute *att)
void addAttribute(int type, void *a, int size)
void addAttribute(int type)
void addAttribute(void *a, int size)
int attributeType(int i)
void* attributeValue(int i, int type)
void* attributeValue(int i)
SgType* baseType()
SgType& copy()
SgType* copyPtr()
void* deleteAttribute(int i)
int equivalentToType(SgType *type)
int equivalentToType(SgType &type)
SgAttribute* getAttribute(int i, int type)
SgAttribute* getAttribute(int i)
SgType* getTrueType(int mask = MASK_MOST_DESCRIPTORS, int follow_typedefs = 0)
int hasBaseType()
int id()
SgType* internalBaseType()
int isTheElementType()
SgExpression* length()
SgType* maskDescriptors(int mask)
SgType* next()
int numberOfAttributes(int type)
int numberOfAttributes()
SgSymbol* symbol()
int variant()

Documentation

a C struct or Fortran Record, a C++ class, a C Union and a C Enum and a pC++ collection. note: derived classes are another type. this type is very simple. it only contains the standard type info from SgType and a pointer to the class declaration stmt and a pointer to the symbol that is the first field in the struct. variant == T_STRUCT, T_ENUM, T_CLASS, T_ENUM, T_COLLECTION
SgClassType(int variant, char *name, SgStatement &struct_decl, int num_fields, SgSymbol &first_field)
why is struct_decl needed. No appropriate field found. assumes that first_field has been declared as FIELD_NAME and the remaining fields have been stringed to it.

SgStatement& structureDecl()

SgSymbol* firstFieldSymb()

SgSymbol* fieldSymb(int i)

~SgClassType()


This class has no child classes.

alphabetic index hierarchy of classes


Email contact: zgs@npac.syr.edu

generated by doc++