Zen
A cross-platform functional programming language
|
A struct initialization item for initializing individual members of a struct. More...
#include <Ast.hpp>
Public Member Functions | |
StructInitItem (const VariableDef &mref, const Ast::Expr &expr) | |
Default constructor. | |
const VariableDef & | getMemberRef () const |
Returns the VariableDef for the member to be initialized. | |
const Expr & | getExpr () const |
Returns the expression to initialize the member with. | |
Private Attributes | |
const VariableDef & | _mref |
Reference to the member to be initialized. | |
const Expr & | _expr |
Reference to the initialization expression. |
A struct initialization item for initializing individual members of a struct.
StructInitItem | ( | const VariableDef & | mref, |
const Ast::Expr & | expr | ||
) | [inline] |
Default constructor.
mref | The struct member to be initialized |
expr | The expression to initialize the member with |
const Expr& getExpr | ( | ) | const [inline] |
Returns the expression to initialize the member with.
const VariableDef& getMemberRef | ( | ) | const [inline] |
Returns the VariableDef for the member to be initialized.