class ExtVectorType

Declaration

class ExtVectorType : public VectorType { /* full declaration omitted */ };

Description

ExtVectorType - Extended vector type. This type is created using __attribute__((ext_vector_type(n)), where "n" is the number of elements. Unlike vector_size, ext_vector_type is only allowed on typedef's. This class enables syntactic extensions, like Vector Components for accessing points (as .xyzw), colors (as .rgba), and textures (modeled after OpenGL Shading Language).

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

Inherits from: VectorType

Member Variables

Inherited from VectorType:

protected ElementType

Inherited from Type:

protected

Method Overview

Inherited from VectorType:

Inherited from FoldingSetBase::Node:

Inherited from Type:

Inherited from ExtQualsTypeCommonBase:

    Methods

    ExtVectorType(clang::QualType vecType,
                  unsigned int nElements,
                  clang::QualType canonType)

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

    Parameters

    clang::QualType vecType
    unsigned int nElements
    clang::QualType canonType

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

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

    Parameters

    const clang::Type* T

    clang::QualType desugar() const

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

    static int getAccessorIdx(char c,
                              bool isNumericAccessor)

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

    Parameters

    char c
    bool isNumericAccessor

    static int getNumericAccessorIdx(char c)

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

    Parameters

    char c

    static int getPointAccessorIdx(char c)

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

    Parameters

    char c

    bool isAccessorWithinNumElements(
        char c,
        bool isNumericAccessor) const

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

    Parameters

    char c
    bool isNumericAccessor

    bool isSugared() const

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