nw::TwoDA
-
struct TwoDA
Public Types
-
using RowType = std::vector<detail::StringVariant>
Public Functions
-
TwoDA() = default
-
~TwoDA() = default
-
bool add_column(StringView name)
Appends new column with default
****values.
-
size_t column_index(StringView column) const
Finds the index of a column, or -1.
-
inline const Vector<String> &column_names() const noexcept
Gets list of column names.
-
size_t columns() const noexcept
Get the number of columns.
-
StringView get_raw(size_t row, size_t col) const
Gets raw twoda value.
-
bool is_valid() const noexcept
Is the 2da parsed without error.
-
void pad(size_t count)
Pads the 2da with
countrows.
-
size_t rows() const noexcept
Number of rows.
Public Static Attributes
-
static constexpr size_t npos = std::numeric_limits<size_t>::max()
-
using RowType = std::vector<detail::StringVariant>