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

Bit vectors include signed, unsigned, and signless integers. More...

#include <Types.h>

Inheritance diagram for esi::BitVectorType:
Collaboration diagram for esi::BitVectorType:

Public Member Functions

 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

Private Attributes

uint64_t width

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

Bit vectors include signed, unsigned, and signless integers.

Definition at line 211 of file Types.h.

Constructor & Destructor Documentation

◆ BitVectorType()

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

Definition at line 213 of file Types.h.

References esi::Type::id, esi::Type::Type(), and width.

Member Function Documentation

◆ getBitWidth()

std::ptrdiff_t esi::BitVectorType::getBitWidth ( ) const
inlineoverridevirtual

Reimplemented from esi::Type.

Definition at line 216 of file Types.h.

References getWidth().

◆ getWidth()

Member Data Documentation

◆ width

uint64_t esi::BitVectorType::width
private

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