vrq
Public Member Functions | Protected Member Functions

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, CDataType *dataType)
 Create a port direction declaration.
virtual CDeclClone (CObstack *heap)
 Create a clone of this 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.
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.

Detailed Description

Declaration object for input/output/inout statements.


Constructor & Destructor Documentation

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

Create a port direction declaration.

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

Member Function Documentation

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

Create a clone of this declaration.

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

Implements CDecl.

void CPortDir::Copy ( CObstack heap,
CPortDir d 
) [protected]

Deep copy of declaration.

Parameters:
heap heap to use for allocation.
d declaration to copy.
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 void CPortDir::PostSubVisit1 ( CNode *(*)(CNode *, void *)  func,
void *  data 
) [virtual]

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.

Parameters:
d variable declaration.

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