|
BDE 4.39.x Production Release
|
#include <bslfmt_mockformatcontext.h>
This unconstrained (value-semantic) class provides an access to the current state of the format operation and is used for testing bsl::formatter specializations.
Public Types | |
| typedef basic_format_arg< basic_format_context< t_CHAR *, t_CHAR > > | Arg |
| typedef MockFormatContext_Iterator< t_CHAR > | iterator |
| typedef t_CHAR | char_type |
Public Member Functions | |
| template<class t_ARG0 > | |
| MockFormatContext (const t_ARG0 &arg_0) | |
| template<class t_ARG0 , class t_ARG1 > | |
| MockFormatContext (const t_ARG0 &arg_0, const t_ARG1 &arg_1) | |
| template<class t_ARG0 , class t_ARG1 , class t_ARG2 > | |
| MockFormatContext (const t_ARG0 &arg_0, const t_ARG1 &arg_1, const t_ARG2 &arg_2) | |
| template<class t_ARG0 , class t_ARG1 , class t_ARG2 , class t_ARG3 > | |
| MockFormatContext (const t_ARG0 &arg_0, const t_ARG1 &arg_1, const t_ARG2 &arg_2, const t_ARG3 &arg_3) | |
| void | advance_to (iterator it) |
| Arg | arg (size_t id) const BSLS_KEYWORD_NOEXCEPT |
| iterator | out () const |
| bsl::basic_string_view< t_CHAR > | finalString () const |
| typedef basic_format_arg<basic_format_context<t_CHAR *, t_CHAR> > bslfmt::MockFormatContext< t_CHAR >::Arg |
| typedef t_CHAR bslfmt::MockFormatContext< t_CHAR >::char_type |
| typedef MockFormatContext_Iterator<t_CHAR> bslfmt::MockFormatContext< t_CHAR >::iterator |
| bslfmt::MockFormatContext< t_CHAR >::MockFormatContext | ( | const t_ARG0 & | arg_0 | ) |
Create an object having the specified arg_0 as an argument.
| bslfmt::MockFormatContext< t_CHAR >::MockFormatContext | ( | const t_ARG0 & | arg_0, |
| const t_ARG1 & | arg_1 | ||
| ) |
Create an object having the specified arg_0 and arg_1 as arguments.
| bslfmt::MockFormatContext< t_CHAR >::MockFormatContext | ( | const t_ARG0 & | arg_0, |
| const t_ARG1 & | arg_1, | ||
| const t_ARG2 & | arg_2 | ||
| ) |
Create an object having the specified arg_0, arg_1 and arg_2 as arguments.
| bslfmt::MockFormatContext< t_CHAR >::MockFormatContext | ( | const t_ARG0 & | arg_0, |
| const t_ARG1 & | arg_1, | ||
| const t_ARG2 & | arg_2, | ||
| const t_ARG3 & | arg_3 | ||
| ) |
Create an object having the specified arg_0, arg_1, arg_2 and arg_3 as arguments.
| void bslfmt::MockFormatContext< t_CHAR >::advance_to | ( | iterator | it | ) |
Advance the output iterator to the position referred by the specified it.
| MockFormatContext< t_CHAR >::Arg bslfmt::MockFormatContext< t_CHAR >::arg | ( | size_t | id | ) | const |
Return the argument with the specified id or the default constructed object if there is no argument with such id.
| bsl::basic_string_view< t_CHAR > bslfmt::MockFormatContext< t_CHAR >::finalString | ( | ) | const |
Return output string.
| MockFormatContext< t_CHAR >::iterator bslfmt::MockFormatContext< t_CHAR >::out | ( | ) | const |
Return this object's output iterator.