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:
symbolname of port.
dottednon-zero for dotted style ports.
aLocfile coordinate of port.

Member Function Documentation

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

Create a clone of this declaration.

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

Implements CDecl.

void CPort::Direction ( Decl_t  d) [inline]

Set port direction.

Parameters:
dport direction.
Decl_t CPort::Direction ( ) [inline]

Get port direction.

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

Dump port info to file descriptor.

Parameters:
ffile descriptor.

Reimplemented from CDecl.

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:
declconnection expression.

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