vrq

CGenvar Class Reference

Declaration object for genvars. More...

#include <cgenvar.h>

Inheritance diagram for CGenvar:
CDecl CObject

List of all members.

Public Member Functions

 CGenvar (CSymbol *symbol, Coord_t *aLoc)
 Create a genvar declaration.
virtual CDecl * Clone (CObstack *heap)
 Create a clone of this declaration.
virtual NodeType_t GetNodeType (void)
 Get node type of declaration.
virtual INT32 GetWidth (void)
 Get width of declaration.
virtual int IsWidthEvaluateable ()
 Determine if width is evaluateable.
virtual CNode * GetWidthExp ()
 Get expression representing genvar width.
virtual void Dump (FILE *f)
 Dump genvar info to file descriptor.

Protected Member Functions

void Copy (CObstack *heap, CGenvar &d)
 Deep copy of declaration.

Detailed Description

Declaration object for genvars.


Constructor & Destructor Documentation

CGenvar::CGenvar ( CSymbol *  symbol,
Coord_t *  aLoc 
)

Create a genvar declaration.

Parameters:
symbol name of declaration.
aLoc file coordinates of declaration.

Member Function Documentation

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

Create a clone of this declaration.

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

Implements CDecl.

void CGenvar::Copy ( CObstack *  heap,
CGenvar &  d 
) [inline, protected]

Deep copy of declaration.

Parameters:
heap heap to use for allocation.
d declaration to copy.
virtual void CGenvar::Dump ( FILE *  f  )  [virtual]

Dump genvar info to file descriptor.

Parameters:
f file descriptor.

Reimplemented from CDecl.

virtual NodeType_t CGenvar::GetNodeType ( void   )  [inline, virtual]

Get node type of declaration.

Returns:
node type, always signed vector.

Reimplemented from CDecl.

virtual INT32 CGenvar::GetWidth ( void   )  [inline, virtual]

Get width of declaration.

Returns:
node width, always 32.

Reimplemented from CDecl.

virtual CNode* CGenvar::GetWidthExp ( void   )  [inline, virtual]

Get expression representing genvar width.

Returns:
width expression.

Reimplemented from CDecl.

virtual int CGenvar::IsWidthEvaluateable ( void   )  [inline, virtual]

Determine if width is evaluateable.

Returns:
always return TRUE.

Reimplemented from CDecl.


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

Generated on 3 Apr 2010 for vrq by  doxygen 1.6.1