Records
Functions
-
template <typename T, typename U>void PwEnumToString (T , U )Poison pill that hides any `PwEnumToString` declared in an enclosing
namespace (`pw` or the global namespace) from unqualified lookup, so that
`PwEnumToString` is found only through ADL. Without it, an unrelated overload
such as `PwEnumToString(int)` could be selected for an unscoped enum.
This MUST be a deleted function template that is never viable for a
single-argument call. GCC 10 ignores ADL candidates if unqualified lookup
finds a deleted non-template function (e.g. `void PwEnumToString() =
delete;`), which disables every `PwEnumToString` extension point.
Defined at line 36 of file ../../third_party/pigweed/src/pw_enum/public/pw_enum/to_string.h
-
template <typename T>const char * CallAdlPwEnumToString (T value)Defined at line 48 of file ../../third_party/pigweed/src/pw_enum/public/pw_enum/to_string.h
-
template <typename Lhs, typename Rhs>bool CmpLess (Lhs lhs, Rhs rhs)C++17 equivalent of C++20's std::cmp_less.
Defined at line 87 of file ../../third_party/pigweed/src/pw_enum/public/pw_enum/traits.h
-
template <typename S, typename = std::enable_if_t<is_status_v<S>>>S ConvertToStatus (S status)Generic status pass-through for PW_TRY. Returns the exact status type `S`
without slicing it to StatusBase.
Defined at line 150 of file ../../third_party/pigweed/src/pw_status/public/pw_status/status_base.h
-
template <typename D, auto kOkCode>std::true_type IsStatusDerived (const StatusBase<D, kOkCode> * ) -
std::false_type IsStatusDerived () -
template <typename Enum, typename Integer>bool IsValidInteger (Integer value)Checks whether an integer of arbitrary type is a valid enumerator of `Enum`.
Defined at line 99 of file ../../third_party/pigweed/src/pw_enum/public/pw_enum/traits.h
-
template <typename S>const char * StatusToCheckString (const S & status)Returns a string for a status for use in `PW_CHECK_OK` failure messages.
Status types that do not support `str()` (e.g. those with integer codes)
use a placeholder string.
Defined at line 162 of file ../../third_party/pigweed/src/pw_status/public/pw_status/status_base.h
-
Status ConvertToStatus (StatusWithSize status_with_size)Defined at line 242 of file ../../third_party/pigweed/src/pw_status/public/pw_status/status_with_size.h
-
size_t ConvertToValue (StatusWithSize status_with_size)Defined at line 246 of file ../../third_party/pigweed/src/pw_status/public/pw_status/status_with_size.h
-
StatusWithSize ConvertToStatusWithSize (Status status)Defined at line 250 of file ../../third_party/pigweed/src/pw_status/public/pw_status/status_with_size.h
-
StatusWithSize ConvertToStatusWithSize (StatusWithSize status_with_size)Defined at line 254 of file ../../third_party/pigweed/src/pw_status/public/pw_status/status_with_size.h
-
Status ConvertToStatus (Status status)Converts to pw::Status for use by internal macros like PW_TRY and
PW_CHECK_OK. This accepts pw::Status, the C pw_Status enum, and any other
type that implicitly converts to pw::Status. Custom status types are handled
by the generic ConvertToStatus template in status_base.h.
Defined at line 439 of file ../../third_party/pigweed/src/pw_status/public/pw_status/status.h
Variables
const bool has_adl_enum_to_string_v
Defined at line 39 of file ../../third_party/pigweed/src/pw_enum/public/pw_enum/to_string.h
const bool has_adl_enum_to_string_v
Defined at line 41 of file ../../third_party/pigweed/src/pw_enum/public/pw_enum/to_string.h
const bool kIsInteger
Defined at line 81 of file ../../third_party/pigweed/src/pw_enum/public/pw_enum/traits.h
const bool is_status_v
Defined at line 144 of file ../../third_party/pigweed/src/pw_status/public/pw_status/status_base.h
const bool status_has_str_v
Defined at line 156 of file ../../third_party/pigweed/src/pw_status/public/pw_status/status_base.h