![]() |
AmpGen 2.1
|
Expression for an array, i.e. a set of values with an index. Can be used to return an expression from the array, which is resolved at (second) compile time.
Public Member Functions | |
| Array (const Expression &top, const int &size, const Expression &address=0) | |
| std::string | to_string (const ASTResolver *resolver=nullptr) const override |
| Called to convert the Expression tree into source code. | |
| void | resolve (ASTResolver &resolver) const override |
| Resolve the dependencies of a tree using an ASTResolver, which keeps track of parameters, dependent sub-trees, etc. | |
| operator Expression () | |
| complex_t | operator() () const override |
| Evaluate the expression using the tree, will generally be very slow but ocassionally useful for debugging. | |
| Expression | operator[] (const Expression &address) const |
| Expression | top () const |
| int | size () const |
| AmpGen::Array::Array | ( | const Expression & | top, |
| const int & | size, | ||
| const Expression & | address = 0 ) |
| AmpGen::Array::operator Expression | ( | ) |
|
overridevirtual |
Implements AmpGen::IExpression.
| Expression AmpGen::Array::operator[] | ( | const Expression & | address | ) | const |
|
overridevirtual |
| resolver | resolver object to use |
Implements AmpGen::IExpression.
|
overridevirtual |
Implements AmpGen::IExpression.
|
inline |