![]() |
|
Declaration class for block constructs. More...
#include <cblock.h>
Public Member Functions | |
| CBlock (CSymbol *name, Coord_t *aLoc) | |
| Constructor for BLOCK declarations. | |
| CBlock (CSymbol *name, Coord_t *aLoc, Decl_t dtype) | |
| Constructor for BLOCK declarations. | |
| virtual | ~CBlock () |
| Object destructor. | |
| virtual CDecl * | Clone (CObstack *heap) |
| Create a clone of this declaration. | |
| virtual void | Add (CInstance *instance) |
| virtual void | Add (CParam *param) |
| virtual void | Add (CNet *net) |
| virtual void | Add (CVar *var) |
| virtual void | Add (CBlock *child) |
| virtual void | Add (CFref *fref) |
| virtual void | Add (CGenvar *genvar) |
| virtual void | Add (CNode *code) |
| Add parse tree code to this block. | |
| void | SetParent (CBlock *parent) |
| Set this block's parent block. | |
| CBlock * | GetParent (void) |
| Get this block's parent block. | |
| virtual void | Dump (FILE *f) |
| Dump information about block to a file. | |
| vector< CNet * > * | GetNetList () |
| Get list of object's nets. | |
| vector< CVar * > * | GetVarList () |
| Get list of object's registers. | |
| vector< CParam * > * | GetParamList () |
| Get list of object's parameters. | |
| vector< CGenvar * > * | GetGenvarList () |
| Get list of object's genvars. | |
| virtual CNode * | GetCodeList () |
| Get blocks parse tree. | |
| virtual void | SetCodeList (CNode *list) |
| Set block's parse tree. | |
| vector< CBlock * > * | GetChildList () |
| Get list of block's child blocks. | |
| virtual vector< CPortDir * > * | GetPortDirList () |
| Get list of block's port declarations. | |
| virtual void | SetSymtab (CSymtab< CDecl > &symtab) |
| Set block's symbol table. | |
| virtual CSymtab< CDecl > & | GetSymtab () |
| Get block's symbol table. | |
Protected Attributes | |
| vector< CParam * > | paramList |
| vector< CVar * > | varList |
| vector< CGenvar * > | genvarList |
| vector< CFref * > | frefList |
| vector< CNet * > | netList |
| CBlock * | parent |
| vector< CBlock * > | children |
| CSymtab< CDecl > | symtab |
Declaration class for block constructs.
| CBlock::CBlock | ( | CSymbol * | name, |
| Coord_t * | aLoc | ||
| ) |
Constructor for BLOCK declarations.
| name | name of block. |
| aLoc | file coordinates of block. |
| CBlock::CBlock | ( | CSymbol * | name, |
| Coord_t * | aLoc, | ||
| Decl_t | dtype | ||
| ) |
Constructor for BLOCK declarations.
| name | name of block. |
| aLoc | file coordinates of block. |
| dtype | block type. |
| virtual CBlock::~CBlock | ( | ) | [inline, virtual] |
Object destructor.
| virtual void CBlock::Add | ( | CInstance * | instance | ) | [virtual] |
| virtual void CBlock::Add | ( | CParam * | param | ) | [virtual] |
| virtual void CBlock::Add | ( | CNet * | net | ) | [virtual] |
| virtual void CBlock::Add | ( | CVar * | var | ) | [virtual] |
| virtual void CBlock::Add | ( | CBlock * | child | ) | [virtual] |
Currently the construct must be added with this routine as well as by adding a node to the code tree.
Add child block to this block.
| child | pointer to child block object |
| virtual void CBlock::Add | ( | CFref * | fref | ) | [virtual] |
| virtual void CBlock::Add | ( | CGenvar * | genvar | ) | [virtual] |
Currently the construct must be added with this routine as well as by adding a node to the code tree.
Add genvar to this block.
| genvar | pointer to genvar reference object |
| virtual void CBlock::Add | ( | CNode * | code | ) | [virtual] |
| virtual CDecl* CBlock::Clone | ( | CObstack * | heap | ) | [inline, virtual] |
| virtual void CBlock::Dump | ( | FILE * | f | ) | [virtual] |
| vector<CBlock*>* CBlock::GetChildList | ( | ) |
Get list of block's child blocks.
| virtual CNode* CBlock::GetCodeList | ( | ) | [virtual] |
Get blocks parse tree.
| vector<CGenvar*>* CBlock::GetGenvarList | ( | ) |
Get list of object's genvars.
| vector<CNet*>* CBlock::GetNetList | ( | ) |
Get list of object's nets.
| vector<CParam*>* CBlock::GetParamList | ( | ) |
Get list of object's parameters.
| CBlock* CBlock::GetParent | ( | void | ) |
Get this block's parent block.
| virtual vector<CPortDir*>* CBlock::GetPortDirList | ( | ) | [inline, virtual] |
| virtual CSymtab<CDecl>& CBlock::GetSymtab | ( | ) | [inline, virtual] |
Get block's symbol table.
| vector<CVar*>* CBlock::GetVarList | ( | ) |
Get list of object's registers.
| virtual void CBlock::SetCodeList | ( | CNode * | list | ) | [virtual] |
Set block's parse tree.
| list | block's parse tree. |
| void CBlock::SetParent | ( | CBlock * | parent | ) |
Set this block's parent block.
| parent | pointer to parent block object. |
| virtual void CBlock::SetSymtab | ( | CSymtab< CDecl > & | symtab | ) | [virtual] |
Set block's symbol table.
| symtab | reference to new symbol table. |
vector<CBlock*> CBlock::children [protected] |
vector<CFref*> CBlock::frefList [protected] |
vector<CGenvar*> CBlock::genvarList [protected] |
vector<CNet*> CBlock::netList [protected] |
vector<CParam*> CBlock::paramList [protected] |
CBlock* CBlock::parent [protected] |
CSymtab<CDecl> CBlock::symtab [protected] |
vector<CVar*> CBlock::varList [protected] |
1.7.6.1