tk::entry_t struct

Struct for storing keyword in the input deck.

Contents

Public functions

auto string() const -> const std::string
auto name() const -> const std::string
auto shortDescription() const -> const std::string
auto longDescription() const -> const std::string
auto alias() const -> const std::optional<std::string>
auto expt() const -> const std::optional<std::string>
auto lower() const -> const std::optional<std::string>
auto upper() const -> const std::optional<std::string>
auto choices() const -> const std::optional<std::string>
auto operator<(const entry_t& en) const -> bool
Less-than operator for ordering, used by, e.g., std::set::insert.

Function documentation

const std::string tk::entry_t::string() const

Returns Keyword as std::string

Accessor to keyword as std::string

const std::string tk::entry_t::name() const

Returns Name of keyword as std::string

Accessor to required short name of a keyword

const std::string tk::entry_t::shortDescription() const

Returns Short help as std::string

Accessor to required short description of a keyword

const std::string tk::entry_t::longDescription() const

Returns Long help as std::string

Accessor to required long description of a keyword

const std::optional<std::string> tk::entry_t::alias() const

Returns Null. This is a punt to fit in the existing HelpFactory infrastructure; needs to be removed.

Alias accessor for keyword

const std::optional<std::string> tk::entry_t::expt() const

Returns Type description for keyword

Expected type description accessor for keyword

const std::optional<std::string> tk::entry_t::lower() const

Returns Null.

Expected lower bound accessor for a keyword

const std::optional<std::string> tk::entry_t::upper() const

Returns Null.

Expected upper bound accessor for a keyword

const std::optional<std::string> tk::entry_t::choices() const

Returns Null.

Expected choices description accessor for a keyword

bool tk::entry_t::operator<(const entry_t& en) const

Less-than operator for ordering, used by, e.g., std::set::insert.

Parameters
en in entry_t to compare
Returns Boolean indicating if en is less than 'this'