vrq
Public Member Functions

CInstance Class Reference

Declaration object for module and gate instances. More...

#include <cinstance.h>

Inheritance diagram for CInstance:
CDecl CObject

List of all members.

Public Member Functions

 CInstance (CSymbol *aSymbol, CModule *definition, CNode *parameters, CNode *arguments, Coord_t *aLoc)
 Create an instance.
virtual CDeclClone (CObstack *heap)
 Create a clone of this declaration.
CModuleGetDefinition (void)
 Get module definition.
CNodeGetParameters (void)
 Get instance parameters.
void SetParameters (CNode *param)
 Set instance parameters.
CNodeGetArguments (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.

Detailed Description

Declaration object for module and gate instances.


Constructor & Destructor Documentation

CInstance::CInstance ( CSymbol aSymbol,
CModule definition,
CNode parameters,
CNode arguments,
Coord_t aLoc 
)

Create an instance.

Parameters:
aSymbol name of instance.
definition module decl for udp/module instantiation
parameters list of parameters.
arguments list of arguments.
aLoc file coordinates of instance.

Member Function Documentation

virtual CDecl* CInstance::Clone ( CObstack heap  )  [virtual]

Create a clone of this declaration.

Parameters:
heap heap to use for allocation.
Returns:
new declaration.

Implements CDecl.

virtual void CInstance::Dump ( FILE *  f  )  [virtual]

Dump instance info to file descriptor.

Parameters:
f file descriptor.

Reimplemented from CDecl.

CNode* CInstance::GetArguments ( void   ) 

Get instance arguments.

Returns:
instance arguments.
vector<CNode*>* CInstance::GetArgumentVector ( void   ) 

Get array of argument nodes.

Returns:
pointer to vector containing argument nodes.
CModule* CInstance::GetDefinition ( void   ) 

Get module definition.

Returns:
module definition for instance.
CNode* CInstance::GetParameters ( void   ) 

Get instance parameters.

Returns:
list of parameters.
int CInstance::IsGate (  )  [inline]

Determine if instance is a gate.

Returns:
non-zero if instance is a gate.
void CInstance::SetArguments ( CNode n  ) 

Set instance arguments.

Parameters:
n instance arguments.
void CInstance::SetParameters ( CNode param  ) 

Set instance parameters.

Parameters:
param instance parameters.

The documentation for this class was generated from the following file: