CIRCT 24.0.0git
Loading...
Searching...
No Matches
esi::IntegerType Class Reference

Integers are bit vectors which may be signed or unsigned and are interpreted as numbers. More...

#include <Types.h>

Inheritance diagram for esi::IntegerType:
Collaboration diagram for esi::IntegerType:

Public Member Functions

 BitVectorType (const ID &id, uint64_t width)
Public Member Functions inherited from esi::BitVectorType
 BitVectorType (const ID &id, uint64_t width)
uint64_t getWidth () const
std::ptrdiff_t getBitWidth () const override
Public Member Functions inherited from esi::Type
 Type (const ID &id)
virtual ~Type ()=default
ID getID () const
void setHWBitwidth (std::ptrdiff_t bw)
 Set from manifest JSON hwBitwidth.
virtual MutableBitVector serialize (const std::any &obj) const
 Serialize an object to a MutableBitVector (LSB-first stream).
virtual std::any deserialize (BitVector &data) const
 Deserialize from a BitVector stream (LSB-first).
std::any deserialize (const MessageData &data) const
virtual void ensureValid (const std::any &obj) const
 Ensure that a std::any object is valid for this type.
std::optional< std::string > isValid (const std::any &obj) const
void dump (std::ostream &os, bool oneLine=false) const
std::string toString (bool oneLine=false) const

Additional Inherited Members

Public Types inherited from esi::Type
using ID = std::string
Protected Attributes inherited from esi::Type
ID id
std::ptrdiff_t hwBitwidth = -1

Detailed Description

Integers are bit vectors which may be signed or unsigned and are interpreted as numbers.

Definition at line 236 of file Types.h.

Member Function Documentation

◆ BitVectorType()

esi::BitVectorType::BitVectorType ( const ID & id,
uint64_t width )
inline

Definition at line 213 of file Types.h.


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