CIRCT  19.0.0git
Public Types | Public Member Functions | Private Attributes | List of all members
circt::firrtl::FIRRTLTypeSwitch< T, void > Class Template Reference

Specialization of FIRRTLTypeSwitch for void returning callables. More...

#include <FIRRTLTypes.h>

Inheritance diagram for circt::firrtl::FIRRTLTypeSwitch< T, void >:
Inheritance graph
[legend]
Collaboration diagram for circt::firrtl::FIRRTLTypeSwitch< T, void >:
Collaboration graph
[legend]

Public Types

using BaseT = llvm::detail::TypeSwitchBase< FIRRTLTypeSwitch< T, void >, T >
 

Public Member Functions

 FIRRTLTypeSwitch (FIRRTLTypeSwitch &&other)=default
 
template<typename CaseT , typename CallableT >
FIRRTLTypeSwitch< T, void > & Case (CallableT &&caseFn)
 Add a case on the given type. More...
 
template<typename CallableT >
void Default (CallableT &&defaultFn)
 As a default, invoke the given callable within the root value. More...
 

Private Attributes

bool foundMatch = false
 A flag detailing if we have already found a match. More...
 

Detailed Description

template<typename T>
class circt::firrtl::FIRRTLTypeSwitch< T, void >

Specialization of FIRRTLTypeSwitch for void returning callables.

Definition at line 568 of file FIRRTLTypes.h.

Member Typedef Documentation

◆ BaseT

template<typename T >
using circt::firrtl::FIRRTLTypeSwitch< T, void >::BaseT = llvm::detail::TypeSwitchBase<FIRRTLTypeSwitch<T, void>, T>

Definition at line 571 of file FIRRTLTypes.h.

Constructor & Destructor Documentation

◆ FIRRTLTypeSwitch()

template<typename T >
circt::firrtl::FIRRTLTypeSwitch< T, void >::FIRRTLTypeSwitch ( FIRRTLTypeSwitch< T, void > &&  other)
default

Member Function Documentation

◆ Case()

template<typename T >
template<typename CaseT , typename CallableT >
FIRRTLTypeSwitch<T, void>& circt::firrtl::FIRRTLTypeSwitch< T, void >::Case ( CallableT &&  caseFn)
inline

Add a case on the given type.

Definition at line 579 of file FIRRTLTypes.h.

◆ Default()

template<typename T >
template<typename CallableT >
void circt::firrtl::FIRRTLTypeSwitch< T, void >::Default ( CallableT &&  defaultFn)
inline

As a default, invoke the given callable within the root value.

Definition at line 593 of file FIRRTLTypes.h.

Member Data Documentation

◆ foundMatch

template<typename T >
bool circt::firrtl::FIRRTLTypeSwitch< T, void >::foundMatch = false
private

A flag detailing if we have already found a match.

Definition at line 600 of file FIRRTLTypes.h.


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