vrq
Public Member Functions | Protected Member Functions
CNet Class Reference

Declaration object for nets. More...

#include <cnet.h>

Inheritance diagram for CNet:
CDecl CObject

List of all members.

Public Member Functions

 CNet (CSymbol *symbol, Coord_t *aLoc, Wire_t wireType, CDataType *dataType, int undefined)
 Create a net declaration.
virtual CDeclClone (CObstack *heap)
 Create a clone of this declaration.
void PortDir (CPortDir *p)
 Set portdir associated with net.
CPortDirPortDir ()
 Get portdir associated with net.
void SetDelay (CNode *aExp)
 Set net delay.
CNodeGetDelay (void)
 Get net delay.
int GetUndefined (void)
 Get undefined attribute.
void SetUndefined (int value)
 Set undefined attribute.
StrengthPair_t GetStrength ()
 Get drive strength.
void SetStrength (StrengthPair_t s)
 Set drive strength.
virtual void SetVectored (int v)
 Set vectored attribute.
virtual int GetVectored ()
 Get vectored attribute.
virtual void SetScalared (int v)
 Set scalared attribute.
virtual int GetScalared ()
 Get scalared attribute.
virtual void Dump (FILE *f)
 Dump net info to file descriptor.

Protected Member Functions

void Copy (CObstack *heap, const CNet &net)
 Create a deep copy of given declaration.

Detailed Description

Declaration object for nets.


Constructor & Destructor Documentation

CNet::CNet ( CSymbol symbol,
Coord_t aLoc,
Wire_t  wireType,
CDataType dataType,
int  undefined 
)

Create a net declaration.

Parameters:
symboldeclaration name.
aLocfile descriptor.
wireTypewire type.
dataTypenet data type
undefinednon-zero if net is not explicitly defined in source.

Member Function Documentation

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

Create a clone of this declaration.

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

Implements CDecl.

void CNet::Copy ( CObstack heap,
const CNet net 
) [protected]

Create a deep copy of given declaration.

Parameters:
heapheap to use for allocation.
netdeclaration to copy from.
virtual void CNet::Dump ( FILE *  f) [virtual]

Dump net info to file descriptor.

Parameters:
ffile descriptor.

Reimplemented from CDecl.

CNode* CNet::GetDelay ( void  ) [inline]

Get net delay.

Returns:
net delay expression.
virtual int CNet::GetScalared ( ) [inline, virtual]

Get scalared attribute.

Returns:
non-zero if net is scalared.

Reimplemented from CDecl.

Get drive strength.

Returns:
drive strength.
int CNet::GetUndefined ( void  ) [inline]

Get undefined attribute.

Returns:
non-zero if net is undeclared in source code.
virtual int CNet::GetVectored ( ) [inline, virtual]

Get vectored attribute.

Returns:
non-zero if net is vectored.

Reimplemented from CDecl.

void CNet::PortDir ( CPortDir p) [inline]

Set portdir associated with net.

Parameters:
pto associate with net.
CPortDir* CNet::PortDir ( ) [inline]

Get portdir associated with net.

Returns:
portdir associated with net.
void CNet::SetDelay ( CNode aExp) [inline]

Set net delay.

Parameters:
aExpnet delay expression.
virtual void CNet::SetScalared ( int  v) [inline, virtual]

Set scalared attribute.

Parameters:
vnon-zero if net is scalared.

Reimplemented from CDecl.

void CNet::SetStrength ( StrengthPair_t  s) [inline]

Set drive strength.

Parameters:
sdrive strength.
void CNet::SetUndefined ( int  value) [inline]

Set undefined attribute.

Parameters:
valuenon-zero if net is undeclared in source code.
virtual void CNet::SetVectored ( int  v) [inline, virtual]

Set vectored attribute.

Parameters:
vnon-zero if net is vectored.

Reimplemented from CDecl.


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