Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::expressions::char_decorator_terminal< SubactorT, ImplT > Class Template Reference

Character decorator terminal class. More...

#include <char_decorator.hpp>

Public Types

typedef void _is_boost_log_terminal
 Internal typedef for type categorization. More...
 
typedef ImplT impl_type
 Implementation type. More...
 
typedef impl_type::char_type char_type
 Character type. More...
 
typedef impl_type::string_type string_type
 String type. More...
 
typedef
basic_formatting_ostream
< char_type
stream_type
 Stream type. More...
 
typedef SubactorT subactor_type
 Adopted actor type. More...
 
typedef string_type result_type
 Result type definition. More...
 

Public Member Functions

 char_decorator_terminal (subactor_type const &sub, impl_type const &impl)
 Initializing constructor. More...
 
 char_decorator_terminal (char_decorator_terminal const &that)
 Copy constructor. More...
 
subactor_type const & get_subactor () const
 
impl_type const & get_impl () const
 
template<typename ContextT >
result_type operator() (ContextT const &ctx)
 Invokation operator. More...
 
template<typename ContextT >
result_type operator() (ContextT const &ctx) const
 Invokation operator. More...
 

Detailed Description

template<typename SubactorT, typename ImplT>
class boost::expressions::char_decorator_terminal< SubactorT, ImplT >

Character decorator terminal class.

This formatter allows to modify strings generated by other formatters on character level. The most obvious application of decorators is replacing a certain set of characters with decorated equivalents to satisfy requirements of text-based sinks.

The char_decorator_terminal class aggregates the formatter being decorated, and a set of string pairs that are used as decorations. All decorations are applied sequentially. The char_decorator_terminal class is a formatter itself, so it can be used to construct more complex formatters, including nesting decorators.

Member Typedef Documentation

template<typename SubactorT , typename ImplT >
typedef void boost::expressions::char_decorator_terminal< SubactorT, ImplT >::_is_boost_log_terminal

Internal typedef for type categorization.

template<typename SubactorT , typename ImplT >
typedef impl_type::char_type boost::expressions::char_decorator_terminal< SubactorT, ImplT >::char_type

Character type.

template<typename SubactorT , typename ImplT >
typedef ImplT boost::expressions::char_decorator_terminal< SubactorT, ImplT >::impl_type

Implementation type.

template<typename SubactorT , typename ImplT >
typedef string_type boost::expressions::char_decorator_terminal< SubactorT, ImplT >::result_type

Result type definition.

template<typename SubactorT , typename ImplT >
typedef basic_formatting_ostream< char_type > boost::expressions::char_decorator_terminal< SubactorT, ImplT >::stream_type

Stream type.

template<typename SubactorT , typename ImplT >
typedef impl_type::string_type boost::expressions::char_decorator_terminal< SubactorT, ImplT >::string_type

String type.

template<typename SubactorT , typename ImplT >
typedef SubactorT boost::expressions::char_decorator_terminal< SubactorT, ImplT >::subactor_type

Adopted actor type.

Constructor & Destructor Documentation

template<typename SubactorT , typename ImplT >
boost::expressions::char_decorator_terminal< SubactorT, ImplT >::char_decorator_terminal ( subactor_type const &  sub,
impl_type const &  impl 
)
inline
template<typename SubactorT , typename ImplT >
boost::expressions::char_decorator_terminal< SubactorT, ImplT >::char_decorator_terminal ( char_decorator_terminal< SubactorT, ImplT > const &  that)
inline

Copy constructor.

Member Function Documentation

template<typename SubactorT , typename ImplT >
impl_type const& boost::expressions::char_decorator_terminal< SubactorT, ImplT >::get_impl ( ) const
inline
Returns
Implementation
template<typename SubactorT , typename ImplT >
subactor_type const& boost::expressions::char_decorator_terminal< SubactorT, ImplT >::get_subactor ( ) const
inline
Returns
Adopted subactor

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