vrq

CPortDir Class Reference

Declaration object for input/output/inout statements. More...

#include <cportdir.h>

Inheritance diagram for CPortDir:
CDecl CObject

List of all members.

Public Member Functions

 CPortDir (CSymbol *symbol, Coord_t *aLoc, Decl_t type)
 Create a port direction declaration.
virtual void Dump (FILE *f)
 Dump declaration to file descriptor.
CDeclGetDecl (void)
 Get variable declaration associated with this.
void SetDecl (CDecl *d)
 Set association to variable declaration.
void SetPortType (Decl_t t)
 Set port type for declaration.
Decl_t GetPortType ()
 Get port type of declaration.
virtual NodeType_t GetNodeType ()
 Get node expression type.

Detailed Description

Declaration object for input/output/inout statements.


Constructor & Destructor Documentation

CPortDir::CPortDir ( CSymbol symbol,
Coord_t aLoc,
Decl_t  type 
)

Create a port direction declaration.

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

Member Function Documentation

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

Dump declaration to file descriptor.

Parameters:
f file descriptor.

Reimplemented from CDecl.

CDecl* CPortDir::GetDecl ( void   )  [inline]

Get variable declaration associated with this.

Returns:
variable declaration.
virtual NodeType_t CPortDir::GetNodeType ( void   )  [inline, virtual]

Get node expression type.

Returns:
node type.

Reimplemented from CDecl.

Decl_t CPortDir::GetPortType (  )  [inline]

Get port type of declaration.

Returns:
port type: eINPUT, eOUTPUT, eINOUT.
void CPortDir::SetDecl ( CDecl d  )  [inline]

Set association to variable declaration.

Parameters:
d variable declaration.
void CPortDir::SetPortType ( Decl_t  t  )  [inline]

Set port type for declaration.

Parameters:
t port type: eINPUT, eOUTPUT, eINOUT.

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

Generated on 3 Dec 2009 for vrq by  doxygen 1.6.1