libxr  1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
LibXR::Print::Printf::Compiled< Source > Struct Template Reference

Static Public Member Functions

static constexpr auto ArgumentList ()
 Field-ordered argument metadata used by runtime argument packing. / 按字段顺序排列、供运行期参数打包使用的元信息表
 
static constexpr auto ArgumentOrder ()
 Field-ordered source argument references, including duplicates and reordering. / 按字段顺序排列的源参数引用,可包含重复与重排
 
static constexpr auto SourceArgumentList ()
 Source-ordered argument metadata used only by compile-time type matching. / 按源参数顺序排列、仅供编译期类型匹配使用的元信息
 
static constexpr const auto & Codes ()
 Final compiled bytes consumed directly by the runtime writer. / 供运行期 writer 直接消费的最终编译字节块
 
static constexpr FormatProfile Profile ()
 Returns the compile-time executor profile. / 返回编译期执行器配置
 
template<typename... Args>
static consteval bool Matches ()
 Returns true when Args... exactly match this compiled format. / 判断 Args... 是否与当前编译格式完全匹配
 

Static Public Attributes

static constexpr auto codes = result.codes
 Final runtime byte block kept by the compiled surface. / 编译格式表面保留的最终运行期字节块
 
static constexpr FormatProfile profile = result.profile
 Compile-time executor profile used to specialize the runtime bytecode interpreter. / 用于特化运行期字节码解释器的编译期执行器配置
 

Private Types

using Frontend = typename Printf::template Compiler<Source>
 

Static Private Attributes

static constexpr auto source_analysis = Detail::PrintfCompile::Analyze<Source>()
 
static constexpr auto result = FormatCompiler<Frontend>::Compile()
 

Detailed Description

template<Text Source>
struct LibXR::Print::Printf::Compiled< Source >

Definition at line 116 of file printf.hpp.

Member Typedef Documentation

◆ Frontend

template<Text Source>
using LibXR::Print::Printf::Compiled< Source >::Frontend = typename Printf::template Compiler<Source>
private

Definition at line 119 of file printf.hpp.

Member Function Documentation

◆ ArgumentList()

template<Text Source>
static constexpr auto LibXR::Print::Printf::Compiled< Source >::ArgumentList ( )
inlinestaticnodiscardconstexpr

Field-ordered argument metadata used by runtime argument packing. / 按字段顺序排列、供运行期参数打包使用的元信息表

Definition at line 157 of file printf.hpp.

158 {
159 return result.arg_info;
160 }

◆ ArgumentOrder()

template<Text Source>
static constexpr auto LibXR::Print::Printf::Compiled< Source >::ArgumentOrder ( )
inlinestaticnodiscardconstexpr

Field-ordered source argument references, including duplicates and reordering. / 按字段顺序排列的源参数引用,可包含重复与重排

Definition at line 163 of file printf.hpp.

164 {
165 return source_analysis.order;
166 }

◆ Codes()

template<Text Source>
static constexpr const auto & LibXR::Print::Printf::Compiled< Source >::Codes ( )
inlinestaticnodiscardconstexpr

Final compiled bytes consumed directly by the runtime writer. / 供运行期 writer 直接消费的最终编译字节块

Definition at line 175 of file printf.hpp.

176 {
177 return codes;
178 }
static constexpr auto codes
Final runtime byte block kept by the compiled surface. / 编译格式表面保留的最终运行期字节块
Definition printf.hpp:152

◆ Matches()

template<Text Source>
template<typename... Args>
static consteval bool LibXR::Print::Printf::Compiled< Source >::Matches ( )
inlinestaticnodiscardconsteval

Returns true when Args... exactly match this compiled format. / 判断 Args... 是否与当前编译格式完全匹配

Definition at line 188 of file printf.hpp.

189 {
190 return Detail::FormatArgument::template Matches<Args...>(SourceArgumentList());
191 }
static consteval bool Matches()
Returns true when Args... exactly match this compiled format. / 判断 Args... 是否与当前编译格式完全匹配
Definition printf.hpp:188
static constexpr auto SourceArgumentList()
Source-ordered argument metadata used only by compile-time type matching. / 按源参数顺序排列、仅供编译期类型匹配使用的元信息
Definition printf.hpp:169

◆ Profile()

template<Text Source>
static constexpr FormatProfile LibXR::Print::Printf::Compiled< Source >::Profile ( )
inlinestaticnodiscardconstexpr

Returns the compile-time executor profile. / 返回编译期执行器配置

Definition at line 181 of file printf.hpp.

182 {
183 return profile;
184 }
static constexpr FormatProfile profile
Compile-time executor profile used to specialize the runtime bytecode interpreter....
Definition printf.hpp:154

◆ SourceArgumentList()

template<Text Source>
static constexpr auto LibXR::Print::Printf::Compiled< Source >::SourceArgumentList ( )
inlinestaticnodiscardconstexpr

Source-ordered argument metadata used only by compile-time type matching. / 按源参数顺序排列、仅供编译期类型匹配使用的元信息

Definition at line 169 of file printf.hpp.

170 {
171 return source_analysis.args;
172 }

Field Documentation

◆ codes

template<Text Source>
auto LibXR::Print::Printf::Compiled< Source >::codes = result.codes
inlinestaticconstexpr

Final runtime byte block kept by the compiled surface. / 编译格式表面保留的最终运行期字节块

Definition at line 152 of file printf.hpp.

◆ profile

template<Text Source>
FormatProfile LibXR::Print::Printf::Compiled< Source >::profile = result.profile
inlinestaticconstexpr

Compile-time executor profile used to specialize the runtime bytecode interpreter. / 用于特化运行期字节码解释器的编译期执行器配置

Definition at line 154 of file printf.hpp.

◆ result

template<Text Source>
auto LibXR::Print::Printf::Compiled< Source >::result = FormatCompiler<Frontend>::Compile()
inlinestaticconstexprprivate

Definition at line 121 of file printf.hpp.

◆ source_analysis

template<Text Source>
auto LibXR::Print::Printf::Compiled< Source >::source_analysis = Detail::PrintfCompile::Analyze<Source>()
inlinestaticconstexprprivate

Definition at line 120 of file printf.hpp.


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