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

An input that refers to a string. More...

#include <string_input.hpp>

Public Types

using char_type = typename encoding::char_type
 
using encoding = Encoding
 

Public Member Functions

constexpr const char_typedata () const noexcept
 
constexpr auto reader () const &noexcept
 
constexpr std::size_t size () const noexcept
 
constexpr string_input () noexcept
 
constexpr string_input (const char_type *begin, const char_type *end) noexcept
 
constexpr string_input (const char_type *data, std::size_t size) noexcept
 
template<typename CharT , typename = _detail::require_secondary_char_type<Encoding, CharT>>
 string_input (const CharT *begin, const CharT *end) noexcept
 
template<typename CharT , typename = _detail::require_secondary_char_type<Encoding, CharT>>
 string_input (const CharT *data, std::size_t size) noexcept
 
template<typename View , typename CharT = _string_view_char_type<View>>
constexpr string_input (const View &view) noexcept
 

Private Attributes

const char_type_data
 
std::size_t _size
 

Detailed Description

template<typename Encoding = default_encoding>
class lexy::string_input< Encoding >

An input that refers to a string.

Definition at line 18 of file string_input.hpp.

Member Typedef Documentation

◆ char_type

template<typename Encoding = default_encoding>
using lexy::string_input< Encoding >::char_type = typename encoding::char_type

Definition at line 24 of file string_input.hpp.

◆ encoding

template<typename Encoding = default_encoding>
using lexy::string_input< Encoding >::encoding = Encoding

Definition at line 23 of file string_input.hpp.

Constructor & Destructor Documentation

◆ string_input() [1/6]

template<typename Encoding = default_encoding>
constexpr lexy::string_input< Encoding >::string_input ( )
inlineconstexprnoexcept

Definition at line 27 of file string_input.hpp.

◆ string_input() [2/6]

template<typename Encoding = default_encoding>
constexpr lexy::string_input< Encoding >::string_input ( const char_type data,
std::size_t  size 
)
inlineconstexprnoexcept

Definition at line 29 of file string_input.hpp.

◆ string_input() [3/6]

template<typename Encoding = default_encoding>
constexpr lexy::string_input< Encoding >::string_input ( const char_type begin,
const char_type end 
)
inlineconstexprnoexcept

Definition at line 32 of file string_input.hpp.

◆ string_input() [4/6]

template<typename Encoding = default_encoding>
template<typename CharT , typename = _detail::require_secondary_char_type<Encoding, CharT>>
lexy::string_input< Encoding >::string_input ( const CharT *  data,
std::size_t  size 
)
inlinenoexcept

Definition at line 37 of file string_input.hpp.

◆ string_input() [5/6]

template<typename Encoding = default_encoding>
template<typename CharT , typename = _detail::require_secondary_char_type<Encoding, CharT>>
lexy::string_input< Encoding >::string_input ( const CharT *  begin,
const CharT *  end 
)
inlinenoexcept

Definition at line 41 of file string_input.hpp.

◆ string_input() [6/6]

template<typename Encoding = default_encoding>
template<typename View , typename CharT = _string_view_char_type<View>>
constexpr lexy::string_input< Encoding >::string_input ( const View &  view)
inlineexplicitconstexprnoexcept

Definition at line 46 of file string_input.hpp.

Member Function Documentation

◆ data()

template<typename Encoding = default_encoding>
constexpr const char_type* lexy::string_input< Encoding >::data ( ) const
inlineconstexprnoexcept

Definition at line 60 of file string_input.hpp.

◆ reader()

template<typename Encoding = default_encoding>
constexpr auto lexy::string_input< Encoding >::reader ( ) const &
inlineconstexprnoexcept

Definition at line 71 of file string_input.hpp.

◆ size()

template<typename Encoding = default_encoding>
constexpr std::size_t lexy::string_input< Encoding >::size ( ) const
inlineconstexprnoexcept

Definition at line 65 of file string_input.hpp.

Member Data Documentation

◆ _data

template<typename Encoding = default_encoding>
const char_type* lexy::string_input< Encoding >::_data
private

Definition at line 77 of file string_input.hpp.

◆ _size

template<typename Encoding = default_encoding>
std::size_t lexy::string_input< Encoding >::_size
private

Definition at line 78 of file string_input.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