clang API Documentation

Public Member Functions | Static Public Member Functions | Friends
clang::ExtVectorType Class Reference

#include <Type.h>

Inheritance diagram for clang::ExtVectorType:
Inheritance graph
[legend]
Collaboration diagram for clang::ExtVectorType:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool isAccessorWithinNumElements (char c) const
bool isSugared () const
QualType desugar () const

Static Public Member Functions

static int getPointAccessorIdx (char c)
static int getNumericAccessorIdx (char c)
static int getAccessorIdx (char c)
static bool classof (const Type *T)
static bool classof (const ExtVectorType *)

Friends

class ASTContext

Detailed 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, colors, and textures (modeled after OpenGL Shading Language).

Definition at line 2480 of file Type.h.


Member Function Documentation

static bool clang::ExtVectorType::classof ( const Type T) [inline, static]

Reimplemented from clang::VectorType.

Definition at line 2535 of file Type.h.

References clang::Type::getTypeClass().

static bool clang::ExtVectorType::classof ( const ExtVectorType ) [inline, static]

Definition at line 2538 of file Type.h.

QualType clang::ExtVectorType::desugar ( ) const [inline]

Reimplemented from clang::VectorType.

Definition at line 2533 of file Type.h.

static int clang::ExtVectorType::getAccessorIdx ( char  c) [inline, static]

Definition at line 2522 of file Type.h.

Referenced by clang::ExtVectorElementExpr::getEncodedElementAccess().

static int clang::ExtVectorType::getNumericAccessorIdx ( char  c) [inline, static]

Definition at line 2494 of file Type.h.

Referenced by CheckExtVectorComponent().

static int clang::ExtVectorType::getPointAccessorIdx ( char  c) [inline, static]

Definition at line 2485 of file Type.h.

Referenced by CheckExtVectorComponent().

bool clang::ExtVectorType::isAccessorWithinNumElements ( char  c) const [inline]

Definition at line 2527 of file Type.h.

Referenced by CheckExtVectorComponent().

bool clang::ExtVectorType::isSugared ( ) const [inline]

Reimplemented from clang::VectorType.

Definition at line 2532 of file Type.h.


Friends And Related Function Documentation

friend class ASTContext [friend]

Reimplemented from clang::VectorType.

Definition at line 2483 of file Type.h.


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