The "void" type is a special type which can be used to represent no type.
More...
#include <Types.h>
The "void" type is a special type which can be used to represent no type.
Definition at line 128 of file Types.h.
◆ VoidType()
| esi::VoidType::VoidType |
( |
const ID & |
id | ) |
|
|
inline |
◆ deserialize() [1/3]
| virtual std::any esi::Type::deserialize |
( |
BitVector & |
data | ) |
const |
|
inlinevirtual |
Deserialize from a BitVector stream (LSB-first).
Implementations consume bits from 'data' in-place (via logical right shifts) and return the reconstructed value. Remaining bits stay in 'data'.
Reimplemented from esi::Type.
Definition at line 54 of file Types.h.
◆ deserialize() [2/3]
| std::any esi::VoidType::deserialize |
( |
BitVector & |
data | ) |
const |
|
overridevirtual |
Deserialize from a BitVector stream (LSB-first).
Implementations consume bits from 'data' in-place (via logical right shifts) and return the reconstructed value. Remaining bits stay in 'data'.
Reimplemented from esi::Type.
Definition at line 59 of file Types.cpp.
◆ deserialize() [3/3]
| std::any esi::Type::deserialize |
( |
const MessageData & |
data | ) |
const |
|
inline |
◆ ensureValid()
| void esi::VoidType::ensureValid |
( |
const std::any & |
obj | ) |
const |
|
overridevirtual |
Ensure that a std::any object is valid for this type.
Throws std::runtime_error if the object is not valid.
Reimplemented from esi::Type.
Definition at line 45 of file Types.cpp.
Referenced by serialize().
◆ getBitWidth()
| std::ptrdiff_t esi::VoidType::getBitWidth |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ serialize()
Serialize an object to a MutableBitVector (LSB-first stream).
The object should be passed via std::any. Implementations append fields in the order they are iterated (the first serialized field occupies the least-significant bits of the result).
Reimplemented from esi::Type.
Definition at line 71 of file Types.cpp.
References ensureValid().
The documentation for this class was generated from the following files:
- /home/runner/work/circt-www/circt-www/circt_src/lib/Dialect/ESI/runtime/cpp/include/esi/Types.h
- /home/runner/work/circt-www/circt-www/circt_src/lib/Dialect/ESI/runtime/cpp/lib/Types.cpp