![]() |
|
Declaration object for holding lists of verilog attributes and their corresponding expressions. More...
#include <cattr.h>
Classes | |
| struct | Entry |
Public Member Functions | |
| CAttr (Coord_t *aLoc) | |
| Create a attribute object. | |
| virtual CDecl * | Clone (CObstack *heap) |
| Create a clone of this declaration. | |
| void | AddAttribute (const char *name, CNode *aExp) |
| Add an attribute to list. | |
| int | GetAttributeCount () |
| Get the number of attributes in list. | |
| const char * | GetAttributeName (int index) |
| Get an attribute by index. | |
| CNode * | GetAttributeExpression (int index) |
| Get expression for attribute by index. | |
| CNode * | GetAttributeExpression (const char *name) |
| Get expression for attribute by name. | |
| int | HasAttribute (const char *name) |
| Check if attribute is in list. | |
| virtual void | Dump (FILE *f) |
| Dump attributes to file. | |
Declaration object for holding lists of verilog attributes and their corresponding expressions.
| CAttr::CAttr | ( | Coord_t * | aLoc | ) |
Create a attribute object.
| void CAttr::AddAttribute | ( | const char * | name, |
| CNode * | aExp | ||
| ) | [inline] |
Add an attribute to list.
| name | attribute name. |
| aExp | attribute expression. |
| virtual CDecl* CAttr::Clone | ( | CObstack * | heap | ) | [virtual] |
Create a clone of this declaration.
| heap | heap to use for allocation. |
Implements CDecl.
| virtual void CAttr::Dump | ( | FILE * | f | ) | [virtual] |
| int CAttr::GetAttributeCount | ( | ) | [inline] |
Get the number of attributes in list.
| CNode* CAttr::GetAttributeExpression | ( | int | index | ) | [inline] |
Get expression for attribute by index.
| index | index of attribute. |
| CNode* CAttr::GetAttributeExpression | ( | const char * | name | ) |
Get expression for attribute by name.
| name | name of attribute. |
| const char* CAttr::GetAttributeName | ( | int | index | ) | [inline] |
Get an attribute by index.
| index | index of attribute (0 based). |
| int CAttr::HasAttribute | ( | const char * | name | ) |
Check if attribute is in list.
| name | name of attribute. |
1.7.6.1