slang-netlist  0.9.0
Loading...
Searching...
No Matches
slang::netlist::Utilities Struct Reference

#include <Utilities.hpp>

Classes

struct  TableFormatConfig

Public Types

using Row = std::vector<std::string>
using Table = std::vector<Row>

Static Public Member Functions

static auto locationStr (ast::Compilation const &compilation, SourceLocation location)
 Return a string representation of a slang SourceLocation.
static auto formatTable (FormatBuffer &buffer, const Row &header, const Table &rows, TableFormatConfig cfg={})
 Format a table of data into the given format buffer.

Member Typedef Documentation

◆ Row

using slang::netlist::Utilities::Row = std::vector<std::string>

◆ Table

using slang::netlist::Utilities::Table = std::vector<Row>

Member Function Documentation

◆ formatTable()

auto slang::netlist::Utilities::formatTable ( FormatBuffer & buffer,
const Row & header,
const Table & rows,
TableFormatConfig cfg = {} )
inlinestatic

Format a table of data into the given format buffer.

◆ locationStr()

auto slang::netlist::Utilities::locationStr ( ast::Compilation const & compilation,
SourceLocation location )
inlinestatic

Return a string representation of a slang SourceLocation.


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