numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Class of parameters in iterations. More...
#include <num_collect/logging/iterations/iteration_parameter.h>
Public Member Functions | |
iteration_parameter (std::string label, ParameterValue value) | |
Constructor. | |
void | format_label_to (fmt::memory_buffer &buffer) const override |
Format the label with alignment. | |
void | format_summary_to (fmt::memory_buffer &buffer) const override |
Format the summary. | |
void | format_summary_to (fmt::memory_buffer &buffer, Algorithm *algorithm) const override |
Format the summary. | |
void | format_value_to (fmt::memory_buffer &buffer) const override |
Format the value with alignment. | |
void | format_value_to (fmt::memory_buffer &buffer, Algorithm *algorithm) const override |
Format the value with alignment. | |
auto | formatter () -> iteration_parameter_formatter< Value > & |
Access the formatter. | |
auto | label () const noexcept -> const std::string &override |
Get the label of this parameter. | |
auto | width () const -> index_type |
Get width. | |
auto | width (index_type value) -> iteration_parameter * |
Set width. | |
Public Member Functions inherited from num_collect::logging::iterations::iteration_parameter_base< Algorithm > | |
iteration_parameter_base (const iteration_parameter_base &)=delete | |
iteration_parameter_base (iteration_parameter_base &&)=delete | |
virtual | ~iteration_parameter_base () noexcept=default |
Destructor. | |
auto | operator= (const iteration_parameter_base &) -> iteration_parameter_base &=delete |
auto | operator= (iteration_parameter_base &&) -> iteration_parameter_base &=delete |
Private Attributes | |
iteration_parameter_formatter< Value > | formatter_ {} |
Formatter. | |
std::string | label_ |
Label. | |
ParameterValue | value_ |
Parameter value. | |
index_type | width_ {impl::iteration_parameter_default_width} |
Width. | |
Additional Inherited Members | |
Protected Member Functions inherited from num_collect::logging::iterations::iteration_parameter_base< Algorithm > | |
iteration_parameter_base () noexcept=default | |
Constructor. | |
Class of parameters in iterations.
Algorithm | Type of the algorithm. |
Value | Type of values. |
ParameterValue | Class of parameters values in iterations specified by variables. |
Definition at line 137 of file iteration_parameter.h.
|
inline |
Constructor.
[in] | label | Label. |
[in] | value | Parameter value. |
Definition at line 145 of file iteration_parameter.h.
|
inlineoverridevirtual |
Format the label with alignment.
[out] | buffer | Buffer to write the output. |
Implements num_collect::logging::iterations::iteration_parameter_base< Algorithm >.
Definition at line 153 of file iteration_parameter.h.
|
inlineoverridevirtual |
Format the summary.
[out] | buffer | Buffer to write the output. |
Implements num_collect::logging::iterations::iteration_parameter_base< Algorithm >.
Definition at line 171 of file iteration_parameter.h.
|
inlineoverridevirtual |
Format the summary.
[out] | buffer | Buffer to write the output. |
[in] | algorithm | Algorithm. |
Implements num_collect::logging::iterations::iteration_parameter_base< Algorithm >.
Definition at line 194 of file iteration_parameter.h.
|
inlineoverridevirtual |
Format the value with alignment.
[out] | buffer | Buffer to write the output. |
Implements num_collect::logging::iterations::iteration_parameter_base< Algorithm >.
Definition at line 162 of file iteration_parameter.h.
|
inlineoverridevirtual |
Format the value with alignment.
[out] | buffer | Buffer to write the output. |
[in] | algorithm | Algorithm. |
Implements num_collect::logging::iterations::iteration_parameter_base< Algorithm >.
Definition at line 183 of file iteration_parameter.h.
|
inlinenodiscard |
|
inlinenodiscardoverridevirtualnoexcept |
Get the label of this parameter.
Implements num_collect::logging::iterations::iteration_parameter_base< Algorithm >.
Definition at line 206 of file iteration_parameter.h.
|
inlinenodiscard |
|
inline |
Set width.
[in] | value | Value |
Definition at line 216 of file iteration_parameter.h.
|
private |
Formatter.
Definition at line 251 of file iteration_parameter.h.
|
private |
Label.
Definition at line 242 of file iteration_parameter.h.
|
private |
Parameter value.
Definition at line 245 of file iteration_parameter.h.
|
private |
Width.
Definition at line 248 of file iteration_parameter.h.