|
BDE 4.39.x Production Release
|
#include <bslfmt_mockformatcontext.h>
This class template provides an output iterator to the MockFormatContext output buffer allowing appending formatted data.
Public Types | |
| typedef std::ptrdiff_t | difference_type |
| typedef t_CHAR | value_type |
| typedef t_CHAR * | pointer |
| typedef t_CHAR & | reference |
| typedef std::output_iterator_tag | iterator_category |
Public Member Functions | |
| MockFormatContext_Iterator (t_CHAR *ptr, t_CHAR *max) | |
| MockFormatContext_Iterator & | operator++ () |
| MockFormatContext_Iterator | operator++ (int) |
| t_CHAR & | operator* () const |
| t_CHAR * | rawPointer () const |
| typedef std::ptrdiff_t bslfmt::MockFormatContext_Iterator< t_CHAR >::difference_type |
| typedef std::output_iterator_tag bslfmt::MockFormatContext_Iterator< t_CHAR >::iterator_category |
| typedef t_CHAR* bslfmt::MockFormatContext_Iterator< t_CHAR >::pointer |
| typedef t_CHAR& bslfmt::MockFormatContext_Iterator< t_CHAR >::reference |
| typedef t_CHAR bslfmt::MockFormatContext_Iterator< t_CHAR >::value_type |
| bslfmt::MockFormatContext_Iterator< t_CHAR >::MockFormatContext_Iterator | ( | t_CHAR * | ptr, |
| t_CHAR * | max | ||
| ) |
Create an iterator, pointing to the specified ptr and having the specified max as the end of the buffer available for output.
max >=ptr. | t_CHAR & bslfmt::MockFormatContext_Iterator< t_CHAR >::operator* | ( | ) | const |
Return a reference to the character referred to by this iterator.
| MockFormatContext_Iterator< t_CHAR > & bslfmt::MockFormatContext_Iterator< t_CHAR >::operator++ | ( | ) |
Increment this object to refer to the next character in the output buffer. Throw bslfmt::format_error if the iterator goes beyond the allowed buffer bounds.
| MockFormatContext_Iterator< t_CHAR > bslfmt::MockFormatContext_Iterator< t_CHAR >::operator++ | ( | int | ) |
Copy this iterator, increment it, and return by value the copy that was made prior the increment.
| t_CHAR * bslfmt::MockFormatContext_Iterator< t_CHAR >::rawPointer | ( | ) | const |
Return a pointer pointing to the character referred to by this iterator.