Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Class template wrapped_formatter_terminal

boost::log::expressions::wrapped_formatter_terminal

Synopsis

// In header: <boost/log/expressions/formatters/wrap_formatter.hpp>

template<typename FunT, typename CharT> 
class wrapped_formatter_terminal {
public:
  // types
  typedef CharT                                 char_type;      // Character type. 
  typedef std::basic_string< char_type >        string_type;    // String type. 
  typedef basic_formatting_ostream< char_type > stream_type;    // Formatting stream type. 
  typedef FunT                                  function_type;  // Wrapped function type. 
  typedef string_type                           result_type;    // Formatter result type. 

  // construct/copy/destruct
  explicit wrapped_formatter_terminal(function_type const &);
  wrapped_formatter_terminal(wrapped_formatter_terminal const &);

  // public member functions
  function_type const & get_function() const;
  template<typename ContextT> result_type operator()(ContextT const &);
  template<typename ContextT> result_type operator()(ContextT const &) const;
};

Description

Formatter function wrapper terminal.

wrapped_formatter_terminal public construct/copy/destruct

  1. explicit wrapped_formatter_terminal(function_type const & fun);
    Initializing construction.
  2. wrapped_formatter_terminal(wrapped_formatter_terminal const & that);
    Copy constructor.

wrapped_formatter_terminal public member functions

  1. function_type const & get_function() const;
    Returns the wrapped function.
  2. template<typename ContextT> result_type operator()(ContextT const & ctx);
    Invokation operator.
  3. template<typename ContextT> result_type operator()(ContextT const & ctx) const;
    Invokation operator.

PrevUpHomeNext