Declaration object for module/function/task ports. More...
#include <cport.h>
Public Member Functions | |
CPort (CSymbol *symbol, int dotted, Coord_t *aLoc) | |
Create port. | |
virtual CDecl * | Clone (CObstack *heap) |
Create a clone of this declaration. | |
virtual void | Dump (FILE *f) |
Dump port info to file descriptor. | |
CNode * | GetConnection (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. |
Declaration object for module/function/task ports.
Create port.
symbol | name of port. | |
dotted | non-zero for dotted style ports. | |
aLoc | file coordinate of port. |
Create a clone of this declaration.
heap | heap to use for allocation. |
Implements CDecl.
Decl_t CPort::Direction | ( | ) | [inline] |
Get port direction.
void CPort::Direction | ( | Decl_t | d | ) | [inline] |
Set port direction.
d | port direction. |
virtual void CPort::Dump | ( | FILE * | f | ) | [virtual] |
CNode* CPort::GetConnection | ( | void | ) |
Get connection expression for port.
int CPort::IsDotted | ( | void | ) | [inline] |
Get dotted attribute.
void CPort::SetConnection | ( | CNode * | decl | ) |
Set connection expression for port.
decl | connection expression. |