class MatrixSubscriptExpr

Declaration

class MatrixSubscriptExpr : public Expr { /* full declaration omitted */ };

Description

MatrixSubscriptExpr - Matrix subscript expression for the MatrixType extension. MatrixSubscriptExpr can be either incomplete (only Base and RowIdx are set so far, the type is IncompleteMatrixIdx) or complete (Base, RowIdx and ColumnIdx refer to valid expressions). Incomplete matrix expressions only exist during the initial construction of the AST.

Declared at: clang/include/clang/AST/Expr.h:2723

Inherits from: Expr

Member Variables

private clang::Stmt* [3] SubExprs

Inherited from Stmt:

protected

Method Overview

Inherited from Expr:

Inherited from ValueStmt:

Inherited from Stmt:

Methods

MatrixSubscriptExpr(clang::Stmt::EmptyShell Shell)

Description

Create an empty matrix subscript expression.

Declared at: clang/include/clang/AST/Expr.h:2740

Parameters

clang::Stmt::EmptyShell Shell

MatrixSubscriptExpr(
    clang::Expr* Base,
    clang::Expr* RowIdx,
    clang::Expr* ColumnIdx,
    clang::QualType T,
    clang::SourceLocation RBracketLoc)

Declared at: clang/include/clang/AST/Expr.h:2728

Parameters

clang::Expr* Base
clang::Expr* RowIdx
clang::Expr* ColumnIdx
clang::QualType T
clang::SourceLocation RBracketLoc

clang::Stmt::const_child_range children() const

Declared at: clang/include/clang/AST/Expr.h:2790

clang::Stmt::child_range children()

Declared at: clang/include/clang/AST/Expr.h:2787

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

Declared at: clang/include/clang/AST/Expr.h:2782

Parameters

const clang::Stmt* T

const clang::Expr* getBase() const

Declared at: clang/include/clang/AST/Expr.h:2750

clang::Expr* getBase()

Declared at: clang/include/clang/AST/Expr.h:2749

clang::SourceLocation getBeginLoc() const

Declared at: clang/include/clang/AST/Expr.h:2765

clang::Expr* getColumnIdx()

Declared at: clang/include/clang/AST/Expr.h:2757

const clang::Expr* getColumnIdx() const

Declared at: clang/include/clang/AST/Expr.h:2758

clang::SourceLocation getEndLoc() const

Declared at: clang/include/clang/AST/Expr.h:2769

clang::SourceLocation getExprLoc() const

Declared at: clang/include/clang/AST/Expr.h:2771

clang::SourceLocation getRBracketLoc() const

Declared at: clang/include/clang/AST/Expr.h:2775

clang::Expr* getRowIdx()

Declared at: clang/include/clang/AST/Expr.h:2753

const clang::Expr* getRowIdx() const

Declared at: clang/include/clang/AST/Expr.h:2754

bool isIncomplete() const

Declared at: clang/include/clang/AST/Expr.h:2743

void setBase(clang::Expr* E)

Declared at: clang/include/clang/AST/Expr.h:2751

Parameters

clang::Expr* E

void setColumnIdx(clang::Expr* E)

Declared at: clang/include/clang/AST/Expr.h:2763

Parameters

clang::Expr* E

void setRBracketLoc(clang::SourceLocation L)

Declared at: clang/include/clang/AST/Expr.h:2778

Parameters

clang::SourceLocation L

void setRowIdx(clang::Expr* E)

Declared at: clang/include/clang/AST/Expr.h:2755

Parameters

clang::Expr* E