Nui
Public Member Functions | Friends | List of all members
Nui::HtmlElement Class Reference

#include <html_element.hpp>

Inheritance diagram for Nui::HtmlElement:
Inheritance graph
[legend]

Public Member Functions

 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
 

Friends

class DomElement
 

Constructor & Destructor Documentation

◆ HtmlElement() [1/5]

Nui::HtmlElement::HtmlElement ( HtmlElement const &  )
default

◆ HtmlElement() [2/5]

Nui::HtmlElement::HtmlElement ( HtmlElement &&  )
default

◆ ~HtmlElement()

virtual Nui::HtmlElement::~HtmlElement ( )
virtualdefault

◆ HtmlElement() [3/5]

Nui::HtmlElement::HtmlElement ( char const *  name,
HtmlElementBridge const *  bridge,
std::vector< Attribute > const &  attributes 
)
inline

◆ HtmlElement() [4/5]

Nui::HtmlElement::HtmlElement ( char const *  name,
HtmlElementBridge const *  bridge,
std::vector< Attribute > &&  attributes 
)
inline

◆ HtmlElement() [5/5]

template<typename... T>
Nui::HtmlElement::HtmlElement ( char const *  name,
HtmlElementBridge const *  bridge,
T &&...  attributes 
)
inline

Member Function Documentation

◆ attributes()

std::vector<Attribute> const& Nui::HtmlElement::attributes ( ) const
inline

◆ bridge()

HtmlElementBridge const* Nui::HtmlElement::bridge ( ) const
inline

◆ clone()

HtmlElement Nui::HtmlElement::clone ( ) const
inline

◆ name()

char const* Nui::HtmlElement::name ( ) const
inline

◆ operator()() [1/15]

auto Nui::HtmlElement::operator() ( ) &&
inline

◆ operator()() [2/15]

auto Nui::HtmlElement::operator() ( char const *  text) &&
inline

◆ operator()() [3/15]

auto Nui::HtmlElement::operator() ( ElementT &&...  elements) &&
inline

◆ operator()() [4/15]

template<typename T , std::invocable< T &, Renderer const & > GeneratorT>
requires InvocableReturns<GeneratorT, std::string> auto Nui::HtmlElement::operator() ( GeneratorT &&  elementRenderer) &&
inline

◆ operator()() [5/15]

template<typename GeneratorT >
requires InvocableReturns<GeneratorT, std::string> auto Nui::HtmlElement::operator() ( GeneratorT &&  textGenerator) &&
inline

◆ operator()() [6/15]

auto Nui::HtmlElement::operator() ( Observed< std::string > const &  observedString) &&
inline

◆ operator()() [7/15]

template<typename T >
requires Fundamental<T> auto Nui::HtmlElement::operator() ( Observed< T > const &  observedNumber) &&
inline

◆ operator()() [8/15]

template<typename ObservedValue , typename GeneratorT >
auto Nui::HtmlElement::operator() ( ObservedRange< ObservedValue >  observedRange,
GeneratorT &&  elementRenderer 
) &&
inline

◆ operator()() [9/15]

template<typename... ObservedValues, std::invocable GeneratorT>
auto Nui::HtmlElement::operator() ( ObservedValueCombinator< ObservedValues... >  observedValues,
GeneratorT &&  elementRenderer 
) &&
inline

◆ operator()() [10/15]

template<typename... ObservedValues, std::invocable GeneratorT>
auto Nui::HtmlElement::operator() ( ObservedValueCombinatorWithGenerator< GeneratorT, ObservedValues... >  combinator) &&
inline

◆ operator()() [11/15]

template<typename ObservedValue , typename GeneratorT >
auto Nui::HtmlElement::operator() ( std::pair< ObservedRange< ObservedValue >, GeneratorT > &&  mapPair) &&
inline

◆ operator()() [12/15]

auto Nui::HtmlElement::operator() ( std::string_view  view) &&
inline

◆ operator()() [13/15]

template<typename T >
requires std::same_as<std::decay_t<T>, std::string> auto Nui::HtmlElement::operator() ( T &&  text) &&
inline

◆ operator()() [14/15]

template<typename T >
requires Fundamental<T> auto Nui::HtmlElement::operator() ( fundamental) &&
inline

◆ operator()() [15/15]

template<typename IteratorT , typename GeneratorT , typename... ObservedT>
auto Nui::HtmlElement::operator() ( UnoptimizedRange< IteratorT, ObservedT... > &&  unoptimizedRange,
GeneratorT &&  elementRenderer 
) &&
inline

◆ requires() [1/2]

template<std::invocable GeneratorT>
Nui::HtmlElement::requires ( !InvocableReturns< GeneratorT, std::string >  ) &&
inline

◆ requires() [2/2]

template<typename... ElementT>
requires Nui::HtmlElement::requires ( ElementT &&...  elements)
inline

Friends And Related Function Documentation

◆ DomElement

friend class DomElement
friend

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