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

A parsed token, i.e. its kind and its lexeme. More...

#include <token.hpp>

Public Types

using char_type = typename encoding::char_type
 
using encoding = typename Reader::encoding
 
using iterator = typename Reader::iterator
 

Public Member Functions

constexpr token_kind< TokenKind > kind () const noexcept
 
constexpr auto lexeme () const noexcept
 
constexpr const char * name () const noexcept
 
constexpr iterator position () const noexcept
 
constexpr token (token_kind< TokenKind > kind, iterator begin, iterator end) noexcept
 
constexpr token (token_kind< TokenKind > kind, lexy::lexeme< Reader > lex) noexcept
 

Private Attributes

token_kind< TokenKind > _kind
 
lexy::lexeme< Reader > _lexeme
 

Detailed Description

template<typename Reader, typename TokenKind = void>
class lexy::token< Reader, TokenKind >

A parsed token, i.e. its kind and its lexeme.

Definition at line 226 of file token.hpp.

Member Typedef Documentation

◆ char_type

template<typename Reader , typename TokenKind = void>
using lexy::token< Reader, TokenKind >::char_type = typename encoding::char_type

Definition at line 230 of file token.hpp.

◆ encoding

template<typename Reader , typename TokenKind = void>
using lexy::token< Reader, TokenKind >::encoding = typename Reader::encoding

Definition at line 229 of file token.hpp.

◆ iterator

template<typename Reader , typename TokenKind = void>
using lexy::token< Reader, TokenKind >::iterator = typename Reader::iterator

Definition at line 231 of file token.hpp.

Constructor & Destructor Documentation

◆ token() [1/2]

template<typename Reader , typename TokenKind = void>
constexpr lexy::token< Reader, TokenKind >::token ( token_kind< TokenKind >  kind,
lexy::lexeme< Reader >  lex 
)
inlineexplicitconstexprnoexcept

Definition at line 233 of file token.hpp.

◆ token() [2/2]

template<typename Reader , typename TokenKind = void>
constexpr lexy::token< Reader, TokenKind >::token ( token_kind< TokenKind >  kind,
iterator  begin,
iterator  end 
)
inlineexplicitconstexprnoexcept

Definition at line 238 of file token.hpp.

Member Function Documentation

◆ kind()

template<typename Reader , typename TokenKind = void>
constexpr token_kind<TokenKind> lexy::token< Reader, TokenKind >::kind ( ) const
inlineconstexprnoexcept

Definition at line 242 of file token.hpp.

◆ lexeme()

template<typename Reader , typename TokenKind = void>
constexpr auto lexy::token< Reader, TokenKind >::lexeme ( ) const
inlineconstexprnoexcept

Definition at line 257 of file token.hpp.

◆ name()

template<typename Reader , typename TokenKind = void>
constexpr const char* lexy::token< Reader, TokenKind >::name ( ) const
inlineconstexprnoexcept

Definition at line 247 of file token.hpp.

◆ position()

template<typename Reader , typename TokenKind = void>
constexpr iterator lexy::token< Reader, TokenKind >::position ( ) const
inlineconstexprnoexcept

Definition at line 252 of file token.hpp.

Member Data Documentation

◆ _kind

template<typename Reader , typename TokenKind = void>
token_kind<TokenKind> lexy::token< Reader, TokenKind >::_kind
private

Definition at line 264 of file token.hpp.

◆ _lexeme

template<typename Reader , typename TokenKind = void>
lexy::lexeme<Reader> lexy::token< Reader, TokenKind >::_lexeme
private

Definition at line 263 of file token.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