/dports/net-p2p/libtorrent-rasterbar/libtorrent-rasterbar-1.2.14/include/libtorrent/ |
H A D | units.hpp | 48 template<typename UnderlyingType, typename Tag 52 using underlying_type = UnderlyingType; 59 constexpr strong_typedef(UnderlyingType val) : m_val(val) {} in strong_typedef() 60 constexpr operator UnderlyingType() const { return m_val; } in operator UnderlyingType() 87 { m_val += static_cast<UnderlyingType>(rhs); return *this; } in operator +=() 94 UnderlyingType m_val; 148 template<typename UnderlyingType, typename Tag> 149 …eric_limits<libtorrent::aux::strong_typedef<UnderlyingType, Tag>> : public std::numeric_limits<Und… 161 template<typename UnderlyingType, typename Tag> 162 struct hash<libtorrent::aux::strong_typedef<UnderlyingType, Tag>> : std::hash<UnderlyingType> [all …]
|
H A D | flags.hpp | 53 template<typename UnderlyingType, typename Tag 54 , typename Cond = typename std::enable_if<std::is_integral<UnderlyingType>::value>::type> 57 static_assert(std::is_unsigned<UnderlyingType>::value 60 using underlying_type = UnderlyingType; 65 explicit constexpr bitfield_flag(UnderlyingType const val) noexcept : m_val(val) {} in bitfield_flag() 66 … bitfield_flag(bit_t const bit) noexcept : m_val(static_cast<UnderlyingType>(UnderlyingType{1} << … in bitfield_flag() 68 explicit constexpr operator UnderlyingType() const noexcept { return m_val; } in operator UnderlyingType() 70 constexpr operator UnderlyingType() const noexcept { return m_val; } in operator UnderlyingType() 76 return bitfield_flag(static_cast<UnderlyingType>(~UnderlyingType{0})); in all() 123 return bitfield_flag(static_cast<UnderlyingType>(~m_val)); in operator ~() [all …]
|
/dports/net-p2p/py-libtorrent-rasterbar/libtorrent-1.2.13/include/libtorrent/ |
H A D | units.hpp | 48 template<typename UnderlyingType, typename Tag 52 using underlying_type = UnderlyingType; 59 constexpr strong_typedef(UnderlyingType val) : m_val(val) {} in strong_typedef() 60 constexpr operator UnderlyingType() const { return m_val; } in operator UnderlyingType() 87 { m_val += static_cast<UnderlyingType>(rhs); return *this; } in operator +=() 94 UnderlyingType m_val; 148 template<typename UnderlyingType, typename Tag> 149 …eric_limits<libtorrent::aux::strong_typedef<UnderlyingType, Tag>> : public std::numeric_limits<Und… 161 template<typename UnderlyingType, typename Tag> 162 struct hash<libtorrent::aux::strong_typedef<UnderlyingType, Tag>> : std::hash<UnderlyingType> [all …]
|
H A D | flags.hpp | 53 template<typename UnderlyingType, typename Tag 54 , typename Cond = typename std::enable_if<std::is_integral<UnderlyingType>::value>::type> 57 static_assert(std::is_unsigned<UnderlyingType>::value 60 using underlying_type = UnderlyingType; 65 explicit constexpr bitfield_flag(UnderlyingType const val) noexcept : m_val(val) {} in bitfield_flag() 66 … bitfield_flag(bit_t const bit) noexcept : m_val(static_cast<UnderlyingType>(UnderlyingType{1} << … in bitfield_flag() 68 explicit constexpr operator UnderlyingType() const noexcept { return m_val; } in operator UnderlyingType() 70 constexpr operator UnderlyingType() const noexcept { return m_val; } in operator UnderlyingType() 76 return bitfield_flag(static_cast<UnderlyingType>(~UnderlyingType{0})); in all() 123 return bitfield_flag(static_cast<UnderlyingType>(~m_val)); in operator ~() [all …]
|
/dports/devel/folly/folly-2021.12.27.00/folly/experimental/ |
H A D | Bits.h | 56 typedef T UnderlyingType; 73 typedef T UnderlyingType; 96 typedef T UnderlyingType; 118 typedef typename Traits::UnderlyingType UnderlyingType; 190 static constexpr UnderlyingType zero = UnderlyingType(0); 191 static constexpr UnderlyingType one = UnderlyingType(1); 233 UnderlyingType thisBlock = UnderlyingType(value & ones(countInThisBlock)); 234 UnderlyingType nextBlock = UnderlyingType(value >> countInThisBlock); 260 -> UnderlyingType { 268 UnderlyingType ret; [all …]
|
/dports/dns/flamethrower/flamethrower-0.11.0/3rd/uvw/uvw/ |
H A D | underlying_type.hpp | 19 class UnderlyingType { class 21 friend class UnderlyingType; 41 auto get(UnderlyingType<P...> &other) noexcept { in get() 52 auto get(const UnderlyingType<P...> &other) const noexcept { in get() 57 explicit UnderlyingType(ConstructorAccess, std::shared_ptr<Loop> ref) noexcept in UnderlyingType() function in uvw::UnderlyingType 61 UnderlyingType(const UnderlyingType &) = delete; 62 UnderlyingType(UnderlyingType &&) = delete; 64 virtual ~UnderlyingType() { in ~UnderlyingType() 65 static_assert(std::is_base_of<UnderlyingType<T, U>, T>::value, "!"); in ~UnderlyingType() 68 UnderlyingType & operator=(const UnderlyingType &) = delete; [all …]
|
H A D | thread.hpp | 26 class Thread final: public UnderlyingType<Thread, uv_thread_t> { 71 : UnderlyingType{ca, std::move(ref)} in ThreadLocalStorage() 73 uv_key_create(UnderlyingType::get()); 77 uv_key_delete(UnderlyingType::get()); in ~ThreadLocalStorage() 87 return uv_key_set(UnderlyingType::get(), value); in set() 100 using UnderlyingType::UnderlyingType; 117 : UnderlyingType{ca, std::move(ref)} in Mutex() 147 : UnderlyingType{ca, std::move(ref)} in RWLock() 185 : UnderlyingType{ca, std::move(ref)} in Semaphore() 211 : UnderlyingType{ca, std::move(ref)} in Condition() [all …]
|
/dports/net/astron/Astron-c8ba982/src/deps/uvw/uvw/ |
H A D | underlying_type.hpp | 19 class UnderlyingType { class 21 friend class UnderlyingType; 41 auto get(UnderlyingType<P...> &other) noexcept { in get() 52 auto get(const UnderlyingType<P...> &other) const noexcept { in get() 57 explicit UnderlyingType(ConstructorAccess, std::shared_ptr<Loop> ref) noexcept in UnderlyingType() function in uvw::UnderlyingType 61 UnderlyingType(const UnderlyingType &) = delete; 62 UnderlyingType(UnderlyingType &&) = delete; 64 virtual ~UnderlyingType() { in ~UnderlyingType() 65 static_assert(std::is_base_of<UnderlyingType<T, U>, T>::value, "!"); in ~UnderlyingType() 68 UnderlyingType & operator=(const UnderlyingType &) = delete; [all …]
|
H A D | thread.hpp | 26 class Thread final: public UnderlyingType<Thread, uv_thread_t> { 71 : UnderlyingType{ca, std::move(ref)} in ThreadLocalStorage() 73 uv_key_create(UnderlyingType::get()); 77 uv_key_delete(UnderlyingType::get()); in ~ThreadLocalStorage() 87 return uv_key_set(UnderlyingType::get(), value); in set() 100 using UnderlyingType::UnderlyingType; 117 : UnderlyingType{ca, std::move(ref)} in Mutex() 147 : UnderlyingType{ca, std::move(ref)} in RWLock() 185 : UnderlyingType{ca, std::move(ref)} in Semaphore() 211 : UnderlyingType{ca, std::move(ref)} in Condition() [all …]
|
/dports/editors/kakoune/kakoune-2021.11.08/src/ |
H A D | flags.hh | 15 using UnderlyingType = std::underlying_type_t<Flags>; typedef 26 return (Flags)((UnderlyingType<Flags>) lhs | (UnderlyingType<Flags>) rhs); in operator |() 32 (UnderlyingType<Flags>&) lhs |= (UnderlyingType<Flags>) rhs; in operator |=() 40 constexpr operator bool() const { return (UnderlyingType<Flags>)value; } in operator bool() 42 constexpr operator UnderlyingType<Flags>() const { return (UnderlyingType<Flags>)value; } in operator UnderlyingType<Flags>() 51 return { (Flags)((UnderlyingType<Flags>) lhs & (UnderlyingType<Flags>) rhs) }; in operator &() 57 (UnderlyingType<Flags>&) lhs &= (UnderlyingType<Flags>) rhs; in operator &=() 64 return (Flags)(~(UnderlyingType<Flags>)lhs); in operator ~() 70 return (Flags)((UnderlyingType<Flags>) lhs ^ (UnderlyingType<Flags>) rhs); in operator ^() 76 (UnderlyingType<Flags>&) lhs ^= (UnderlyingType<Flags>) rhs; in operator ^=()
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/base/util/type_safety/ |
H A D | strong_alias.h | 68 template <typename TagType, typename UnderlyingType> 72 constexpr explicit StrongAlias(const UnderlyingType& v) : value_(v) {} in StrongAlias() 73 constexpr explicit StrongAlias(UnderlyingType&& v) noexcept in StrongAlias() 76 constexpr UnderlyingType& value() & { return value_; } in value() 77 constexpr const UnderlyingType& value() const& { return value_; } in value() 78 constexpr UnderlyingType&& value() && { return std::move(value_); } in value() 81 constexpr explicit operator UnderlyingType() const { return value_; } in UnderlyingType() function 107 return std::hash<UnderlyingType>()(id.value()); in operator() 112 UnderlyingType value_; 116 template <typename TagType, typename UnderlyingType> [all …]
|
/dports/www/firefox/firefox-99.0/mozglue/baseprofiler/public/ |
H A D | ProportionValue.h | 24 using UnderlyingType = uint32_t; 44 : mIntegralValue(UnderlyingType(std::clamp(aValue, 0.0, 1.0) * scMaxD)) {} in ProportionValue() 56 [[nodiscard]] constexpr UnderlyingType ToUnderlyingType() const { in ToUnderlyingType() 62 UnderlyingType aUnderlyingType) { in FromUnderlyingType() 138 static_assert(sizeof(DoublePrecisionType) >= 2 * sizeof(UnderlyingType)); 145 : (UnderlyingType((DoublePrecisionType(mIntegralValue) * 184 constexpr ProportionValue(UnderlyingType aIntegralValue, Internal) in ProportionValue() 189 static constexpr unsigned scFractionalBits = sizeof(UnderlyingType) * 8 - 1; 191 static constexpr UnderlyingType scMaxU = UnderlyingType(1u) 200 static constexpr UnderlyingType scInvalidU = ~UnderlyingType(0u); [all …]
|
/dports/net-p2p/qbittorrent/qbittorrent-4.3.9/src/base/ |
H A D | digest32.h | 41 using UnderlyingType = lt::digest32<N>; 46 Digest32(const UnderlyingType &nativeDigest) in Digest32() 56 return UnderlyingType::size(); in length() 64 operator UnderlyingType() const in UnderlyingType() function 93 UnderlyingType m_nativeDigest; 100 return (static_cast<typename Digest32<N>::UnderlyingType>(left) 101 == static_cast<typename Digest32<N>::UnderlyingType>(right)); 113 return static_cast<typename Digest32<N>::UnderlyingType>(left) 114 < static_cast<typename Digest32<N>::UnderlyingType>(right); 120 return ::qHash(std::hash<typename Digest32<N>::UnderlyingType>()(key), seed); in qHash()
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/base/util/type_safety/ |
H A D | strong_alias.h | 66 template <typename TagType, typename UnderlyingType> 70 explicit StrongAlias(const UnderlyingType& v) : value_(v) {} in StrongAlias() 71 explicit StrongAlias(UnderlyingType&& v) : value_(std::move(v)) {} in StrongAlias() 79 const UnderlyingType& value() const { return value_; } in value() 80 explicit operator UnderlyingType() const { return value_; } in UnderlyingType() function 106 return std::hash<UnderlyingType>()(id.value()); in operator() 111 UnderlyingType value_; 115 template <typename TagType, typename UnderlyingType> 117 const StrongAlias<TagType, UnderlyingType>& alias) {
|
/dports/lang/mono/mono-5.10.1.57/mcs/class/System.Xaml/System.Xaml/ |
H A D | XamlType.cs | 239 public Type UnderlyingType { property in System.Xaml.XamlType 274 UnderlyingType == other.UnderlyingType && in Equals() 287 if (UnderlyingType != null) in GetHashCode() 378 if (UnderlyingType == null) in LookupAllAttachableMembers() 449 if (UnderlyingType == null) in LookupAllMembers() 517 if (UnderlyingType == null) in LookupBaseType() 528 if (UnderlyingType == null) in LookupCollectionKind() 544 if (UnderlyingType == null) in LookupConstructionRequiresArguments() 593 return UnderlyingType; in LookupCustomAttributeProvider() 616 if (UnderlyingType == null) in LookupIsConstructible() [all …]
|
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/XamlBuildTask/Microsoft/Build/Tasks/Xaml/ |
H A D | AttributeParameterData.cs | 33 if (textValue == null && type.UnderlyingType.IsValueType) in AttributeParameterData() 35 … throw FxTrace.Exception.Argument("value", SR.AttributeValueNotNullable(type.UnderlyingType)); in AttributeParameterData() 49 if (value == null && type.UnderlyingType.IsValueType) in AttributeParameterData() 51 … throw FxTrace.Exception.Argument("value", SR.AttributeValueNotNullable(type.UnderlyingType)); in AttributeParameterData() 53 if (value != null && !type.UnderlyingType.IsAssignableFrom(value.GetType())) in AttributeParameterData() 55 …tion.Argument("value", SR.AttributeValueNotAssignableToType(value.GetType(), type.UnderlyingType)); in AttributeParameterData() 61 if (type.UnderlyingType.IsArray) in AttributeParameterData() 64 … XamlType elementType = type.SchemaContext.GetXamlType(type.UnderlyingType.GetElementType()); in AttributeParameterData() 83 if (!type.UnderlyingType.IsArray) in AttributeParameterData() 153 if (!AttributeData.IsSupportedParameterType(type.UnderlyingType)) in ValidateType()
|
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/mscorlib/system/diagnostics/eventing/TraceLogging/ |
H A D | EnumHelper.cs | 17 internal static class EnumHelper<UnderlyingType> 19 private delegate UnderlyingType Transformer<ValueType>(ValueType value); in Transformer() 22 Statics.GetDeclaredStaticMethod(typeof(EnumHelper<UnderlyingType>), "Identity"); 24 public static UnderlyingType Cast<ValueType>(ValueType value) in Cast() 29 internal static UnderlyingType Identity(UnderlyingType value) in Identity()
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Private.DataContractSerialization/src/System/Runtime/Serialization/ |
H A D | XmlDataContract.cs | 122 return () => ReflectionCreateXmlSerializable(this.UnderlyingType); 133 return () => ReflectionCreateXmlSerializable(this.UnderlyingType); 144 …public override bool IsBuiltInDataContract => UnderlyingType == Globals.TypeOfXmlElement || Underl… 176 …object[] xmlRootAttributes = (UnderlyingType == null) ? null : UnderlyingType.GetCustomAttributes(… in XmlDataContractCriticalHelper() 208 if (!_isKnownTypeAttributeChecked && UnderlyingType != null) 214 … _knownDataContracts = DataContract.ImportKnownTypeAttributes(this.UnderlyingType); 275 Type type = UnderlyingType; in GetConstructor() 290 Type type = this.UnderlyingType; in GenerateCreateXmlSerializableDelegate() 344 ilg.ConvertValue(this.UnderlyingType, Globals.TypeOfIXmlSerializable); in GenerateCreateXmlSerializableDelegate() 356 if (!IsTypeVisible(UnderlyingType)) in RequiresMemberAccessForCreate() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/base/mac/ |
H A D | mach_o.h | 42 using UnderlyingType = std::underlying_type<MachOArchitectures>::type; variable 43 return static_cast<MachOArchitectures>(static_cast<UnderlyingType>(a) & 44 static_cast<UnderlyingType>(b)); 49 using UnderlyingType = std::underlying_type<MachOArchitectures>::type; variable 50 return static_cast<MachOArchitectures>(static_cast<UnderlyingType>(a) | 51 static_cast<UnderlyingType>(b));
|
/dports/lang/spidermonkey60/firefox-60.9.0/gfx/angle/checkout/src/libANGLE/ |
H A D | PackedGLEnums.h | 27 using UnderlyingType = typename std::underlying_type<E>::type; in EnumSize() local 28 return static_cast<UnderlyingType>(E::EnumCount); in EnumSize() 41 using UnderlyingType = typename std::underlying_type<E>::type; 44 EnumIterator(E value) : mValue(static_cast<UnderlyingType>(value)) {} in EnumIterator() 55 UnderlyingType mValue; 71 using UnderlyingType = typename std::underlying_type<E>::type; 113 reference operator[](E n) { return mData[static_cast<UnderlyingType>(n)]; } 114 const_reference operator[](E n) const { return mData[static_cast<UnderlyingType>(n)]; } 115 const_reference at(E n) const { return mData.at(static_cast<UnderlyingType>(n)); } in at() 116 reference at(E n) { return mData.at(static_cast<UnderlyingType>(n)); } in at()
|
/dports/lang/mono/mono-5.10.1.57/mcs/class/System.Xaml/System.Xaml.Schema/ |
H A D | XamlTypeInvoker.cs | 54 if (type == null || type.UnderlyingType == null) in ThrowIfUnknown() 78 if (type != null && type.UnderlyingType != null) { in AddToCollection() 81 if (ct.IsAssignableFrom (type.UnderlyingType)) in AddToCollection() 136 return Activator.CreateInstance (type.UnderlyingType, arguments); in CreateInstance() 141 …UnderlyingType == null || type.ItemType == null || type.LookupCollectionKind () == XamlCollectionK… in GetAddMethod() 146 …return type.UnderlyingType == null || type.LookupCollectionKind () == XamlCollectionKind.None ? nu… in GetEnumeratorMethod()
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.ComponentModel.TypeConverter/src/System/ComponentModel/ |
H A D | NullableConverter.cs | 23 UnderlyingType = Nullable.GetUnderlyingType(type); in NullableConverter() 24 if (UnderlyingType == null) in NullableConverter() 29 UnderlyingTypeConverter = TypeDescriptor.GetConverter(UnderlyingType); in NullableConverter() 38 if (sourceType == UnderlyingType) in CanConvertFrom() 57 if (value == null || value.GetType() == UnderlyingType) in ConvertFrom() 80 if (destinationType == UnderlyingType) in CanConvertTo() 104 … if (destinationType == UnderlyingType && value != null && NullableType.IsInstanceOfType(value)) in ConvertTo() 273 public Type UnderlyingType { get; } property in System.ComponentModel.NullableConverter
|
/dports/databases/qt5-sqldrivers-sqlite3/kde-qtbase-5.15.2p263/src/3rdparty/angle/src/libANGLE/ |
H A D | PackedGLEnums.h | 24 using UnderlyingType = typename std::underlying_type<E>::type; 27 EnumIterator(E value) : mValue(static_cast<UnderlyingType>(value)) {} in EnumIterator() 38 UnderlyingType mValue; 52 using UnderlyingType = typename std::underlying_type<E>::type; 53 static constexpr size_t kSize = static_cast<UnderlyingType>(E::EnumCount); 95 reference operator[](E n) { return mData[static_cast<UnderlyingType>(n)]; } 96 const_reference operator[](E n) const { return mData[static_cast<UnderlyingType>(n)]; } 97 const_reference at(E n) const { return mData.at(static_cast<UnderlyingType>(n)); } in at() 98 reference at(E n) { return mData.at(static_cast<UnderlyingType>(n)); } in at()
|
/dports/databases/qt5-sqldrivers-tds/kde-qtbase-5.15.2p263/src/3rdparty/angle/src/libANGLE/ |
H A D | PackedGLEnums.h | 24 using UnderlyingType = typename std::underlying_type<E>::type; 27 EnumIterator(E value) : mValue(static_cast<UnderlyingType>(value)) {} in EnumIterator() 38 UnderlyingType mValue; 52 using UnderlyingType = typename std::underlying_type<E>::type; 53 static constexpr size_t kSize = static_cast<UnderlyingType>(E::EnumCount); 95 reference operator[](E n) { return mData[static_cast<UnderlyingType>(n)]; } 96 const_reference operator[](E n) const { return mData[static_cast<UnderlyingType>(n)]; } 97 const_reference at(E n) const { return mData.at(static_cast<UnderlyingType>(n)); } in at() 98 reference at(E n) { return mData.at(static_cast<UnderlyingType>(n)); } in at()
|
/dports/databases/qt5-sqldrivers-ibase/kde-qtbase-5.15.2p263/src/3rdparty/angle/src/libANGLE/ |
H A D | PackedGLEnums.h | 24 using UnderlyingType = typename std::underlying_type<E>::type; 27 EnumIterator(E value) : mValue(static_cast<UnderlyingType>(value)) {} in EnumIterator() 38 UnderlyingType mValue; 52 using UnderlyingType = typename std::underlying_type<E>::type; 53 static constexpr size_t kSize = static_cast<UnderlyingType>(E::EnumCount); 95 reference operator[](E n) { return mData[static_cast<UnderlyingType>(n)]; } 96 const_reference operator[](E n) const { return mData[static_cast<UnderlyingType>(n)]; } 97 const_reference at(E n) const { return mData.at(static_cast<UnderlyingType>(n)); } in at() 98 reference at(E n) { return mData.at(static_cast<UnderlyingType>(n)); } in at()
|