libdigidocpp  4.0.0
digidoc::XMLElem< T > Struct Template Reference

#include <XMLDocument.h>

Public Types

using value_type = T
 
using pointer = value_type *
 
using sv = std::string_view
 
using pcxmlChar = const xmlChar *
 

Public Member Functions

template<typename P >
constexpr auto children (P p, xmlElementType type=XML_ELEMENT_NODE) const noexcept
 
constexpr sv name () const noexcept
 
constexpr sv ns () const noexcept
 
constexpr operator bool () const noexcept
 
constexpr auto & operator++ () noexcept
 
constexpr auto operator++ (int) noexcept
 
constexpr operator sv () const noexcept
 

Static Public Member Functions

template<class C , typename P >
constexpr static auto safe (C c, P p) noexcept
 
template<class C >
constexpr static C find (C n, xmlElementType type) noexcept
 
template<class C >
constexpr static C find (C n, sv name, sv ns) noexcept
 
template<class C , typename P >
constexpr static sv to_string_view (C d, P p) noexcept
 

Public Attributes

pointer d {}
 

Member Typedef Documentation

◆ pcxmlChar

template<class T >
using digidoc::XMLElem< T >::pcxmlChar = const xmlChar *

◆ pointer

template<class T >
using digidoc::XMLElem< T >::pointer = value_type*

◆ sv

template<class T >
using digidoc::XMLElem< T >::sv = std::string_view

◆ value_type

template<class T >
using digidoc::XMLElem< T >::value_type = T

Member Function Documentation

◆ children()

template<class T >
template<typename P >
constexpr auto digidoc::XMLElem< T >::children ( p,
xmlElementType  type = XML_ELEMENT_NODE 
) const
inlineconstexprnoexcept

◆ find() [1/2]

template<class T >
template<class C >
constexpr static C digidoc::XMLElem< T >::find ( n,
sv  name,
sv  ns 
)
inlinestaticconstexprnoexcept

◆ find() [2/2]

template<class T >
template<class C >
constexpr static C digidoc::XMLElem< T >::find ( n,
xmlElementType  type 
)
inlinestaticconstexprnoexcept

◆ name()

template<class T >
constexpr sv digidoc::XMLElem< T >::name ( ) const
inlineconstexprnoexcept

◆ ns()

template<class T >
constexpr sv digidoc::XMLElem< T >::ns ( ) const
inlineconstexprnoexcept

◆ operator bool()

template<class T >
constexpr digidoc::XMLElem< T >::operator bool ( ) const
inlineconstexprnoexcept

◆ operator sv()

template<class T >
constexpr digidoc::XMLElem< T >::operator sv ( ) const
inlineconstexprnoexcept

◆ operator++() [1/2]

template<class T >
constexpr auto& digidoc::XMLElem< T >::operator++ ( )
inlineconstexprnoexcept

◆ operator++() [2/2]

template<class T >
constexpr auto digidoc::XMLElem< T >::operator++ ( int  )
inlineconstexprnoexcept

◆ safe()

template<class T >
template<class C , typename P >
constexpr static auto digidoc::XMLElem< T >::safe ( c,
p 
)
inlinestaticconstexprnoexcept

◆ to_string_view()

template<class T >
template<class C , typename P >
constexpr static sv digidoc::XMLElem< T >::to_string_view ( d,
p 
)
inlinestaticconstexprnoexcept

Member Data Documentation

◆ d


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