Lines Matching defs:object
119 * @param object Shared pointer of the object.
125 static inline Pointer Get(uint32_t innerEventId, const std::shared_ptr<T> &object,
129 event->SaveSharedPtr(object);
137 * @param object Shared pointer of the object.
143 static inline Pointer Get(const EventId &innerEventId, const std::shared_ptr<T> &object,
147 event->SaveSharedPtr(object);
155 * @param object Weak pointer of the object.
161 static inline Pointer Get(uint32_t innerEventId, const std::weak_ptr<T> &object,
165 event->SaveSharedPtr(object);
173 * @param object Weak pointer of the object.
179 static inline Pointer Get(const EventId &innerEventId, const std::weak_ptr<T> &object,
183 event->SaveSharedPtr(object);
191 * @param object Unique pointer of the object.
197 static inline Pointer Get(uint32_t innerEventId, std::unique_ptr<T, D> &&object,
201 event->SaveUniquePtr(object);
209 * @param object Unique pointer of the object.
215 static inline Pointer Get(const EventId &innerEventId, std::unique_ptr<T, D> &&object,
219 event->SaveUniquePtr(object);
227 * @param object Unique pointer of the object.
233 static inline Pointer Get(uint32_t innerEventId, std::unique_ptr<T, D> &object,
237 event->SaveUniquePtr(object);
245 * @param object Unique pointer of the object.
251 static inline Pointer Get(const EventId &innerEventId, std::unique_ptr<T, D> &object,
255 event->SaveUniquePtr(object);
264 * @param object Shared pointer of the object.
269 static inline Pointer Get(uint32_t innerEventId, int64_t param, const std::shared_ptr<T> &object,
273 event->SaveSharedPtr(object);
282 * @param object Shared pointer of the object.
287 static inline Pointer Get(const EventId &innerEventId, int64_t param, const std::shared_ptr<T> &object,
291 event->SaveSharedPtr(object);
300 * @param object Weak pointer of the object.
305 static inline Pointer Get(uint32_t innerEventId, int64_t param, const std::weak_ptr<T> &object,
309 event->SaveSharedPtr(object);
318 * @param object Weak pointer of the object.
323 static inline Pointer Get(const EventId &innerEventId, int64_t param, const std::weak_ptr<T> &object,
327 event->SaveSharedPtr(object);
336 * @param object Unique pointer of the object.
341 static inline Pointer Get(uint32_t innerEventId, int64_t param, std::unique_ptr<T, D> &&object,
345 event->SaveUniquePtr(object);
354 * @param object Unique pointer of the object.
359 static inline Pointer Get(const EventId &innerEventId, int64_t param, std::unique_ptr<T, D> &&object,
363 event->SaveUniquePtr(object);
372 * @param object Unique pointer of the object.
377 static inline Pointer Get(uint32_t innerEventId, int64_t param, std::unique_ptr<T, D> &object,
381 event->SaveUniquePtr(object);
390 * @param object Unique pointer of the object.
395 static inline Pointer Get(const EventId &innerEventId, int64_t param, std::unique_ptr<T, D> &object,
399 event->SaveUniquePtr(object);
409 * @return Returns the pointer of InnerEvent instance, if callback is invalid, returns nullptr object.
548 * Get saved object.
550 * @return Returns shared pointer of saved object.
570 * Get saved object.
572 * @return Returns unique pointer of saved object.
577 std::unique_ptr<T> &object = *reinterpret_cast<std::unique_ptr<T> *>(smartPtr_);
578 if (CalculateSmartPtrTypeId(object) == smartPtrTypeId_) {
579 return std::move(object);
587 * Get saved object.
589 * @return Returns unique pointer of saved object.
594 std::unique_ptr<T, D> &object = *reinterpret_cast<std::unique_ptr<T, D> *>(smartPtr_);
595 if (CalculateSmartPtrTypeId(object) == smartPtrTypeId_) {
596 return std::move(object);
658 * @param time object represent time
665 * @param time object represent time
670 * Prints out the internal information about an object in the specified format,
671 * helping you diagnose internal errors of the object.
678 * Prints out the internal information about an object in the specified format,
679 * helping you diagnose internal errors of the object.
769 inline void SaveSharedPtr(const T &object)
772 smartPtrTypeId_ = CalculateSmartPtrTypeId(object);
773 smartPtr_ = new (std::nothrow) T(object);
780 inline void SaveUniquePtr(T &object)
783 smartPtrTypeId_ = CalculateSmartPtrTypeId(object);
784 smartPtr_ = new (std::nothrow) T(std::move(object));
863 // Event id of the event, if it is not a task object