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... | |
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.
typedef void boost::expressions::char_decorator_terminal< SubactorT, ImplT >::_is_boost_log_terminal |
Internal typedef for type categorization.
typedef impl_type::char_type boost::expressions::char_decorator_terminal< SubactorT, ImplT >::char_type |
Character type.
typedef ImplT boost::expressions::char_decorator_terminal< SubactorT, ImplT >::impl_type |
Implementation type.
typedef string_type boost::expressions::char_decorator_terminal< SubactorT, ImplT >::result_type |
Result type definition.
typedef basic_formatting_ostream< char_type > boost::expressions::char_decorator_terminal< SubactorT, ImplT >::stream_type |
Stream type.
typedef impl_type::string_type boost::expressions::char_decorator_terminal< SubactorT, ImplT >::string_type |
String type.
typedef SubactorT boost::expressions::char_decorator_terminal< SubactorT, ImplT >::subactor_type |
Adopted actor type.
|
inline |
Initializing constructor.
Referenced by boost::expressions::char_decorator_terminal< SubactorT, ImplT >::operator()().
|
inline |
Copy constructor.
|
inline |
|
inline |
|
inline |
Invokation operator.
References boost::phoenix::actions(), boost::addressof(), boost::phoenix::env(), boost::phoenix::eval(), boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::flush(), boost::phoenix::make_context(), boost::move(), boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::rdbuf(), boost::str(), and boost::detail::type.
|
inline |
Invokation operator.
References boost::phoenix::actions(), boost::addressof(), BOOST_DELETED_FUNCTION, boost::expressions::char_decorator_terminal< SubactorT, ImplT >::char_decorator_terminal(), boost::phoenix::env(), boost::phoenix::eval(), boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::flush(), boost::phoenix::make_context(), boost::move(), boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::rdbuf(), boost::str(), and boost::detail::type.