clang API Documentation

Public Member Functions | Static Public Member Functions
clang::SelectorTable Class Reference

#include <IdentifierTable.h>

List of all members.

Public Member Functions

 SelectorTable ()
 ~SelectorTable ()
Selector getSelector (unsigned NumArgs, IdentifierInfo **IIV)
Selector getUnarySelector (IdentifierInfo *ID)
Selector getNullarySelector (IdentifierInfo *ID)
size_t getTotalMemory () const
 Return the total amount of memory allocated for managing selectors.

Static Public Member Functions

static Selector constructSetterName (IdentifierTable &Idents, SelectorTable &SelTable, const IdentifierInfo *Name)

Detailed Description

SelectorTable - This table allows us to fully hide how we implement multi-keyword caching.

Definition at line 685 of file IdentifierTable.h.


Constructor & Destructor Documentation

SelectorTable::SelectorTable ( )

Definition at line 500 of file IdentifierTable.cpp.

SelectorTable::~SelectorTable ( )

Definition at line 504 of file IdentifierTable.cpp.

References getSelectorTableImpl().


Member Function Documentation

Selector SelectorTable::constructSetterName ( IdentifierTable Idents,
SelectorTable SelTable,
const IdentifierInfo Name 
) [static]

constructSetterName - Return the setter name for the given identifier, i.e. "set" + Name where the initial character of Name has been capitalized.

Definition at line 458 of file IdentifierTable.cpp.

References clang::IdentifierTable::get(), clang::IdentifierInfo::getName(), and getUnarySelector().

Referenced by clang::Sema::ActOnClassPropertyRefExpr(), clang::Sema::HandleExprPropertyRefExpr(), clang::Parser::ObjCPropertyCallback::invoke(), and clang::Sema::LookupMemberExpr().

Selector clang::SelectorTable::getNullarySelector ( IdentifierInfo ID) [inline]
Selector SelectorTable::getSelector ( unsigned  NumArgs,
IdentifierInfo **  IIV 
)
size_t SelectorTable::getTotalMemory ( ) const

Return the total amount of memory allocated for managing selectors.

Definition at line 469 of file IdentifierTable.cpp.

References getSelectorTableImpl().

Selector clang::SelectorTable::getUnarySelector ( IdentifierInfo ID) [inline]

Definition at line 698 of file IdentifierTable.h.

Referenced by AddObjCKeyValueCompletions(), and constructSetterName().


The documentation for this class was generated from the following files: