![]() |
![]() |
Declaration object for module and gate instances. More...
#include <cinstance.h>
Public Member Functions | |
CInstance (CSymbol *aSymbol, CModule *definition, CNode *parameters, CNode *arguments, Coord_t *aLoc) | |
Create an instance. | |
virtual CDecl * | Clone (CObstack *heap) |
Create a clone of this declaration. | |
CModule * | GetDefinition (void) |
Get module definition. | |
CNode * | GetParameters (void) |
Get instance parameters. | |
void | SetParameters (CNode *param) |
Set instance parameters. | |
CNode * | GetArguments (void) |
Get instance arguments. | |
void | SetArguments (CNode *n) |
Set instance arguments. | |
vector< CNode * > * | GetArgumentVector (void) |
Get array of argument nodes. | |
int | IsGate () |
Determine if instance is a gate. | |
virtual void | Dump (FILE *f) |
Dump instance info to file descriptor. |
Declaration object for module and gate instances.
CInstance::CInstance | ( | CSymbol * | aSymbol, |
CModule * | definition, | ||
CNode * | parameters, | ||
CNode * | arguments, | ||
Coord_t * | aLoc | ||
) |
Create an instance.
aSymbol | name of instance. |
definition | module decl for udp/module instantiation |
parameters | list of parameters. |
arguments | list of arguments. |
aLoc | file coordinates of instance. |
virtual CDecl* CInstance::Clone | ( | CObstack * | heap | ) | [virtual] |
Create a clone of this declaration.
heap | heap to use for allocation. |
Implements CDecl.
virtual void CInstance::Dump | ( | FILE * | f | ) | [virtual] |
CNode* CInstance::GetArguments | ( | void | ) |
Get instance arguments.
vector<CNode*>* CInstance::GetArgumentVector | ( | void | ) |
Get array of argument nodes.
CModule* CInstance::GetDefinition | ( | void | ) |
Get module definition.
CNode* CInstance::GetParameters | ( | void | ) |
Get instance parameters.
int CInstance::IsGate | ( | ) | [inline] |
Determine if instance is a gate.
void CInstance::SetArguments | ( | CNode * | n | ) |
Set instance arguments.
n | instance arguments. |
void CInstance::SetParameters | ( | CNode * | param | ) |
Set instance parameters.
param | instance parameters. |