Home | History | Annotate | Download | only in wtf

Lines Matching refs:thisType

385 #define DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(thisType) \
386 inline bool operator==(const thisType& a, const thisType& b) { return &a == &b; } \
387 inline bool operator==(const thisType& a, const thisType* b) { return &a == b; } \
388 inline bool operator==(const thisType* a, const thisType& b) { return a == &b; } \
389 inline bool operator!=(const thisType& a, const thisType& b) { return !(a == b); } \
390 inline bool operator!=(const thisType& a, const thisType* b) { return !(a == b); } \
391 inline bool operator!=(const thisType* a, const thisType& b) { return !(a == b); }
393 #define DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(thisType) \
394 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(thisType) \
395 inline bool operator==(const PassRefPtr<thisType>& a, const thisType& b) { return a.get() == &b; } \
396 inline bool operator==(const thisType& a, const PassRefPtr<thisType>& b) { return &a == b.get(); } \
397 inline bool operator!=(const PassRefPtr<thisType>& a, const thisType& b) { return !(a == b); } \
398 inline bool operator!=(const thisType& a, const PassRefPtr<thisType>& b) { return !(a == b); }
402 #define DEFINE_TYPE_CASTS(thisType, argumentType, argumentName, pointerPredicate, referencePredicate) \
403 inline thisType* to##thisType(argumentType* argumentName) \
406 return static_cast<thisType*>(argumentName); \
408 inline const thisType* to##thisType(const argumentType* argumentName) \
411 return static_cast<const thisType*>(argumentName); \
413 inline thisType& to##thisType(argumentType& argumentName) \
416 return static_cast<thisType&>(argumentName); \
418 inline const thisType& to##thisType(const argumentType& argumentName) \
421 return static_cast<const thisType&>(argumentName); \
423 void to##thisType(const thisType*); \
424 void to##thisType(const thisType&)