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 for the latest Boost documentation.
PrevUpHomeNext

Class template format_named_scope_terminal

boost::log::expressions::format_named_scope_terminal

Synopsis

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

template<typename FallbackPolicyT, typename CharT> 
class format_named_scope_terminal {
public:
  // types
  typedef attributes::named_scope::value_type   value_type;               // Attribute value type. 
  typedef FallbackPolicyT                       fallback_policy;          // Fallback policy. 
  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 unspecified                           formatter_function_type;  // Formatter function. 
  typedef string_type                           result_type;              // Function result type. 

  // construct/copy/destruct
  template<typename FormatT> 
    format_named_scope_terminal(attribute_name const &, 
                                fallback_policy const &, FormatT const &, 
                                string_type const &, string_type const &, 
                                string_type const &, value_type::size_type, 
                                scope_iteration_direction);
  format_named_scope_terminal(format_named_scope_terminal const &);
  format_named_scope_terminal() = delete;

  // public member functions
  attribute_name get_name() const;
  fallback_policy const  & get_fallback_policy() const;
  formatter_function_type const  & get_formatter_function() const;
  template<typename ContextT> result_type operator()(ContextT const &);
  template<typename ContextT> result_type operator()(ContextT const &) const;
};

Description

Named scope formatter terminal.

format_named_scope_terminal public construct/copy/destruct

  1. template<typename FormatT> 
      format_named_scope_terminal(attribute_name const & name, 
                                  fallback_policy const & fallback, 
                                  FormatT const & element_format, 
                                  string_type const & delimiter, 
                                  string_type const & incomplete_marker, 
                                  string_type const & empty_marker, 
                                  value_type::size_type depth, 
                                  scope_iteration_direction direction);
    Initializing constructor.
  2. format_named_scope_terminal(format_named_scope_terminal const & that);
    Copy constructor.
  3. format_named_scope_terminal() = delete;

format_named_scope_terminal public member functions

  1. attribute_name get_name() const;
    Returns attribute name.
  2. fallback_policy const  & get_fallback_policy() const;
    Returns fallback policy.
  3. formatter_function_type const  & get_formatter_function() const;
    Retruns formatter function.
  4. template<typename ContextT> result_type operator()(ContextT const & ctx);
    Invokation operator.
  5. template<typename ContextT> result_type operator()(ContextT const & ctx) const;
    Invokation operator.

PrevUpHomeNext