Nui
Public Member Functions | List of all members
Nui::Elements::comment Struct Reference

#include <comment.hpp>

Inheritance diagram for Nui::Elements::comment:
Inheritance graph
[legend]
Collaboration diagram for Nui::Elements::comment:
Collaboration graph
[legend]

Public Member Functions

 comment (comment const &)=default
 
 comment (comment &&)=default
 
 comment (std::string_view content)
 
 comment (Nui::Observed< std::string > &obs)
 
- Public Member Functions inherited from Nui::HtmlElement
 HtmlElement (HtmlElement const &)=default
 
 HtmlElement (HtmlElement &&)=default
 
virtual ~HtmlElement ()=default
 
 HtmlElement (char const *name, HtmlElementBridge const *bridge, std::vector< Attribute > const &attributes)
 
 HtmlElement (char const *name, HtmlElementBridge const *bridge, std::vector< Attribute > &&attributes)
 
template<typename... T>
 HtmlElement (char const *name, HtmlElementBridge const *bridge, T &&... attributes)
 
HtmlElement clone () const
 
template<typename... ElementT>
requires requires (ElementT &&... elements)
 
auto operator() (ElementT &&... elements) &&
 
auto operator() () &&
 
template<typename T >
requires std::same_as< std::decay_t< T >, std::string > auto operator() (T &&text) &&
 
auto operator() (std::string_view view) &&
 
auto operator() (char const *text) &&
 
template<typename T >
requires Fundamental< T > auto operator() (T fundamental) &&
 
template<typename GeneratorT >
requires InvocableReturns< GeneratorT, std::string > auto operator() (GeneratorT &&textGenerator) &&
 
template<std::invocable GeneratorT>
 requires (!InvocableReturns< GeneratorT, std::string >) auto operator()(GeneratorT &&elementRenderer) &&
 
template<typename T , std::invocable< T &, Renderer const & > GeneratorT>
requires InvocableReturns< GeneratorT, std::string > auto operator() (GeneratorT &&elementRenderer) &&
 
template<typename... ObservedValues, std::invocable GeneratorT>
auto operator() (ObservedValueCombinatorWithGenerator< GeneratorT, ObservedValues... > combinator) &&
 
template<typename... ObservedValues, std::invocable GeneratorT>
auto operator() (ObservedValueCombinator< ObservedValues... > observedValues, GeneratorT &&elementRenderer) &&
 
template<typename ObservedValue , typename GeneratorT >
auto operator() (ObservedRange< ObservedValue > observedRange, GeneratorT &&elementRenderer) &&
 
template<typename ObservedValue , typename GeneratorT >
auto operator() (std::pair< ObservedRange< ObservedValue >, GeneratorT > &&mapPair) &&
 
template<typename IteratorT , typename GeneratorT , typename... ObservedT>
auto operator() (UnoptimizedRange< IteratorT, ObservedT... > &&unoptimizedRange, GeneratorT &&elementRenderer) &&
 
auto operator() (Observed< std::string > const &observedString) &&
 
template<typename T >
requires Fundamental< T > auto operator() (Observed< T > const &observedNumber) &&
 
std::vector< Attribute > const & attributes () const
 
char const * name () const
 
HtmlElementBridge const * bridge () const
 

Constructor & Destructor Documentation

◆ comment() [1/4]

Nui::Elements::comment::comment ( comment const &  )
default

◆ comment() [2/4]

Nui::Elements::comment::comment ( comment &&  )
default

◆ comment() [3/4]

Nui::Elements::comment::comment ( std::string_view  content)
inline

◆ comment() [4/4]

Nui::Elements::comment::comment ( Nui::Observed< std::string > &  obs)
inline

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