/foundation/graphic/standard/rosen/modules/render_service_base/include/common/ |
D | rs_vector3.h | 24 template<typename T> 29 T x_; 30 T y_; 31 T z_; 33 T data_[3]; 37 Vector3(T x, T y, T z); 38 explicit Vector3(T* v); 42 T Dot(const Vector3<T>& other) const; 43 Vector3 Cross(const Vector3<T>& other) const; 44 T GetSqrLength() const; [all …]
|
D | rs_vector2.h | 24 template<typename T> 29 T x_; 30 T y_; 32 T data_[2]; 36 Vector2(T x, T y); 37 explicit Vector2(const T* v); 41 T Dot(const Vector2<T>& other) const; 42 T Cross(const Vector2<T>& other) const; 44 Vector2 operator-(const Vector2<T>& other) const; 45 Vector2 operator+(const Vector2<T>& other) const; [all …]
|
D | rs_vector4.h | 26 template<typename T> 31 T x_; 32 T y_; 33 T z_; 34 T w_; 36 T data_[4]; 40 Vector4(T x, T y, T z, T w); 41 explicit Vector4(const T* array); 45 T Dot(const Vector4<T>& other) const; 46 T GetSqrLength() const; [all …]
|
D | rs_matrix3.h | 29 template<typename T> 35 Matrix3(T m00, T m01, T m02, T m10, T m11, T m12, T m20, T m21, T m22); 39 explicit Matrix3(const T* v); 42 T Trace() const; 54 Vector3<T> operator*(const Vector3<T>& other) const; 55 Matrix3 operator*(T scale) const; 56 T* operator[](int col); 61 Matrix3& operator*=(T scale); 64 T* GetData(); 65 const T* GetConstData() const; [all …]
|
D | rs_rect.h | 25 template<typename T> 30 T left_; 31 T top_; 32 T width_; 33 T height_; 35 T data_[4]; // 4 is size of data or structure 45 RectT(T left, T top, T width, T height) in RectT() 52 explicit RectT(const T* v) in RectT() 61 inline bool operator==(const RectT<T>& rect) const 66 inline bool operator!=(const RectT<T>& rect) const [all …]
|
/foundation/graphic/utils/interfaces/kits/gfx_utils/ |
D | graphic_math.h | 92 template<typename T> 110 Vector2(T x, T y) in Vector2() 131 T Dot(const Vector2<T>& other) const in Dot() 133 T sum = x_ * other.x_; in Dot() 145 T Cross(const Vector2<T>& other) const in Cross() 155 Vector2 operator-(const Vector2<T>& other) const 160 Vector2 operator+(const Vector2<T>& other) const 165 Vector2 operator*(T scale) const 196 T x_; 197 T y_; [all …]
|
D | rect.h | 49 template <typename T> class CommonRect : public HeapBase { 74 CommonRect(T left, T top, T right, T bottom) in CommonRect() 89 CommonRect(const CommonRect<T>& other) in CommonRect() 105 CommonRect(const CommonRect<T>&& other) in CommonRect() 123 void SetRect(T left, T top, T right, T bottom) in SetRect() 137 T GetWidth() const in GetWidth() 148 T GetHeight() const in GetHeight() 159 T GetX() const in GetX() 170 T GetY() const in GetY() 181 T GetLeft() const in GetLeft() [all …]
|
/foundation/ace/ace_engine/frameworks/bridge/declarative_frontend/engine/v8/ |
D | v8_ref.h | 25 template<typename T> 58 template<typename T> 65 explicit V8Ref(const T& val) : object_(val) {} in V8Ref() 72 V8Ref(const V8Ref<S>& that) : object_(T::Cast(that.Get())) in V8Ref() 76 explicit V8Ref(const V8Weak<T>& rhs) in V8Ref() 82 static V8Ref<T> Make(Args&&... args) in Make() 84 return V8Ref<T>::Claim(T { std::forward<Args>(args)... }); in Make() 87 static V8Ref<T> Claim(T&& val) in Claim() 89 return V8Ref<T>(std::forward<T>(val)); in Claim() 93 static V8Ref<T> Cast(const V8Ref<S>& that) in Cast() [all …]
|
D | v8_types.inl | 24 template<typename T> 25 V8Type<T>::V8Type() 28 template<typename T> 29 V8Type<T>::V8Type(v8::Local<T> val) : handle_(V8DeclarativeEngineInstance::GetV8Isolate(), val) 32 template<typename T> 34 V8Type<T>::V8Type(v8::Local<S> val) : handle_(V8DeclarativeEngineInstance::GetV8Isolate(), v8::Loca… 37 template<typename T> 38 V8Type<T>::V8Type(CopyablePersistent<T> other) : handle_(other) 41 template<typename T> 42 V8Type<T>::V8Type(const V8Type<T>& rhs) : handle_(rhs.handle_) [all …]
|
/foundation/ace/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/ |
D | jsi_ref.h | 23 template<typename T> 56 template<typename T> 62 explicit JsiRef(const T& val) : value_(val) {} in JsiRef() 69 JsiRef(const JsiRef<S>& that) : value_(T::Cast(that.Get())) in JsiRef() 73 explicit JsiRef(const JsiWeak<T>& rhs) in JsiRef() 79 static JsiRef<T> Make(Args&&... args) in Make() 81 auto obj = T { args... }; in Make() 82 return JsiRef<T>(obj); in Make() 85 static JsiRef<T> Claim(T&& val) in Claim() 87 return JsiRef<T>(std::forward<T>(val)); in Claim() [all …]
|
D | jsi_value_conversions.h | 28 template<typename T> 31 …if constexpr (std::is_integral<T>::value && std::is_signed<T>::value && !std::is_same<T, bool>::va… in Validate() 33 } else if constexpr (std::is_unsigned_v<T>) { in Validate() 35 } else if constexpr (std::is_floating_point_v<T>) { in Validate() 37 } else if constexpr (std::is_same_v<T, std::string>) { in Validate() 45 template<typename T> 46 T fromJsiValue(panda::Local<panda::JSValueRef> val) in fromJsiValue() 48 static_assert(!std::is_const_v<T> && !std::is_reference_v<T>, // in fromJsiValue() 53 …if constexpr (std::is_integral<T>::value && std::is_signed<T>::value && !std::is_same<T, bool>::va… in fromJsiValue() 55 } else if constexpr (std::is_unsigned_v<T>) { in fromJsiValue() [all …]
|
/foundation/multimedia/image_standard/mock/native/include/ |
D | singleton.h | 54 template<typename T> 57 static std::shared_ptr<T> GetInstance(); 61 static std::shared_ptr<T> instance_; 65 template<typename T> 66 std::shared_ptr<T> DelayedSingleton<T>::instance_ = nullptr; 68 template<typename T> 69 std::mutex DelayedSingleton<T>::mutex_; 71 template<typename T> 72 std::shared_ptr<T> DelayedSingleton<T>::GetInstance() in GetInstance() 77 std::shared_ptr<T> temp(new T); in GetInstance() [all …]
|
/foundation/appexecfwk/standard/tools/zip/include/ |
D | checked_cast.h | 34 template<typename T> 38 template<typename T> 39 struct IsPtr<T *> { 82 template<typename T, typename X, bool isPtr> 86 template<typename T, typename X> 87 struct checked_cast_impl<T, X, true> { 88 static T cast(X &x, hidden::LookUpHelper2 const &) 91 T t = dynamic_cast<T>(x); 93 if (t != static_cast<T>(x)) { 94 BAD_CHECKED_CAST(x, T); [all …]
|
/foundation/ace/ace_engine/frameworks/bridge/declarative_frontend/engine/ |
D | js_ref_ptr.h | 31 template<typename T, typename ImplDetail> 41 JSRefPtrImpl(const JSRefPtrImpl<T, ImplDetail>& rhs) : object_(rhs.object_) {} in JSRefPtrImpl() argument 42 JSRefPtrImpl(JSRefPtrImpl<T, ImplDetail>&& rhs) : object_(std::move(rhs.object_)) {} in JSRefPtrImpl() argument 43 JSRefPtrImpl<T, ImplDetail>& operator=(const JSRefPtrImpl<T, ImplDetail>& rhs) 50 JSRefPtrImpl<T, ImplDetail>& operator=(JSRefPtrImpl<T, ImplDetail>&& rhs) 57 T* operator->() const 59 return object_.template Unwrap<T>(); 87 template<typename T> 88 using JSRef = QJSRef<T>; 89 template<typename T> [all …]
|
/foundation/ace/ace_engine/frameworks/bridge/declarative_frontend/engine/quickjs/ |
D | qjs_ref.h | 23 template<typename T> 30 explicit QJSRef(const T& rhs) : value_(rhs) in QJSRef() 41 explicit QJSRef(const QJSWeak<T>& rhs) in QJSRef() 47 static QJSRef<T> Make(Args&&... args) in Make() 49 return QJSRef<T>(T { std::forward<Args>(args)... }); in Make() 53 static QJSRef<T> Claim(Arg&& val) in Claim() 55 QJSRef<T> newVal; in Claim() 56 newVal = T { std::forward<Arg>(val) }; in Claim() 60 static QJSRef<T> New() in New() 62 return QJSRef<T>::Make(T::New()); in New() [all …]
|
D | qjs_value_conversions.h | 26 template<typename T> 29 std::is_integral<T>::value && std::is_signed<T>::value && !std::is_same<T, bool>::value; 32 template<typename T> 33 static constexpr bool is_signed_int_v = _is_signed_int_<T>::value; 35 template<typename T> 36 T fromJSValue(JSValueConst val) in fromJSValue() 38 static_assert(!std::is_const_v<T> && !std::is_reference_v<T>, // in fromJSValue() 42 if constexpr (is_signed_int_v<T>) { in fromJSValue() 46 } else if constexpr (std::is_unsigned_v<T>) { in fromJSValue() 50 } else if constexpr (std::is_floating_point_v<T>) { in fromJSValue() [all …]
|
/foundation/appexecfwk/appexecfwk_lite/utils/bundle_lite/ |
D | uptr.h | 20 template<typename T> 22 typedef T type; 25 template<class T> 26 struct RemoveRef<T &> { 27 typedef T type; 30 template<class T> 31 struct RemoveRef<T &&> { 32 typedef T type; 35 template<typename T> 36 typename RemoveRef<T>::type &&Move(T &&t) [all …]
|
/foundation/multimedia/image_standard/plugins/manager/include/ |
D | plugin_server.h | 46 template<typename T> 47 inline T *CreateObject(const std::string &className, uint32_t &errorCode) in CreateObject() 49 uint16_t interfaceID = GetInterfaceId<T>(); in CreateObject() 50 return ConvertToServiceInterface<T>(CreateObject(interfaceID, className, errorCode)); in CreateObject() 53 template<typename T> 54 inline T *CreateObject(const std::string &className) in CreateObject() 56 uint16_t interfaceID = GetInterfaceId<T>(); in CreateObject() 58 return ConvertToServiceInterface<T>(CreateObject(interfaceID, className, errorCode)); in CreateObject() 61 template<typename T> 62 inline T *CreateObject(uint16_t serviceType, uint32_t &errorCode) in CreateObject() [all …]
|
/foundation/ace/ace_engine/frameworks/bridge/declarative_frontend/state_mgmt/src/lib/ |
D | synced_property_simple_one_way.ts | 16 class SynchedPropertySimpleOneWay<T> extends ObservedPropertySimpleAbstract<T> { 18 private wrappedValue_: T; 19 private contentStorageLinkedParentProperty_: ObservedPropertySimpleAbstract<T>; 21 constructor(value: T, subscribeMe?: IPropertySubscriber, info?: PropertyInfo, 22 contentObserver?: ObservedPropertySimpleAbstract<T>) { 42 public get(): T { 51 public set(newValue: T): void { 73 …pName?: PropertyInfo, contentObserver?: ObservedPropertyAbstract<T>): ObservedPropertyAbstract<T> { 77 …pName?: PropertyInfo, contentObserver?: ObservedPropertyAbstract<T>): ObservedPropertyAbstract<T> { 88 class SynchedPropertySimpleOneWaySubscribing<T> extends SynchedPropertySimpleOneWay<T> [all …]
|
/foundation/multimedia/histreamer/engine/pipeline/core/ |
D | compatible_check.cpp | 50 template<typename T> 52 … uint8_t flags, std::function<int(T,T)> cmpFunc, Plugin::ValueType& outValue); 54 template <typename T> 58 return CapabilityValueCheck<T>(key, {val1, val2}, ALLOW_FIXED | ALLOW_INTERVAL | ALLOW_DISCRETE, in FixInvalDiscCapValCheck() 59 [](T a, T b) { in FixInvalDiscCapValCheck() 64 template <typename T, typename U> 68 return CapabilityValueCheck<T>(key, {val1, val2}, ALLOW_FIXED | ALLOW_DISCRETE, [](T a, T b) { in FixDiscCapValCheck() 87 template <typename T> 160 template <typename T> 161 T Max(T val1, T val2, std::function<int(T, T)> compareFunc) in Max() argument [all …]
|
/foundation/ace/ace_engine/frameworks/base/memory/ |
D | ace_type.h | 49 template<class T> 50 static T* DynamicCast(AceType* rawPtr) in DynamicCast() 52 return TypeInfoHelper::DynamicCast<T>(rawPtr); in DynamicCast() 54 template<class T> 55 static const T* DynamicCast(const AceType* rawPtr) in DynamicCast() 57 return TypeInfoHelper::DynamicCast<T>(rawPtr); in DynamicCast() 59 template<class T, class O> 60 static RefPtr<T> DynamicCast(const RefPtr<O>& ptr) in DynamicCast() 62 return Claim(DynamicCast<T>(RawPtr(ptr))); in DynamicCast() 64 template<class T, class O> [all …]
|
/foundation/graphic/standard/utils/promise/export/ |
D | promise.h | 25 template<class T> 29 Promise(const T& t); 33 virtual const T &Await(); 34 virtual void Then(std::function<void(const T &t)> func); 35 virtual bool Resolve(const T &t); 41 T value{}; 43 std::function<void(const T &t)> onComplete = nullptr; 46 template<class T> 47 Promise<T>::Promise(const T& t) in Promise() 53 template<class T> [all …]
|
/foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler/include/ |
D | inner_event.h | 76 template<typename T> 77 …static inline Pointer Get(uint32_t innerEventId, const std::shared_ptr<T> &object, int64_t param =… 92 template<typename T> 93 …static inline Pointer Get(uint32_t innerEventId, const std::weak_ptr<T> &object, int64_t param = 0) 108 template<typename T, typename D> 109 …static inline Pointer Get(uint32_t innerEventId, std::unique_ptr<T, D> &&object, int64_t param = 0) 124 template<typename T, typename D> 125 … static inline Pointer Get(uint32_t innerEventId, std::unique_ptr<T, D> &object, int64_t param = 0) 140 template<typename T> 141 … static inline Pointer Get(uint32_t innerEventId, int64_t param, const std::shared_ptr<T> &object) in Get() [all …]
|
/foundation/multimedia/histreamer/engine/utils/ |
D | memory_helper.h | 24 template<class T> struct _unique_ptr_if { 25 typedef std::unique_ptr<T> _single_object; 28 template<class T> struct _unique_ptr_if<T[]> { 29 typedef std::unique_ptr<T[]> _unknown_bound_array; 32 template<class T, size_t N> struct _unique_ptr_if<T[N]> { 36 template<class T, class... U> 37 typename _unique_ptr_if<T>::_single_object make_unique(U&&... params) 39 return std::unique_ptr<T>(new T(std::forward<U>(params)...)); 42 template<class T> 43 typename _unique_ptr_if<T>::_unknown_bound_array make_unique(size_t n) [all …]
|
/foundation/communication/bluetooth/interfaces/innerkits/native_cpp/framework/include/ |
D | bluetooth_observer_map.h | 24 template <typename T> 30 bool Register(int handle, T *observer); 31 bool Deregister(T *observer); 33 void ForEach(const std::function<void(uint8_t, T *)> &observer, int handle); 35 uint8_t GetAdvertiserHandle(T *observer); 36 T *PopAdvertiserObserver(uint8_t advHandle); 37 T *GetAdvertiserObserver(uint8_t advHandle); 38 bool IsExistAdvertiserCallback(T *observer, int &handle); 42 std::map<int, T *> observers_; 47 template<typename T> [all …]
|