CIRCT  19.0.0git
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
circt::moore::PackedDim Class Reference

A packed dimension. More...

#include <MooreTypes.h>

Inheritance diagram for circt::moore::PackedDim:
Inheritance graph
[legend]
Collaboration diagram for circt::moore::PackedDim:
Collaboration graph
[legend]

Public Member Functions

PackedType getInner () const
 Get the element type of the dimension. This is the x in x[a:b]. More...
 
std::optional< RangegetRange () const
 Get the dimension's range, or None if it is unsized. More...
 
std::optional< unsigned > getSize () const
 Get the dimension's size, or None if it is unsized. More...
 
- Public Member Functions inherited from circt::moore::PackedType
Domain getDomain () const
 Get the value domain of this type. More...
 
std::optional< unsigned > getBitSize () const
 Get the size of this type in bits. More...
 
- Public Member Functions inherited from circt::moore::UnpackedType
Domain getDomain () const
 Get the value domain of this type. More...
 
std::optional< unsigned > getBitSize () const
 Get the size of this type in bits. More...
 

Static Public Member Functions

static bool classof (Type type)
 
- Static Public Member Functions inherited from circt::moore::PackedType
static bool classof (Type type)
 
- Static Public Member Functions inherited from circt::moore::UnpackedType
static bool classof (Type type)
 

Protected Member Functions

const detail::DimStoragegetImpl () const
 

Detailed Description

A packed dimension.

Definition at line 258 of file MooreTypes.h.

Member Function Documentation

◆ classof()

static bool circt::moore::PackedDim::classof ( Type  type)
inlinestatic

Definition at line 260 of file MooreTypes.h.

◆ getImpl()

const detail::DimStorage * PackedDim::getImpl ( ) const
protected

Definition at line 183 of file MooreTypes.cpp.

Referenced by getInner().

◆ getInner()

PackedType PackedDim::getInner ( ) const

Get the element type of the dimension. This is the x in x[a:b].

Definition at line 169 of file MooreTypes.cpp.

References getImpl().

◆ getRange()

std::optional< Range > PackedDim::getRange ( ) const

Get the dimension's range, or None if it is unsized.

Definition at line 173 of file MooreTypes.cpp.

Referenced by getSize().

◆ getSize()

std::optional< unsigned > PackedDim::getSize ( ) const

Get the dimension's size, or None if it is unsized.

Definition at line 179 of file MooreTypes.cpp.

References getRange().


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