Peano
Loading...
Searching...
No Matches
exahype2.api.dslhype2.Expressions.Subscript Class Reference
Inheritance diagram for exahype2.api.dslhype2.Expressions.Subscript:
Collaboration diagram for exahype2.api.dslhype2.Expressions.Subscript:

Public Member Functions

 __init__ (self, AssignableExpression base, list[Element|Variable] indices, flatten=False, get_address=False)
Type get_type (self)
Name get_name (self)
Subscript index_at (self, Sequence[Element] indices, get_address=False)
 print (self, printer, int indent_level=0)

Data Fields

 base = base
 flatten = flatten
 indices = indices
 get_address = get_address
 flattened_index = self.indices[0] * self.base.get_value().array_size[-1] + self.indices[1]

Detailed Description

Definition at line 554 of file Expressions.py.

Constructor & Destructor Documentation

◆ __init__()

exahype2.api.dslhype2.Expressions.Subscript.__init__ ( self,
AssignableExpression base,
list[Element | Variable] indices,
flatten = False,
get_address = False )

Definition at line 555 of file Expressions.py.

References assert.

Member Function Documentation

◆ get_name()

Name exahype2.api.dslhype2.Expressions.Subscript.get_name ( self)

Reimplemented from exahype2.api.dslhype2.Expressions.AssignableExpression.

Definition at line 572 of file Expressions.py.

References base, and get_name().

Referenced by get_name().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_type()

Type exahype2.api.dslhype2.Expressions.Subscript.get_type ( self)

Reimplemented from exahype2.api.dslhype2.Expressions.Expression.

Definition at line 569 of file Expressions.py.

References base, and get_type().

Referenced by get_type().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ index_at()

Subscript exahype2.api.dslhype2.Expressions.Subscript.index_at ( self,
Sequence[Element] indices,
get_address = False )

Reimplemented from exahype2.api.dslhype2.Expressions.AssignableExpression.

Definition at line 575 of file Expressions.py.

◆ print()

exahype2.api.dslhype2.Expressions.Subscript.print ( self,
printer,
int indent_level = 0 )

Reimplemented from exahype2.api.dslhype2.Expressions.Expression.

Definition at line 578 of file Expressions.py.

Field Documentation

◆ base

exahype2.api.dslhype2.Expressions.Subscript.base = base

Definition at line 561 of file Expressions.py.

Referenced by get_name(), and get_type().

◆ flatten

exahype2.api.dslhype2.Expressions.Subscript.flatten = flatten

Definition at line 562 of file Expressions.py.

◆ flattened_index

exahype2.api.dslhype2.Expressions.Subscript.flattened_index = self.indices[0] * self.base.get_value().array_size[-1] + self.indices[1]

Definition at line 567 of file Expressions.py.

◆ get_address

exahype2.api.dslhype2.Expressions.Subscript.get_address = get_address

Definition at line 564 of file Expressions.py.

◆ indices

exahype2.api.dslhype2.Expressions.Subscript.indices = indices

Definition at line 563 of file Expressions.py.


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