...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::log::expressions::format_named_scope_terminal
// 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; };
Named scope formatter terminal.
format_named_scope_terminal
public
construct/copy/destructtemplate<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.
format_named_scope_terminal(format_named_scope_terminal const & that);Copy constructor.
format_named_scope_terminal() = delete;
format_named_scope_terminal
public member functionsattribute_name get_name() const;Returns attribute name.
fallback_policy const & get_fallback_policy() const;Returns fallback policy.
formatter_function_type const & get_formatter_function() const;Retruns formatter function.
template<typename ContextT> result_type operator()(ContextT const & ctx);Invokation operator.
template<typename ContextT> result_type operator()(ContextT const & ctx) const;Invokation operator.