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

#include <trace.hpp>

Public Member Functions

OutputIt finish () &&
 
 trace_writer (OutputIt out, visualization_options opts)
 
template<typename Location , typename Reader >
void write_backtrack (const Location &loc, lexy::lexeme< Reader > lexeme)
 
template<typename Location >
void write_cancel (const Location &loc)
 
template<typename Location >
void write_debug (const Location &loc, const char *str)
 
template<typename Location , typename Reader , typename Tag >
void write_error (const Location &loc, const lexy::error< Reader, Tag > &error)
 
template<typename Location >
void write_finish (const Location &loc)
 
template<typename Location >
void write_operation (const Location &loc, const char *name)
 
template<typename Location >
void write_production_start (const Location &loc, const char *name)
 
template<typename Location >
void write_recovery_start (const Location &loc)
 
template<typename Location , typename Reader >
void write_token (const Location &loc, lexy::token_kind< TokenKind > kind, lexy::lexeme< Reader > lexeme)
 

Private Types

enum  prefix { prefix::event, prefix::cancel, prefix::finish }
 

Private Member Functions

template<typename Location >
void write_prefix (const Location &loc, prefix p)
 

Private Attributes

std::size_t _cur_depth
 
visualization_options _opts
 
OutputIt _out
 

Detailed Description

template<typename OutputIt, typename TokenKind>
class lexy::_detail::trace_writer< OutputIt, TokenKind >

Definition at line 53 of file trace.hpp.

Member Enumeration Documentation

◆ prefix

template<typename OutputIt , typename TokenKind >
enum lexy::_detail::trace_writer::prefix
strongprivate
Enumerator
event 
cancel 
finish 

Definition at line 253 of file trace.hpp.

Constructor & Destructor Documentation

◆ trace_writer()

template<typename OutputIt , typename TokenKind >
lexy::_detail::trace_writer< OutputIt, TokenKind >::trace_writer ( OutputIt  out,
visualization_options  opts 
)
inlineexplicit

Definition at line 56 of file trace.hpp.

Member Function Documentation

◆ finish()

template<typename OutputIt , typename TokenKind >
OutputIt lexy::_detail::trace_writer< OutputIt, TokenKind >::finish ( ) &&
inline

Definition at line 246 of file trace.hpp.

◆ write_backtrack()

template<typename OutputIt , typename TokenKind >
template<typename Location , typename Reader >
void lexy::_detail::trace_writer< OutputIt, TokenKind >::write_backtrack ( const Location &  loc,
lexy::lexeme< Reader >  lexeme 
)
inline

Definition at line 108 of file trace.hpp.

◆ write_cancel()

template<typename OutputIt , typename TokenKind >
template<typename Location >
void lexy::_detail::trace_writer< OutputIt, TokenKind >::write_cancel ( const Location &  loc)
inline

Definition at line 239 of file trace.hpp.

◆ write_debug()

template<typename OutputIt , typename TokenKind >
template<typename Location >
void lexy::_detail::trace_writer< OutputIt, TokenKind >::write_debug ( const Location &  loc,
const char *  str 
)
inline

Definition at line 214 of file trace.hpp.

◆ write_error()

template<typename OutputIt , typename TokenKind >
template<typename Location , typename Reader , typename Tag >
void lexy::_detail::trace_writer< OutputIt, TokenKind >::write_error ( const Location &  loc,
const lexy::error< Reader, Tag > &  error 
)
inline

Definition at line 127 of file trace.hpp.

◆ write_finish()

template<typename OutputIt , typename TokenKind >
template<typename Location >
void lexy::_detail::trace_writer< OutputIt, TokenKind >::write_finish ( const Location &  loc)
inline

Definition at line 232 of file trace.hpp.

◆ write_operation()

template<typename OutputIt , typename TokenKind >
template<typename Location >
void lexy::_detail::trace_writer< OutputIt, TokenKind >::write_operation ( const Location &  loc,
const char *  name 
)
inline

Definition at line 198 of file trace.hpp.

◆ write_prefix()

template<typename OutputIt , typename TokenKind >
template<typename Location >
void lexy::_detail::trace_writer< OutputIt, TokenKind >::write_prefix ( const Location &  loc,
prefix  p 
)
inlineprivate

Definition at line 261 of file trace.hpp.

◆ write_production_start()

template<typename OutputIt , typename TokenKind >
template<typename Location >
void lexy::_detail::trace_writer< OutputIt, TokenKind >::write_production_start ( const Location &  loc,
const char *  name 
)
inline

Definition at line 61 of file trace.hpp.

◆ write_recovery_start()

template<typename OutputIt , typename TokenKind >
template<typename Location >
void lexy::_detail::trace_writer< OutputIt, TokenKind >::write_recovery_start ( const Location &  loc)
inline

Definition at line 173 of file trace.hpp.

◆ write_token()

template<typename OutputIt , typename TokenKind >
template<typename Location , typename Reader >
void lexy::_detail::trace_writer< OutputIt, TokenKind >::write_token ( const Location &  loc,
lexy::token_kind< TokenKind >  kind,
lexy::lexeme< Reader >  lexeme 
)
inline

Definition at line 88 of file trace.hpp.

Member Data Documentation

◆ _cur_depth

template<typename OutputIt , typename TokenKind >
std::size_t lexy::_detail::trace_writer< OutputIt, TokenKind >::_cur_depth
private

Definition at line 299 of file trace.hpp.

◆ _opts

template<typename OutputIt , typename TokenKind >
visualization_options lexy::_detail::trace_writer< OutputIt, TokenKind >::_opts
private

Definition at line 297 of file trace.hpp.

◆ _out

template<typename OutputIt , typename TokenKind >
OutputIt lexy::_detail::trace_writer< OutputIt, TokenKind >::_out
private

Definition at line 296 of file trace.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