Stateful writer for waveform value emission.
More...
#include <fstWrapper.hpp>
|
| | DataWriter (const DataWriter &)=delete |
| DataWriter & | operator= (const DataWriter &)=delete |
| | DataWriter (DataWriter &&) noexcept=default |
| DataWriter & | operator= (DataWriter &&) noexcept=default |
| | ~DataWriter ()=default |
| void | emitTimeChange (const uint64_t time) |
| | Advances simulation time.
|
| void | emitValueChange (fstHandle handle, const std::string &val) |
| void | emitVariableLengthValueChange (fstHandle handle, std::string_view val) |
| void | emitValue32 (fstHandle handle, uint32_t bits, uint32_t val) |
| void | emitValue64 (fstHandle handle, uint32_t bits, uint64_t val) |
| void | emitValueVec32 (fstHandle handle, uint32_t bits, const uint32_t *val) |
| void | emitValueVec64 (fstHandle handle, uint32_t bits, const uint64_t *val) |
| void | flush () |
Stateful writer for waveform value emission.
This class intentionally cannot exist until hierarchy construction is fully completed.
That sequencing guarantee is enforced at the type level through the HierarchyBuilder -> DataWriter transition.
Definition at line 406 of file fstWrapper.hpp.
◆ DataWriter() [1/3]
| DataWriter |
( |
const DataWriter & | | ) |
|
|
delete |
◆ DataWriter() [2/3]
| DataWriter |
( |
DataWriter && | | ) |
|
|
defaultnoexcept |
◆ ~DataWriter()
◆ DataWriter() [3/3]
| DataWriter |
( |
std::unique_ptr< fstWriterContext, WriterDeleter > | ctx | ) |
|
|
inlineexplicitprivate |
◆ emitTimeChange()
| void emitTimeChange |
( |
const uint64_t | time | ) |
|
|
inline |
Advances simulation time.
- Parameters
-
| time | Timestamp for all subsequent events until the next time change event. |
Definition at line 420 of file fstWrapper.hpp.
◆ emitValue32()
| void emitValue32 |
( |
fstHandle | handle, |
|
|
uint32_t | bits, |
|
|
uint32_t | val ) |
|
inline |
These APIs avoid ASCII conversion overhead for numeric vectors.
They are substantially more efficient than string-based emission for large traces.
Definition at line 455 of file fstWrapper.hpp.
◆ emitValue64()
| void emitValue64 |
( |
fstHandle | handle, |
|
|
uint32_t | bits, |
|
|
uint64_t | val ) |
|
inline |
◆ emitValueChange()
| void emitValueChange |
( |
fstHandle | handle, |
|
|
const std::string & | val ) |
|
inline |
◆ emitValueVec32()
| void emitValueVec32 |
( |
fstHandle | handle, |
|
|
uint32_t | bits, |
|
|
const uint32_t * | val ) |
|
inline |
◆ emitValueVec64()
| void emitValueVec64 |
( |
fstHandle | handle, |
|
|
uint32_t | bits, |
|
|
const uint64_t * | val ) |
|
inline |
◆ emitVariableLengthValueChange()
| void emitVariableLengthValueChange |
( |
fstHandle | handle, |
|
|
std::string_view | val ) |
|
inline |
Used for dynamically sized payloads.
std::string_view avoids unnecessary copying.
Definition at line 439 of file fstWrapper.hpp.
◆ flush()
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ HierarchyBuilder
| friend class HierarchyBuilder |
|
friend |
◆ context
The documentation for this class was generated from the following file: