class MemberPointerType

Declaration

class MemberPointerType : public Type, public Node { /* full declaration omitted */ };

Description

A pointer to member type per C++ 8.3.3 - Pointers to members. This includes both pointers to data members and pointer to member functions.

Declared at: clang/include/clang/AST/Type.h:2903

Inherits from: Type, FoldingSetBase::Node

Member Variables

private clang::QualType PointeeType
private const clang::Type* Class
The class of which the pointee is a member. Must ultimately be a RecordType, but could be a typedef or a template parameter too.

Inherited from Type:

protected

Method Overview

Inherited from FoldingSetBase::Node:

Inherited from Type:

Inherited from ExtQualsTypeCommonBase:

    Methods

    MemberPointerType(clang::QualType Pointee,
                      const clang::Type* Cls,
                      clang::QualType CanonicalPtr)

    Declared at: clang/include/clang/AST/Type.h:2912

    Parameters

    clang::QualType Pointee
    const clang::Type* Cls
    clang::QualType CanonicalPtr

    void Profile(llvm::FoldingSetNodeID& ID)

    Declared at: clang/include/clang/AST/Type.h:2939

    Parameters

    llvm::FoldingSetNodeID& ID

    static void Profile(llvm::FoldingSetNodeID& ID,
                        clang::QualType Pointee,
                        const clang::Type* Class)

    Declared at: clang/include/clang/AST/Type.h:2943

    Parameters

    llvm::FoldingSetNodeID& ID
    clang::QualType Pointee
    const clang::Type* Class

    static bool classof(const clang::Type* T)

    Declared at: clang/include/clang/AST/Type.h:2949

    Parameters

    const clang::Type* T

    clang::QualType desugar() const

    Declared at: clang/include/clang/AST/Type.h:2937

    const clang::Type* getClass() const

    Declared at: clang/include/clang/AST/Type.h:2933

    clang::CXXRecordDecl* getMostRecentCXXRecordDecl()
        const

    Declared at: clang/include/clang/AST/Type.h:2934

    clang::QualType getPointeeType() const

    Declared at: clang/include/clang/AST/Type.h:2919

    bool isMemberDataPointer() const

    Description

    Returns true if the member type (i.e. the pointee type) is a data type rather than a function type.

    Declared at: clang/include/clang/AST/Type.h:2929

    bool isMemberFunctionPointer() const

    Description

    Returns true if the member type (i.e. the pointee type) is a function type rather than a data-member type.

    Declared at: clang/include/clang/AST/Type.h:2923

    bool isSugared() const

    Declared at: clang/include/clang/AST/Type.h:2936