vrq
Public Member Functions

CPort Class Reference

Declaration object for module/function/task ports. More...

#include <cport.h>

Inheritance diagram for CPort:
CDecl CObject

List of all members.

Public Member Functions

 CPort (CSymbol *symbol, int dotted, Coord_t *aLoc)
 Create port.
virtual CDeclClone (CObstack *heap)
 Create a clone of this declaration.
virtual void Dump (FILE *f)
 Dump port info to file descriptor.
CNodeGetConnection (void)
 Get connection expression for port.
void SetConnection (CNode *decl)
 Set connection expression for port.
int IsDotted (void)
 Get dotted attribute.
void Direction (Decl_t d)
 Set port direction.
Decl_t Direction ()
 Get port direction.

Detailed Description

Declaration object for module/function/task ports.


Constructor & Destructor Documentation

CPort::CPort ( CSymbol symbol,
int  dotted,
Coord_t aLoc 
)

Create port.

Parameters:
symbol name of port.
dotted non-zero for dotted style ports.
aLoc file coordinate of port.

Member Function Documentation

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

Create a clone of this declaration.

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

Implements CDecl.

Decl_t CPort::Direction (  )  [inline]

Get port direction.

Returns:
port direction.
void CPort::Direction ( Decl_t  d  )  [inline]

Set port direction.

Parameters:
d port direction.
virtual void CPort::Dump ( FILE *  f  )  [virtual]

Dump port info to file descriptor.

Parameters:
f file descriptor.

Reimplemented from CDecl.

CNode* CPort::GetConnection ( void   ) 

Get connection expression for port.

Returns:
connection expression.
int CPort::IsDotted ( void   )  [inline]

Get dotted attribute.

Returns:
non-zero if port is dotted.
void CPort::SetConnection ( CNode decl  ) 

Set connection expression for port.

Parameters:
decl connection expression.

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