Generator of exhaustive standard formatting‐specification combinations.
Synopsis
Declared in <bslfmt_testspecificationgenerator.h>
template<class t_CHAR>
class TestSpecificationGenerator;
Description
This class is a generator that provides a set of formatting specifications obtained by exhaustive search of all combinations of standard options. Its use allows easy and thorough testing of formatters for standard types. The generator is a state machine, each state of which corresponds to a separate specification.
Enums
Name |
Description |
Alignment option values corresponding to format alignment characters. |
|
Format presentation types corresponding to standard format type chars. |
|
Nested width or precision argument‐id variants. |
|
Sign option values corresponding to format sign characters. |
Member Functions
Name |
Description |
|
Create a generator object. |
Add a fill character to the set used when generating specifications. |
|
Add a precision value to the set used when generating specifications. |
|
Add a width value to the set used when generating specifications. |
|
Return the current alignment type. |
|
Return the current fill character. |
|
Return the current generated format specification string. |
|
Return |
|
Return |
|
Return |
|
Return |
|
Return |
|
Return |
|
Return |
|
Return |
|
Return |
|
Return |
|
Return |
|
Return |
|
Return |
|
Return |
|
Return the current nested precision variant. |
|
Return the current nested width variant. |
|
Switch this object to the next state and generate specification based on the new state. |
|
Advance to the next state that yields a specification valid for |
|
Advance to the next state that yields a specification valid for |
|
Return the current precision value. |
|
Configure the generator state sequence from an option instruction. |
|
Return the current sign option value. |
|
Return the specification for the formatters |
|
Return the current presentation type value. |
|
Return the current width value. |
|
|
Declare |
Created with MrDocs