CIRCT  19.0.0git
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
circt::sv::CaseEnumPattern Class Reference

#include <SVOps.h>

Inheritance diagram for circt::sv::CaseEnumPattern:
Inheritance graph
[legend]
Collaboration diagram for circt::sv::CaseEnumPattern:
Collaboration graph
[legend]

Public Member Functions

 CaseEnumPattern (hw::EnumFieldAttr attr)
 
StringRef getFieldValue () const
 
Attribute attr () const override
 
- Public Member Functions inherited from circt::sv::CasePattern
 CasePattern (CasePatternKind kind)
 
virtual ~CasePattern ()
 
CasePatternKind getKind () const
 
virtual bool hasX () const
 Return true if this pattern has an X. More...
 
virtual bool hasZ () const
 Return true if this pattern has an Z. More...
 

Static Public Member Functions

static bool classof (const CasePattern *S)
 

Private Attributes

hw::EnumFieldAttr enumAttr
 

Additional Inherited Members

- Public Types inherited from circt::sv::CasePattern
enum  CasePatternKind { CPK_bit , CPK_enum , CPK_default }
 

Detailed Description

Definition at line 123 of file SVOps.h.

Constructor & Destructor Documentation

◆ CaseEnumPattern()

circt::sv::CaseEnumPattern::CaseEnumPattern ( hw::EnumFieldAttr  attr)
inline

Definition at line 126 of file SVOps.h.

Member Function Documentation

◆ attr()

Attribute circt::sv::CaseEnumPattern::attr ( ) const
inlineoverridevirtual

Implements circt::sv::CasePattern.

Definition at line 132 of file SVOps.h.

References enumAttr.

◆ classof()

static bool circt::sv::CaseEnumPattern::classof ( const CasePattern S)
inlinestatic

Definition at line 134 of file SVOps.h.

References circt::sv::CasePattern::CPK_enum, and circt::sv::CasePattern::getKind().

◆ getFieldValue()

StringRef CaseEnumPattern::getFieldValue ( ) const

Definition at line 790 of file SVOps.cpp.

References enumAttr.

Member Data Documentation

◆ enumAttr

hw::EnumFieldAttr circt::sv::CaseEnumPattern::enumAttr
private

Definition at line 137 of file SVOps.h.

Referenced by attr(), and getFieldValue().


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