ACT Library
|
This class is used to hold information about an instance in the body of a namespace and/or user-defined type. More...
#include <body.h>
Public Member Functions | |
ActBody_Inst (int line, InstType *, const char *) | |
void | Expand (ActNamespace *, Scope *) |
Type * | BaseType () |
void | Print (FILE *fp) |
InstType * | getType () |
const char * | getName () |
void | updateInstType (InstType *u) |
ActBody * | Clone () |
![]() | |
ActBody (int line) | |
virtual | ~ActBody () |
void | Append (ActBody *b) |
void | insertNext (ActBody *b) |
ActBody * | Tail () |
ActBody * | Next () |
virtual ActBody * | Clone () |
virtual void | Expand (ActNamespace *, Scope *) |
void | Expandlist (ActNamespace *, Scope *) |
virtual void | Print (FILE *) |
void | updateInstType (list_t *namelist, InstType *it) |
int | getLine () |
Private Attributes | |
InstType * | t |
the type | |
const char * | id |
the name of the identifier to be instantiated | |
Additional Inherited Members | |
![]() | |
int | _line |
saved away line number information | |
This class is used to hold information about an instance in the body of a namespace and/or user-defined type.
ActBody_Inst::ActBody_Inst | ( | int | line, |
InstType * | , | ||
const char * | |||
) |
An instance on the specified line, consisting of a type specifier and string corresponding to the name of the instance. Note that array specifiers will be part of the type.
Type * ActBody_Inst::BaseType | ( | ) |
|
virtual |
Make a deep copy of this instance
Reimplemented from ActBody.
|
virtual |
Expand the instance, and add it to the scope table
Reimplemented from ActBody.
|
inline |
|
inline |
|
virtual |
void ActBody_Inst::updateInstType | ( | InstType * | u | ) |
Update the instance type with a new type. This is used by overrides.
u | is the new instance type |
|
private |
the name of the identifier to be instantiated
|
private |
the type