/openbmc/phosphor-virtual-sensor/ |
H A D | thresholds.hpp | 88 template <typename... Args> 89 auto alarmHigh(Args... args) in alarmHigh() 91 return warningAlarmHigh(std::forward<Args>(args)...); in alarmHigh() 94 template <typename... Args> 95 auto alarmLow(Args... args) in alarmLow() 97 return warningAlarmLow(std::forward<Args>(args)...); in alarmLow() 100 template <typename... Args> 101 auto alarmHighSignalAsserted(Args... args) in alarmHighSignalAsserted() 103 return warningHighAlarmAsserted(std::forward<Args>(args)...); in alarmHighSignalAsserted() 106 template <typename... Args> [all …]
|
/openbmc/bmcweb/http/ |
H A D | logging.hpp | 115 template <LogLevel level, typename... Args> 116 inline void vlog(std::format_string<Args...>&& format, Args&&... args, in vlog() 140 std::format(std::move(format), std::forward<Args>(args)...); in vlog() 155 template <typename... Args> 159 BMCWEB_LOG_CRITICAL(std::format_string<Args...> format, Args&&... args, in BMCWEB_LOG_CRITICAL() 163 crow::vlog<crow::LogLevel::Critical, Args...>( in BMCWEB_LOG_CRITICAL() 164 std::move(format), std::forward<Args>(args)..., loc); in BMCWEB_LOG_CRITICAL() 168 template <typename... Args> 172 BMCWEB_LOG_ERROR(std::format_string<Args...> format, Args&&... args, in BMCWEB_LOG_ERROR() 176 crow::vlog<crow::LogLevel::Error, Args...>( in BMCWEB_LOG_ERROR() [all …]
|
/openbmc/sdbusplus/include/sdbusplus/message/ |
H A D | types.hpp | 39 template <typename... Args> 47 template <typename... Args> 68 template <typename... Args> 69 struct downcast_members<std::pair<Args...>> 72 char, std::remove_cv_t<std::remove_reference_t<Args>>>...>; 75 template <typename... Args> 76 struct downcast_members<std::tuple<Args...>> 79 char, std::remove_cv_t<std::remove_reference_t<Args>>>...>; 158 template <typename T, typename... Args> 177 template <typename... Args> [all …]
|
H A D | append.hpp | 41 template <typename... Args> 42 void append(sdbusplus::SdBusInterface* intf, sd_bus_message* m, Args&&... args); 91 template <typename... Args> 92 struct can_append_multiple<std::tuple<Args...>> : std::false_type 95 template <typename... Args> 96 struct can_append_multiple<std::variant<Args...>> : std::false_type 99 template <typename... Args> 101 can_append_multiple<Args...>::value; 305 template <typename... Args> 306 struct append_single<std::tuple<Args...>> [all …]
|
H A D | read.hpp | 39 template <typename... Args> 40 void read(sdbusplus::SdBusInterface* intf, sd_bus_message* m, Args&&... args); 94 template <typename... Args> 95 struct can_read_multiple<std::tuple<Args...>> : std::false_type 98 template <typename... Args> 99 struct can_read_multiple<std::variant<Args...>> : std::false_type 102 template <typename... Args> 103 inline constexpr bool can_read_multiple_v = can_read_multiple<Args...>::value; 334 template <typename... Args> 335 struct read_single<std::variant<Args...>> [all …]
|
/openbmc/sdbusplus/include/sdbusplus/server/ |
H A D | object.hpp | 21 template <class... Args> 38 template <class... Args> 40 details::compose<Args...>, 78 details::compose<Args...>(bus, path), in object() 132 details::compose<Args...>::maybe_emit_iface_added(); in check_action() 152 template <class... Args> 153 using object_t = object::object<Args...>; 169 template <class... Args> 170 struct compose_inherit<object<Args...>> 173 using type = compose<Args...>; [all …]
|
/openbmc/bmcweb/http/routing/ |
H A D | taggedrule.hpp | 18 template <typename... Args> 21 public RuleParameterTraits<TaggedRule<Args...>> 24 using self_t = TaggedRule<Args...>; 41 std::shared_ptr<bmcweb::AsyncResp>&, Args...>, in operator ()() 47 Args...>>, in operator ()() 57 if constexpr (sizeof...(Args) == 0) in handle() 61 else if constexpr (sizeof...(Args) == 1) in handle() 65 else if constexpr (sizeof...(Args) == 2) in handle() 69 else if constexpr (sizeof...(Args) == 3) in handle() 73 else if constexpr (sizeof...(Args) == 4) in handle() [all …]
|
/openbmc/obmc-ikvm/ |
H A D | ikvm_args.hpp | 11 class Args class 43 Args(int argc, char* argv[]); 44 ~Args() = default; 45 Args(const Args&) = default; 46 Args& operator=(const Args&) = default; 47 Args(Args&&) = default; 48 Args& operator=(Args&&) = default;
|
/openbmc/phosphor-dbus-monitor/src/ |
H A D | elog.hpp | 73 template <typename T, typename... Args> 76 static void op(Args&&... args) in op() 78 phosphor::logging::report<T>(std::forward<Args>(args)...); in op() 92 template <typename T, typename... Args> 101 explicit Elog(Args&&... arguments) : in Elog() 102 ElogBase(), args(std::forward<Args>(arguments)...) in Elog() 109 std::apply(detail::CallElog<T, Args...>::op, std::tuple_cat(args)); in log() 111 std::tuple<Args...> args; 215 template <typename T, typename... Args> 216 auto makeElog(Args&&... arguments) in makeElog() [all …]
|
H A D | sdbusplus.hpp | 41 template <typename... Args> 44 const std::string& interface, const std::string& method, Args&&... args) in callMethodNoReply() 48 reqMsg.append(std::forward<Args>(args)...); in callMethodNoReply() 57 template <typename... Args> 60 const std::string& method, Args&&... args) in callMethod() 64 reqMsg.append(std::forward<Args>(args)...); in callMethod() 69 template <typename Ret, typename... Args> 72 const std::string& interface, const std::string& method, Args&&... args) in callMethodAndRead() 75 sdbusplus::message_t respMsg = callMethod<Args...>( in callMethodAndRead() 76 busName, path, interface, method, std::forward<Args>(args)...); in callMethodAndRead()
|
/openbmc/sdbusplus/include/sdbusplus/ |
H A D | unpack_properties.hpp | 99 typename... Args> 104 Args&&... args) noexcept(noexcept(onErrorCallback(sdbusplus:: in readProperties() 113 if constexpr (sizeof...(Args) > 0) 116 container, std::forward<Args>(args)...); 122 template <typename OnErrorCallback, typename VariantType, typename... Args> 126 Args&&... args) noexcept(noexcept(onErrorCallback(sdbusplus:: in unpackPropertiesCommon() 131 sizeof...(Args) % 2 == 0, 136 std::forward<Args>(args)...); 141 template <typename VariantType, typename... Args> 144 Args&&... args) in unpackProperties() [all …]
|
H A D | message.hpp | 141 template <typename... Args> 142 void append(Args&&... args) in append() 145 std::forward<Args>(args)...); in append() 153 template <typename... Args> 154 void read(Args&&... args) in read() 157 std::forward<Args>(args)...); in read() 165 template <typename... Args> 168 if constexpr (sizeof...(Args) == 0) in unpack() 173 else if constexpr (sizeof...(Args) == 1 && in unpack() 175 std::tuple_element_t<0, std::tuple<Args...>>>) in unpack() [all …]
|
/openbmc/boost-dbus/include/dbus/ |
H A D | message.hpp | 132 template <typename Element, typename... Args> 133 bool pack(const Element& e, const Args&... args) { in pack() 228 template <typename... Args> 229 bool pack(const Args&... args) { in pack() 241 template <typename Element, typename... Args> 242 bool unpack(Element& e, Args&... args) { in unpack() 453 template <typename... Args> 454 bool unpack(Args&... args) { in unpack() 481 template <class R, class... Args> 482 struct function_traits<R(Args...)> { [all …]
|
/openbmc/phosphor-logging/lib/include/phosphor-logging/ |
H A D | elog.hpp | 167 template <typename T, typename... Args> 168 [[noreturn]] void elog(Args... i_args) in elog() 180 std::tuple<details::deduce_entry_type_t<Args>...>>, in elog() 184 T::errDesc, details::deduce_entry_type<Args>{i_args}.get()...); in elog() 198 template <typename T, typename... Args> 199 uint32_t report(Args... i_args) in report() 211 std::tuple<details::deduce_entry_type_t<Args>...>>, in report() 215 T::errDesc, details::deduce_entry_type<Args>{i_args}.get()...); in report() 230 template <typename T, typename... Args> 231 uint32_t report(Entry::Level level, Args... i_args) in report() [all …]
|
/openbmc/phosphor-dbus-monitor/mslverify/ |
H A D | util.hpp | 36 template <typename... Args> 39 const std::string& method, Args&&... args) in callMethod() 43 reqMsg.append(std::forward<Args>(args)...); in callMethod() 57 template <typename... Args> 60 Args&&... args) in callMethod() 63 std::forward<Args>(args)...); in callMethod() 67 template <typename Ret, typename... Args> 71 const std::string& method, Args&&... args) in callMethodAndRead() 73 ::sdbusplus::message_t respMsg = callMethod<Args...>( in callMethodAndRead() 74 bus, busName, path, interface, method, std::forward<Args>(args)...); in callMethodAndRead() [all …]
|
/openbmc/phosphor-host-ipmid/include/ipmid/ |
H A D | utility.hpp | 132 template <typename... Args> 135 template <typename... Args> 136 struct DecayTuple<std::tuple<Args...>> 138 using type = std::tuple<typename std::decay<Args>::type...>; 168 template <typename... Args> 169 struct DowncastMembers<std::pair<Args...>> 172 char, std::remove_cv_t<std::remove_reference_t<Args>>>...>; 175 template <typename... Args> 176 struct DowncastMembers<std::tuple<Args...>> 179 char, std::remove_cv_t<std::remove_reference_t<Args>>>...>;
|
H A D | message.hpp | 256 template <typename Arg, typename... Args> 257 int pack(Arg&& arg, Args&&... args) in pack() 265 packRet = pack(std::forward<Args>(args)...); in pack() 434 template <typename Arg, typename... Args> 435 int unpack(Arg&& arg, Args&&... args) in unpack() 444 return unpack(std::forward<Args>(args)...); in unpack() 527 template <typename... Args> 528 int pack(Args&&... args) in pack() 530 return payload.pack(std::forward<Args>(args)...); in pack() 608 template <typename... Args> [all …]
|
/openbmc/telemetry/src/utils/ |
H A D | variant_utils.hpp | 11 template <class T, class... Args> 12 auto removeMonostate(std::variant<T, Args...>) -> std::variant<T, Args...>; 14 template <class... Args> 15 auto removeMonostate(std::variant<std::monostate, Args...>) 16 -> std::variant<Args...>;
|
H A D | labeled_tuple.hpp | 143 template <class... Args, class... Labels> 144 struct LabeledTuple<std::tuple<Args...>, Labels...> 146 static_assert(sizeof...(Args) == sizeof...(Labels)); 148 using tuple_type = std::tuple<Args...>; 155 LabeledTuple(Args... args) : value(std::move(args)...) {} in LabeledTuple() 163 to_json_all(j, std::make_index_sequence<sizeof...(Args)>()); in to_json() 174 from_json_all(j, std::make_index_sequence<sizeof...(Args)>()); in from_json() 280 static_assert(Idx + 1 < sizeof...(Args), in find_item() 289 template <class... Args, class... Labels> 291 const LabeledTuple<std::tuple<Args...>, Labels...>& tuple) in to_json() argument [all …]
|
H A D | circular_vector.hpp | 12 template <class... Args> 13 void emplace(Args&&... args) in emplace() 21 vec.at(idx) = T(std::forward<Args>(args)...); in emplace() 25 vec.emplace_back(std::forward<Args>(args)...); in emplace()
|
/openbmc/sdbusplus/include/sdbusplus/sdbuspp_support/ |
H A D | server.hpp | 26 template <typename... Args, typename Return> 28 sd_bus_error* error, std::function<Return(Args&&...)> f) in property_callback() 39 std::tuple<Args...> arg{}; in property_callback() 40 std::apply([&](Args&... a) { (m.read(a), ...); }, arg); in property_callback() 82 template <bool multi_return = false, typename... Args, typename Return> 84 sd_bus_error* error, std::function<Return(Args&&...)> f) in method_callback() 95 std::tuple<Args...> arg{}; in method_callback() 96 std::apply([&](Args&... a) { (m.read(a), ...); }, arg); in method_callback()
|
/openbmc/phosphor-fan-presence/ |
H A D | sdbusplus.hpp | 120 template <typename... Args> 124 const std::string& method, Args&&... args) in callMethod() 128 reqMsg.append(std::forward<Args>(args)...); in callMethod() 145 template <typename... Args> 148 const std::string& method, Args&&... args) in callMethod() 151 std::forward<Args>(args)...); in callMethod() 155 template <typename Ret, typename... Args> 159 const std::string& method, Args&&... args) in callMethodAndRead() 161 sdbusplus::message_t respMsg = callMethod<Args...>( in callMethodAndRead() 162 bus, busName, path, interface, method, std::forward<Args>(args)...); in callMethodAndRead() [all …]
|
/openbmc/sdbusplus/include/sdbusplus/async/ |
H A D | server.hpp | 101 template <typename Tag, typename Instance, typename... Args> 102 concept has_method_nomsg = requires(Instance& i, Args&&... a) { 103 i.method_call(Tag{}, std::forward<Args>(a)...); 107 template <typename Tag, typename Instance, typename... Args> 109 requires(Instance& i, sdbusplus::message_t& m, Args&&... a) { 110 i.method_call(Tag{}, m, std::forward<Args>(a)...); 114 template <typename Tag, typename Instance, typename... Args> 115 concept has_method = has_method_nomsg<Tag, Instance, Args...> || 116 has_method_msg<Tag, Instance, Args...>;
|
/openbmc/sdbusplus/include/sdbusplus/utility/ |
H A D | type_traits.hpp | 52 template <std::size_t N, typename... Args> 53 using strip_first_n_args_t = typename strip_first_n_args<N, Args...>::type; 76 template <typename... Args> 77 using get_first_arg_t = typename get_first_arg<Args...>::type; 84 template <typename... Args> 85 struct decay_tuple<std::tuple<Args...>> 87 using type = std::tuple<typename std::decay<Args>::type...>; 90 template <typename... Args> 91 using decay_tuple_t = typename decay_tuple<Args...>::type;
|
/openbmc/phosphor-networkd/src/ |
H A D | config_parser.hpp | 35 template <typename... Args> 36 constexpr Checked(Args&&... args) : t(conCheck(std::forward<Args>(args)...)) in Checked() 39 template <typename... Args> 40 constexpr Checked(unchecked, Args&&... args) : in Checked() 41 t(std::forward<Args>(args)...) in Checked() 69 template <typename... Args> 70 static constexpr T conCheck(Args&&... args) in conCheck() 72 T t(std::forward<Args>(args)...); in conCheck()
|