![]() |
|
Declaration object for input/output/inout statements. More...
#include <cportdir.h>
Public Member Functions | |
| CPortDir (CSymbol *symbol, Coord_t *aLoc, Decl_t type, CDataType *dataType) | |
| Create a port direction declaration. | |
| virtual CDecl * | Clone (CObstack *heap) |
| Create a clone of this declaration. | |
| virtual void | Dump (FILE *f) |
| Dump declaration to file descriptor. | |
| CDecl * | GetDecl (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 void | PreVisit1 (int(*func)(CNode *, void *), void *data) |
| virtual void | PostVisit1 (void(*func)(CNode *, void *), void *data) |
| virtual void | PostSubVisit1 (CNode *(*func)(CNode *, void *), void *data) |
Protected Member Functions | |
| void | Copy (CObstack *heap, CPortDir &d) |
| Deep copy of declaration. | |
Declaration object for input/output/inout statements.
Create a port direction declaration.
| symbol | name of declaration. | |
| aLoc | file coordinates of declaration. | |
| type | port declaration type. | |
| dataType | port data type |
Create a clone of this declaration.
| heap | heap to use for allocation. |
Implements CDecl.
Deep copy of declaration.
| heap | heap to use for allocation. | |
| d | declaration to copy. |
| virtual void CPortDir::Dump | ( | FILE * | f | ) | [virtual] |
| CDecl* CPortDir::GetDecl | ( | void | ) | [inline] |
Get variable declaration associated with this.
| Decl_t CPortDir::GetPortType | ( | ) | [inline] |
Get port type of declaration.
Reimplemented from CDecl.
| virtual void CPortDir::PostVisit1 | ( | void(*)(CNode *, void *) | func, | |
| void * | data | |||
| ) | [virtual] |
Reimplemented from CDecl.
| virtual void CPortDir::PreVisit1 | ( | int(*)(CNode *, void *) | func, | |
| void * | data | |||
| ) | [virtual] |
Reimplemented from CDecl.
| void CPortDir::SetDecl | ( | CDecl * | d | ) | [inline] |
Set association to variable declaration.
| d | variable declaration. |
| void CPortDir::SetPortType | ( | Decl_t | t | ) | [inline] |
Set port type for declaration.
| t | port type: eINPUT, eOUTPUT, eINOUT. |
1.6.1