BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bslfmt::Format_ContextOutputIteratorRef< t_CHAR > Class Template Reference

#include <bslfmt_format_context.h>

Detailed Description

template<class t_CHAR>
class bslfmt::Format_ContextOutputIteratorRef< t_CHAR >

This class provides a type-erased interface to an output iterator that it holds indirectly via a reference to a Format_ContextOutputIteratorImpl type. It is solely for private use by other components of the bslfmt package and should not be used directly.

See bslfmt_format_context

Public Types

typedef bsl::output_iterator_tag iterator_category
 
typedef void difference_type
 
typedef t_CHAR value_type
 
typedef void reference
 
typedef void pointer
 

Public Member Functions

 Format_ContextOutputIteratorRef (Format_ContextOutputIteratorBase< t_CHAR > *base)
 
Format_ContextOutputIteratorRefoperator* ()
 
void operator= (t_CHAR x)
 
Format_ContextOutputIteratorRefoperator++ ()
 
Format_ContextOutputIteratorRef operator++ (int)
 

Member Typedef Documentation

◆ difference_type

template<class t_CHAR >
typedef void bslfmt::Format_ContextOutputIteratorRef< t_CHAR >::difference_type

◆ iterator_category

template<class t_CHAR >
typedef bsl::output_iterator_tag bslfmt::Format_ContextOutputIteratorRef< t_CHAR >::iterator_category

◆ pointer

template<class t_CHAR >
typedef void bslfmt::Format_ContextOutputIteratorRef< t_CHAR >::pointer

◆ reference

template<class t_CHAR >
typedef void bslfmt::Format_ContextOutputIteratorRef< t_CHAR >::reference

◆ value_type

template<class t_CHAR >
typedef t_CHAR bslfmt::Format_ContextOutputIteratorRef< t_CHAR >::value_type

Constructor & Destructor Documentation

◆ Format_ContextOutputIteratorRef()

template<class t_CHAR >
bslfmt::Format_ContextOutputIteratorRef< t_CHAR >::Format_ContextOutputIteratorRef ( Format_ContextOutputIteratorBase< t_CHAR > *  base)
inline

Create an instance of this type. The specified base should be a pointer to an Format_ContextOutputIteratorImpl type whose lifetime must outlive that of the constructed instance.

Member Function Documentation

◆ operator*()

template<class t_CHAR >
Format_ContextOutputIteratorRef< t_CHAR > & bslfmt::Format_ContextOutputIteratorRef< t_CHAR >::operator* ( )
inline

Return a reference to *this. This method is provided to enable this type to satisfy the requirements of [output.iterators].

◆ operator++() [1/2]

template<class t_CHAR >
Format_ContextOutputIteratorRef< t_CHAR > & bslfmt::Format_ContextOutputIteratorRef< t_CHAR >::operator++ ( )
inline

Do nothing. This method is provided to enable this type to satisfy the requirements of [output.iterators].

◆ operator++() [2/2]

template<class t_CHAR >
Format_ContextOutputIteratorRef< t_CHAR > bslfmt::Format_ContextOutputIteratorRef< t_CHAR >::operator++ ( int  )
inline

Do nothing. This method is provided to enable this type to satisfy the requirements of [output.iterators].

◆ operator=()

template<class t_CHAR >
void bslfmt::Format_ContextOutputIteratorRef< t_CHAR >::operator= ( t_CHAR  x)
inline

Call put(x) on the referenced Format_ContextOutputIteratorImpl instance. This will result in the value being written to the underlying iterator referenced by the Format_ContextOutputIteratorImpl instance, and that underlying iterator then being incremented.


The documentation for this class was generated from the following files: