|
| struct | Compiled |
| | 一条 brace 风格源串绑定到具体调用点参数后的编译结果 / One brace-style source bound to a concrete call-site argument list More...
|
| |
|
| template<Print::OutputSink Sink, typename... Args> |
| ErrorCode | WriteTo (Sink &sink, Args &&... args) const |
| | 将当前格式写入一个输出端,并且只返回 sink 状态 / Write this format into one sink and return only the sink status
|
| |
|
| static constexpr size_t | ArgumentCount () |
| | 返回当前源串会寻址的调用点参数个数 / Returns the required call-site argument count addressed by this source.
|
| |
| template<typename... Args> |
| static consteval bool | Matches () |
| | 判断这条源格式串能否和 Args... 一起通过编译。 / Returns whether this source string can be compiled with Args....
|
| |
template<
Print::Text Source>
class LibXR::Format< Source >
Definition at line 14 of file format_surface.hpp.
◆ Compiler
template<typename... Args>
绑定到一组具体 C++ 参数类型上的前端适配器 / Frontend adapter bound to one concrete C++ argument list
- Template Parameters
-
| Args | 这次调用点对应的 C++ 实参类型列表 / Concrete C++ argument types at one call site |
Definition at line 58 of file format_surface.hpp.
◆ Error
面向用户的 brace 风格编译期失败类别 / Public brace-style compile-time failure categories
Definition at line 49 of file format_surface.hpp.
◆ SourceError
◆ ArgumentCount()
| static constexpr size_t LibXR::Format< Source >::ArgumentCount |
( |
| ) |
|
|
inlinestaticnodiscardconstexpr |
返回当前源串会寻址的调用点参数个数 / Returns the required call-site argument count addressed by this source.
- Returns
- Returns the number of call-site arguments actually referenced by this source. / 当前源串实际引用到的调用点参数个数。
Definition at line 175 of file format_surface.hpp.
176 {
177 return source_analysis.required_argument_count;
178 }
◆ Matches()
template<typename... Args>
|
|
inlinestaticnodiscardconsteval |
判断这条源格式串能否和 Args... 一起通过编译。 / Returns whether this source string can be compiled with Args....
- Template Parameters
-
| Args | C++ argument types to test. / 待检查的 C++ 实参类型列表。 |
- Returns
- Returns
true when the source can compile with Args..., otherwise false. / 可编译返回 true,否则返回 false。
Definition at line 188 of file format_surface.hpp.
189 {
190 if constexpr (sizeof...(Args) != source_analysis.required_argument_count)
191 {
192 return false;
193 }
194 else
195 {
198 }
199 }
Frontend
Logger literal frontend selection mode.
◆ WriteTo()
template<Print::OutputSink Sink, typename... Args>
将当前格式写入一个输出端,并且只返回 sink 状态 / Write this format into one sink and return only the sink status
- Template Parameters
-
- Parameters
-
| sink | 输出端 / Destination sink |
| args | 本次写出使用的实参 / Arguments used by this write |
- Returns
- sink 写入状态 / Returns the sink write status
Definition at line 212 of file format_surface.hpp.
213 {
214 using Built = Compiled<std::remove_cvref_t<Args>...>;
215 return Print::Writer::template RunArgumentOrder<Sink, Built, Built::ArgumentOrder()>(
216 sink, Built{}, std::forward<Args>(args)...);
217 }
◆ source_analysis
|
|
inlinestaticconstexprprivate |
The documentation for this class was generated from the following file: