Declaration object for holding lists of verilog attributes and their corresponding expressions.
More...
#include <cattr.h>
List of all members.
Detailed Description
Declaration object for holding lists of verilog attributes and their corresponding expressions.
Constructor & Destructor Documentation
Create a attribute object.
Member Function Documentation
void CAttr::AddAttribute |
( |
const char * |
name, |
|
|
CNode * |
aExp | |
|
) |
| | [inline] |
Add an attribute to list.
- Parameters:
-
| name | attribute name. |
| aExp | attribute expression. |
Create a clone of this declaration.
- Parameters:
-
| heap | heap to use for allocation. |
- Returns:
- new declaration.
Implements CDecl.
virtual void CAttr::Dump |
( |
FILE * |
f |
) |
[virtual] |
Dump attributes to file.
- Parameters:
-
Reimplemented from CDecl.
int CAttr::GetAttributeCount |
( |
|
) |
[inline] |
Get the number of attributes in list.
- Returns:
- number of attributes in list.
CNode* CAttr::GetAttributeExpression |
( |
int |
index |
) |
[inline] |
Get expression for attribute by index.
- Parameters:
-
| index | index of attribute. |
- Returns:
- attribute expression.
CNode* CAttr::GetAttributeExpression |
( |
const char * |
name |
) |
|
Get expression for attribute by name.
- Parameters:
-
- Returns:
- attribute expression. NULL if not present.
const char* CAttr::GetAttributeName |
( |
int |
index |
) |
[inline] |
Get an attribute by index.
- Parameters:
-
| index | index of attribute (0 based). |
- Returns:
- attribute name.
int CAttr::HasAttribute |
( |
const char * |
name |
) |
|
Check if attribute is in list.
- Parameters:
-
- Returns:
- non-zero if attribute is in list.
The documentation for this class was generated from the following file:
- /net/fileserver/nas/home/mdh/vrq/src/cattr.h