Sygaldry
Loading...
Searching...
No Matches
sygaldry::text< name_str, desc, Tags > Struct Template Reference

A text string endpoint with persistent value semantics. More...

Inheritance diagram for sygaldry::text< name_str, desc, Tags >:
sygaldry::persistent< std::string > sygaldry::name_< name_str > sygaldry::description_< str > sygaldry::tagged_< Tags... >

Additional Inherited Members

- Public Types inherited from sygaldry::persistent< std::string >
using type = std::string
 The underlying type.
 
- Public Member Functions inherited from sygaldry::persistent< std::string >
constexpr persistent () noexcept
 Default constuctor defers to T's empty initializer.
 
constexpr persistent (std::string &&t) noexcept
 Move constructor from T
 
constexpr persistent (const std::string &t) noexcept
 Copy constructor from T
 
constexpr auto & operator= (std::string &&t) noexcept
 Move assignment from T
 
constexpr auto & operator= (const std::string &t) noexcept
 Copy assignment from T
 
constexpr operator std::string & () noexcept
 Conversion to a mutable reference to the underlying value.
 
constexpr operator const std::string & () const noexcept
 Conversion to a constant reference to the underlying value.
 
- Static Public Member Functions inherited from sygaldry::name_< name_str >
static _consteval auto name ()
 
- Static Public Member Functions inherited from sygaldry::description_< str >
static _consteval auto description ()
 
- Public Attributes inherited from sygaldry::persistent< std::string >
std::string value
 The wrapped value.
 

Detailed Description

template<string_literal name_str, string_literal desc = "", typename ... Tags>
struct sygaldry::text< name_str, desc, Tags >

A text string endpoint with persistent value semantics.

Template Parameters
name_strThe name of the endpoint. Required.
descA description of the endpoint. Defaults to an empty string.
TagsTag helper classes to apply to the endpoint. None by default.

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