Home | History | Annotate | Download | only in wtf

Lines Matching refs:thisType

379 #define DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(thisType) \
380 inline bool operator==(const thisType& a, const thisType& b) { return &a == &b; } \
381 inline bool operator==(const thisType& a, const thisType* b) { return &a == b; } \
382 inline bool operator==(const thisType* a, const thisType& b) { return a == &b; } \
383 inline bool operator!=(const thisType& a, const thisType& b) { return !(a == b); } \
384 inline bool operator!=(const thisType& a, const thisType* b) { return !(a == b); } \
385 inline bool operator!=(const thisType* a, const thisType& b) { return !(a == b); }
387 #define DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(thisType) \
388 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(thisType) \
389 inline bool operator==(const PassRefPtr<thisType>& a, const thisType& b) { return a.get() == &b; } \
390 inline bool operator==(const thisType& a, const PassRefPtr<thisType>& b) { return &a == b.get(); } \
391 inline bool operator!=(const PassRefPtr<thisType>& a, const thisType& b) { return !(a == b); } \
392 inline bool operator!=(const thisType& a, const PassRefPtr<thisType>& b) { return !(a == b); }
396 #define DEFINE_TYPE_CASTS(thisType, argumentType, argumentName, pointerPredicate, referencePredicate) \
397 inline thisType* to##thisType(argumentType* argumentName) \
400 return static_cast<thisType*>(argumentName); \
402 inline const thisType* to##thisType(const argumentType* argumentName) \
405 return static_cast<const thisType*>(argumentName); \
407 inline thisType& to##thisType(argumentType& argumentName) \
410 return static_cast<thisType&>(argumentName); \
412 inline const thisType& to##thisType(const argumentType& argumentName) \
415 return static_cast<const thisType&>(argumentName); \
417 void to##thisType(const thisType*); \
418 void to##thisType(const thisType&)