vrq
Public Member Functions
CGate Class Reference

Gate declaration object. More...

#include <cgate.h>

Inheritance diagram for CGate:
CDecl CObject

List of all members.

Public Member Functions

 CGate (CSymbol *aSymbol, CSymbol *type, Strength_t s0, Strength_t s1, CNode *delayControl, CNode *arguments, Coord_t *aLoc)
 Create a gate declaration.
virtual CDeclClone (CObstack *heap)
 Create a clone of this declaration.
CSymbolGetType (void)
 Get gate's type.
CNodeGetDelayControl (void)
 Get gate's delay control.
CNodeGetArguments (void)
 Get gate's arguments.
void SetArguments (CNode *n)
 Set gate's arguments.
virtual void Dump (FILE *f)
 Dump gate info to file descriptor.
Strength_t Strength0 ()
 Get 0 drive stength.
void Strength0 (Strength_t pair)
 Set 0 drive strength.
Strength_t Strength1 ()
 Get 1 drive stength.
void Strength1 (Strength_t pair)
 Set 1 drive strength.

Detailed Description

Gate declaration object.


Constructor & Destructor Documentation

CGate::CGate ( CSymbol aSymbol,
CSymbol type,
Strength_t  s0,
Strength_t  s1,
CNode delayControl,
CNode arguments,
Coord_t aLoc 
)

Create a gate declaration.

Parameters:
aSymbolgate name.
typegate type.
s00 drive strength.
s11 drive strength.
delayControldelay control expression.
argumentsgate arguments.
aLocfile coordinates of declaration.

Member Function Documentation

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

Create a clone of this declaration.

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

Implements CDecl.

virtual void CGate::Dump ( FILE *  f) [virtual]

Dump gate info to file descriptor.

Parameters:
ffile descriptor.

Reimplemented from CDecl.

Get gate's arguments.

Returns:
argument list, may be NULL.

Get gate's delay control.

Returns:
delay control, may be NULL.
CSymbol* CGate::GetType ( void  )

Get gate's type.

Returns:
gate's type.

Reimplemented from CDecl.

void CGate::SetArguments ( CNode n) [inline]

Set gate's arguments.

Parameters:
narguments.

Get 0 drive stength.

Returns:
drive strength.
void CGate::Strength0 ( Strength_t  pair) [inline]

Set 0 drive strength.

Parameters:
pairdrive strength.

Get 1 drive stength.

Returns:
drive strength.
void CGate::Strength1 ( Strength_t  pair) [inline]

Set 1 drive strength.

Parameters:
pairdrive strength.

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