CIRCT  19.0.0git
Classes | Public Types | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Attributes | List of all members
circt::pretty::Token Class Reference

#include <PrettyPrinter.h>

Inheritance diagram for circt::pretty::Token:
Inheritance graph
Collaboration diagram for circt::pretty::Token:
Collaboration graph


struct  BeginInfo
struct  BreakInfo
struct  CallbackInfo
struct  EndInfo
struct  StringInfo
struct  TokenInfo

Public Types

enum class  Kind {
  String , Break , Begin , End ,

Public Member Functions

Kind getKind () const

Protected Member Functions

 Token (Kind k)

Static Protected Member Functions

template<Kind k, typename T >
static auto & getInfoImpl (T &t)

Private Attributes

union {
   TokenInfo   info
   StringInfo   stringInfo
   BreakInfo   breakInfo
   BeginInfo   beginInfo
   EndInfo   endInfo
   CallbackInfo   callbackInfo

Detailed Description

Definition at line 51 of file PrettyPrinter.h.

Member Enumeration Documentation

◆ Kind


Definition at line 53 of file PrettyPrinter.h.

Constructor & Destructor Documentation

◆ Token()

circt::pretty::Token::Token ( Kind  k)

Definition at line 107 of file PrettyPrinter.h.

References data.

Member Function Documentation

◆ getInfoImpl()

template<Kind k, typename T >
static auto& circt::pretty::Token::getInfoImpl ( T &  t)

Definition at line 93 of file PrettyPrinter.h.

References Begin, Break, Callback, End, and String.

◆ getKind()

Kind circt::pretty::Token::getKind ( ) const

Definition at line 110 of file PrettyPrinter.h.

References data.

Referenced by circt::pretty::TokenBase< DerivedT, DerivedKind >::classof().

Member Data Documentation

◆ beginInfo

BeginInfo circt::pretty::Token::beginInfo

Definition at line 86 of file PrettyPrinter.h.

◆ breakInfo

BreakInfo circt::pretty::Token::breakInfo

Definition at line 85 of file PrettyPrinter.h.

◆ callbackInfo

CallbackInfo circt::pretty::Token::callbackInfo

Definition at line 88 of file PrettyPrinter.h.


union { ... } circt::pretty::Token::data

Referenced by getKind(), and Token().

◆ endInfo

EndInfo circt::pretty::Token::endInfo

Definition at line 87 of file PrettyPrinter.h.

◆ info

TokenInfo circt::pretty::Token::info

Definition at line 83 of file PrettyPrinter.h.

◆ stringInfo

StringInfo circt::pretty::Token::stringInfo

Definition at line 84 of file PrettyPrinter.h.

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