Public Types | Public Member Functions | Private Attributes | List of all members
lexy::lexeme< Reader > Class Template Reference

#include <lexeme.hpp>

Public Types

using char_type = LEXY_DECAY_DECLTYPE(*LEXY_DECLVAL(iterator &))
 
using encoding = typename Reader::encoding
 
using iterator = typename Reader::iterator
 

Public Member Functions

constexpr iterator begin () const noexcept
 
constexpr const char_typedata () const noexcept
 
constexpr bool empty () const noexcept
 
constexpr iterator end () const noexcept
 
constexpr lexeme () noexcept
 
constexpr lexeme (const Reader &reader, iterator begin) noexcept
 
constexpr lexeme (iterator begin, iterator end) noexcept
 
constexpr lexeme (iterator pos, std::size_t size) noexcept
 
template<typename OtherReader , typename = std::enable_if_t<std::is_same_v< typename Reader::iterator, typename OtherReader::iterator>>>
constexpr operator lexeme< OtherReader > () const noexcept
 
constexpr char_type operator[] (std::size_t idx) const noexcept
 
constexpr std::size_t size () const noexcept
 

Private Attributes

iterator _begin
 
iterator _end
 

Detailed Description

template<typename Reader>
class lexy::lexeme< Reader >

Definition at line 16 of file lexeme.hpp.

Member Typedef Documentation

◆ char_type

template<typename Reader >
using lexy::lexeme< Reader >::char_type = LEXY_DECAY_DECLTYPE(*LEXY_DECLVAL(iterator&))

Definition at line 21 of file lexeme.hpp.

◆ encoding

template<typename Reader >
using lexy::lexeme< Reader >::encoding = typename Reader::encoding

Definition at line 19 of file lexeme.hpp.

◆ iterator

template<typename Reader >
using lexy::lexeme< Reader >::iterator = typename Reader::iterator

Definition at line 20 of file lexeme.hpp.

Constructor & Destructor Documentation

◆ lexeme() [1/4]

template<typename Reader >
constexpr lexy::lexeme< Reader >::lexeme ( )
inlineconstexprnoexcept

Definition at line 23 of file lexeme.hpp.

◆ lexeme() [2/4]

template<typename Reader >
constexpr lexy::lexeme< Reader >::lexeme ( iterator  begin,
iterator  end 
)
inlineconstexprnoexcept

Definition at line 24 of file lexeme.hpp.

◆ lexeme() [3/4]

template<typename Reader >
constexpr lexy::lexeme< Reader >::lexeme ( iterator  pos,
std::size_t  size 
)
inlineconstexprnoexcept

Definition at line 25 of file lexeme.hpp.

◆ lexeme() [4/4]

template<typename Reader >
constexpr lexy::lexeme< Reader >::lexeme ( const Reader &  reader,
iterator  begin 
)
inlineexplicitconstexprnoexcept

Definition at line 29 of file lexeme.hpp.

Member Function Documentation

◆ begin()

template<typename Reader >
constexpr iterator lexy::lexeme< Reader >::begin ( ) const
inlineconstexprnoexcept

Definition at line 45 of file lexeme.hpp.

◆ data()

template<typename Reader >
constexpr const char_type* lexy::lexeme< Reader >::data ( ) const
inlineconstexprnoexcept

Definition at line 54 of file lexeme.hpp.

◆ empty()

template<typename Reader >
constexpr bool lexy::lexeme< Reader >::empty ( ) const
inlineconstexprnoexcept

Definition at line 40 of file lexeme.hpp.

◆ end()

template<typename Reader >
constexpr iterator lexy::lexeme< Reader >::end ( ) const
inlineconstexprnoexcept

Definition at line 49 of file lexeme.hpp.

◆ operator lexeme< OtherReader >()

template<typename Reader >
template<typename OtherReader , typename = std::enable_if_t<std::is_same_v< typename Reader::iterator, typename OtherReader::iterator>>>
constexpr lexy::lexeme< Reader >::operator lexeme< OtherReader > ( ) const
inlineconstexprnoexcept

Definition at line 35 of file lexeme.hpp.

◆ operator[]()

template<typename Reader >
constexpr char_type lexy::lexeme< Reader >::operator[] ( std::size_t  idx) const
inlineconstexprnoexcept

Definition at line 65 of file lexeme.hpp.

◆ size()

template<typename Reader >
constexpr std::size_t lexy::lexeme< Reader >::size ( ) const
inlineconstexprnoexcept

Definition at line 60 of file lexeme.hpp.

Member Data Documentation

◆ _begin

template<typename Reader >
iterator lexy::lexeme< Reader >::_begin
private

Definition at line 72 of file lexeme.hpp.

◆ _end

template<typename Reader >
iterator lexy::lexeme< Reader >::_end
private

Definition at line 72 of file lexeme.hpp.


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


behaviortree_cpp_v4
Author(s): Davide Faconti
autogenerated on Fri Dec 13 2024 03:19:19