![]() |
boost::log::expressions::channel_severity_filter_terminal
// In header: <boost/log/expressions/predicates/channel_severity_filter.hpp> template<typename ChannelT, typename SeverityT, typename ChannelFallbackT = fallback_to_none, typename SeverityFallbackT = fallback_to_none, typename ChannelOrderT = less, typename SeverityCompareT = greater_equal, typename AllocatorT = use_std_allocator> class channel_severity_filter_terminal { public: // types typedef bool result_type; // Function result type. typedef ChannelT channel_value_type; // Channel attribute value type. typedef ChannelFallbackT channel_fallback_policy; // Channel fallback policy. typedef SeverityT severity_value_type; // Severity level attribute value type. typedef SeverityFallbackT severity_fallback_policy; // Severity level fallback policy. // member classes/structs/unions // Channel visitor. template<typename ArgT> struct channel_visitor { // types typedef void result_type; // public member functions channel_visitor(channel_severity_filter_terminal const &, ArgT, bool &); result_type operator()(channel_value_type const &) const; }; // Severity level visitor. struct severity_visitor { // types typedef void result_type; // public member functions severity_visitor(channel_severity_filter_terminal const &, severity_value_type const &, bool &); result_type operator()(severity_value_type const &) const; }; // public member functions channel_severity_filter_terminal(attribute_name const &, attribute_name const &, channel_fallback_policy const & = channel_fallback_policy(), severity_fallback_policy const & = severity_fallback_policy(), ChannelOrderT const & = ChannelOrderT(), SeverityCompareT const & = SeverityCompareT()); void add(channel_value_type const &, severity_value_type const &); void set_default(bool); template<typename ContextT> result_type operator()(ContextT const &) const; // private member functions template<typename ArgT> void visit_channel(channel_value_type const &, ArgT const &, bool &) const; void visit_severity(severity_value_type const &, severity_value_type const &, bool &) const; };
channel_severity_filter_terminal
public member functionschannel_severity_filter_terminal(attribute_name const & channel_name, attribute_name const & severity_name, channel_fallback_policy const & channel_fallback = channel_fallback_policy(), severity_fallback_policy const & severity_fallback = severity_fallback_policy(), ChannelOrderT const & channel_order = ChannelOrderT(), SeverityCompareT const & severity_compare = SeverityCompareT());Initializing constructor.
void add(channel_value_type const & channel, severity_value_type const & severity);Adds a new element to the mapping.
void set_default(bool def);Sets the default result of the predicate.
template<typename ContextT> result_type operator()(ContextT const & ctx) const;Invokation operator.