diff options
author | ifsmirnov <ifsmirnov@yandex-team.ru> | 2022-02-10 16:50:47 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:47 +0300 |
commit | ad765dc0fb7b0cb321bc9f6ec29aaeefe70019af (patch) | |
tree | 055f4a12781f86fdcbb52fc251c7bd71506c2825 /library/cpp/yt/misc/enum.h | |
parent | 1fc0bdffa16f1d19af9025338185cc8533b09606 (diff) | |
download | ydb-ad765dc0fb7b0cb321bc9f6ec29aaeefe70019af.tar.gz |
Restoring authorship annotation for <ifsmirnov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/yt/misc/enum.h')
-rw-r--r-- | library/cpp/yt/misc/enum.h | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/library/cpp/yt/misc/enum.h b/library/cpp/yt/misc/enum.h index 894364aa43b..3cd40522992 100644 --- a/library/cpp/yt/misc/enum.h +++ b/library/cpp/yt/misc/enum.h @@ -111,12 +111,12 @@ struct TEnumTraits<T, true> ENUM__MINMAX \ ENUM__VALIDATE_UNIQUE(name) \ ENUM__END_TRAITS(name) - -//! Defines a smart enumeration with a specific underlying type. -//! Duplicate enumeration values are allowed. -#define DEFINE_AMBIGUOUS_ENUM_WITH_UNDERLYING_TYPE(name, underlyingType, seq) \ - ENUM__CLASS(name, underlyingType, seq) \ - ENUM__BEGIN_TRAITS(name, underlyingType, false, false, seq) \ + +//! Defines a smart enumeration with a specific underlying type. +//! Duplicate enumeration values are allowed. +#define DEFINE_AMBIGUOUS_ENUM_WITH_UNDERLYING_TYPE(name, underlyingType, seq) \ + ENUM__CLASS(name, underlyingType, seq) \ + ENUM__BEGIN_TRAITS(name, underlyingType, false, false, seq) \ ENUM__MINMAX \ ENUM__END_TRAITS(name) @@ -138,20 +138,20 @@ struct TEnumTraits<T, true> ENUM__END_TRAITS(name) \ ENUM__BITWISE_OPS(name) -//! Defines a smart enumeration with a specific underlying type. -//! Duplicate enumeration values are allowed. -/*! - * \param name Enumeration name. - * \param seq Enumeration domain encoded as a <em>sequence</em>. - * \param underlyingType Underlying type. - */ -#define DEFINE_AMBIGUOUS_BIT_ENUM_WITH_UNDERLYING_TYPE(name, underlyingType, seq) \ - ENUM__CLASS(name, underlyingType, seq) \ - ENUM__BEGIN_TRAITS(name, underlyingType, true, false, seq) \ +//! Defines a smart enumeration with a specific underlying type. +//! Duplicate enumeration values are allowed. +/*! + * \param name Enumeration name. + * \param seq Enumeration domain encoded as a <em>sequence</em>. + * \param underlyingType Underlying type. + */ +#define DEFINE_AMBIGUOUS_BIT_ENUM_WITH_UNDERLYING_TYPE(name, underlyingType, seq) \ + ENUM__CLASS(name, underlyingType, seq) \ + ENUM__BEGIN_TRAITS(name, underlyingType, true, false, seq) \ ENUM__DECOMPOSE \ - ENUM__END_TRAITS(name) \ - ENUM__BITWISE_OPS(name) - + ENUM__END_TRAITS(name) \ + ENUM__BITWISE_OPS(name) + //! Defines a smart enumeration with the default |unsigned| underlying type. /*! * \param name Enumeration name. @@ -171,13 +171,13 @@ struct TEnumTraits<T, true> ENUM__BEGIN_TRAITS(name, underlyingType, false, true, seq) \ ENUM__MINMAX \ ENUM__VALIDATE_UNIQUE(name) \ - ENUM__END_TRAITS(name) \ - -//! Defines a smart enumeration with a specific underlying type and IsStringSerializable attribute. -//! Duplicate enumeration values are allowed. -#define DEFINE_AMBIGUOUS_STRING_SERIALIZABLE_ENUM_WITH_UNDERLYING_TYPE(name, underlyingType, seq) \ - ENUM__CLASS(name, underlyingType, seq) \ - ENUM__BEGIN_TRAITS(name, underlyingType, false, true, seq) \ + ENUM__END_TRAITS(name) \ + +//! Defines a smart enumeration with a specific underlying type and IsStringSerializable attribute. +//! Duplicate enumeration values are allowed. +#define DEFINE_AMBIGUOUS_STRING_SERIALIZABLE_ENUM_WITH_UNDERLYING_TYPE(name, underlyingType, seq) \ + ENUM__CLASS(name, underlyingType, seq) \ + ENUM__BEGIN_TRAITS(name, underlyingType, false, true, seq) \ ENUM__MINMAX \ ENUM__END_TRAITS(name) |