class SgDescriptType : public SgType

for example in C: long volatile int x; long and volatile are modifiers and there is a descriptor type whose base type is the real type of x

Inheritance:

SgDescriptType < SgType


Public Methods

int modifierFlag()
void setModifierFlag(int flag)
SgDescriptType(SgType &base_type, int bit_flag)
~SgDescriptType()

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

for example in C: long volatile int x; long and volatile are modifiers and there is a descriptor type whose base type is the real type of x. the modifier is an integer with bits set if the modifier holds. the bits are: BIT_SYN, BIT_SHARED, BIT_PRIVATE, BIT_FUTURE, BIT_VIRTUAL, BIT_, BIT_UNSIGNED, BIT_SIGNED, BIT_LONG, BIT_SHORT, BIT_VOLATILE, BIT_CONST, BIT_TYPEDEF, BIT_EXTERN, BIT_AUTO, BIT_STATIC, BIT_REGISTER, BIT_FRIEND, BIT_GLOBAL, and more.

variant = T_DESCRIPT

SgDescriptType(SgType &base_type, int bit_flag)

int modifierFlag()

void setModifierFlag(int flag)

~SgDescriptType()


This class has no child classes.

alphabetic index hierarchy of classes


Email contact: zgs@npac.syr.edu

generated by doc++