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:
aSymbol gate name.
type gate type.
s0 0 drive strength.
s1 1 drive strength.
delayControl delay control expression.
arguments gate arguments.
aLoc file coordinates of declaration.

Member Function Documentation

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

Create a clone of this declaration.

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

Implements CDecl.

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

Dump gate info to file descriptor.

Parameters:
f file descriptor.

Reimplemented from CDecl.

CNode* CGate::GetArguments ( void   ) 

Get gate's arguments.

Returns:
argument list, may be NULL.
CNode* CGate::GetDelayControl ( void   ) 

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:
n arguments.
void CGate::Strength0 ( Strength_t  pair  )  [inline]

Set 0 drive strength.

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

Get 0 drive stength.

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

Set 1 drive strength.

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

Get 1 drive stength.

Returns:
drive strength.

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