VapourSynth-llvmexpr
Loading...
Searching...
No Matches
infix2postfix::ArrayAccessExpr Struct Reference

#include <llvmexpr/frontend/infix2postfix/AST.hpp>

Collaboration diagram for infix2postfix::ArrayAccessExpr:

Public Member Functions

 ArrayAccessExpr (std::unique_ptr< Expr > arr, std::unique_ptr< Expr > idx)

Public Attributes

std::unique_ptr< Exprarray
std::unique_ptr< Exprindex
Range range
std::shared_ptr< Symbolarray_symbol

Detailed Description

Definition at line 125 of file AST.hpp.

Constructor & Destructor Documentation

◆ ArrayAccessExpr()

infix2postfix::ArrayAccessExpr::ArrayAccessExpr ( std::unique_ptr< Expr > arr,
std::unique_ptr< Expr > idx )
inline

Definition at line 388 of file AST.hpp.

390 : array(std::move(arr)), index(std::move(idx)) {
391 if (array) {
392 range.start = array->range().start;
393 }
394 if (index) {
395 range.end = index->range().end;
396 } else if (array) {
397 range.end = array->range().end;
398 }
399}
std::unique_ptr< Expr > index
Definition AST.hpp:127
std::unique_ptr< Expr > array
Definition AST.hpp:126

References array, index, and range.

Member Data Documentation

◆ array

std::unique_ptr<Expr> infix2postfix::ArrayAccessExpr::array

Definition at line 126 of file AST.hpp.

Referenced by ArrayAccessExpr().

◆ array_symbol

std::shared_ptr<Symbol> infix2postfix::ArrayAccessExpr::array_symbol

Definition at line 129 of file AST.hpp.

◆ index

std::unique_ptr<Expr> infix2postfix::ArrayAccessExpr::index

Definition at line 127 of file AST.hpp.

Referenced by ArrayAccessExpr().

◆ range

Range infix2postfix::ArrayAccessExpr::range

Definition at line 128 of file AST.hpp.

Referenced by ArrayAccessExpr().


The documentation for this struct was generated from the following file:
  • llvmexpr/frontend/infix2postfix/AST.hpp