Home | History | Annotate | Download | only in Basic

Lines Matching refs:Selector

10 // This file defines the IdentifierInfo, IdentifierTable, and Selector
39 class MultiKeywordSelector; // private class used by Selector
482 /// beyond their selector name; for example, a method called '_init'
493 // additional CamelCase "words" in their first selector chunk
502 // selector with the given name.
522 /// Selector - This smart pointer class efficiently represents Objective-C
527 class Selector {
538 Selector(IdentifierInfo *II, unsigned nArgs) {
544 Selector(MultiKeywordSelector *SI) {
558 static ObjCMethodFamily getMethodFamilyImpl(Selector sel);
566 Selector() : InfoPtr(0) {}
567 Selector(uintptr_t V) : InfoPtr(V) {}
570 bool operator==(Selector RHS) const {
573 bool operator!=(Selector RHS) const {
580 /// \brief Determine whether this is the empty selector.
583 // Predicates to identify the selector type.
593 /// \brief Retrieve the identifier at a given position in the selector.
602 /// selector, in which case 0 is the only permissible value.
608 /// \brief Retrieve the name at a given position in the selector.
612 /// selector, in which case 0 is the only permissible value.
618 /// getAsString - Derive the full selector name (e.g. "foo:bar:") and return
627 static Selector getEmptyMarker() {
628 return Selector(uintptr_t(-1));
630 static Selector getTombstoneMarker() {
631 return Selector(uintptr_t(-2));
645 /// getSelector - This can create any sort of selector. NumArgs indicates
646 /// whether this is a no argument selector "foo", a single argument selector
648 Selector getSelector(unsigned NumArgs, IdentifierInfo **IIV);
650 Selector getUnarySelector(IdentifierInfo *ID) {
651 return Selector(ID, 1);
653 Selector getNullarySelector(IdentifierInfo *ID) {
654 return Selector(ID, 0);
663 static Selector constructSetterName(IdentifierTable &Idents,
702 /// arguments in the Objective-C selector, in which case the
713 struct DenseMapInfo<clang::Selector> {
714 static inline clang::Selector getEmptyKey() {
715 return clang::Selector::getEmptyMarker();
717 static inline clang::Selector getTombstoneKey() {
718 return clang::Selector::getTombstoneMarker();
721 static unsigned getHashValue(clang::Selector S);
723 static bool isEqual(clang::Selector LHS, clang::Selector RHS) {
729 struct isPodLike<clang::Selector> { static const bool value = true; };
732 class PointerLikeTypeTraits<clang::Selector> {
734 static inline const void *getAsVoidPointer(clang::Selector P) {
737 static inline clang::Selector getFromVoidPointer(const void *P) {
738 return clang::Selector(reinterpret_cast<uintptr_t>(P));