Zen
A cross-platform functional programming language

StructInitItem Class Reference

A struct initialization item for initializing individual members of a struct. More...

#include <Ast.hpp>

Inheritance diagram for StructInitItem:
Node

List of all members.

Public Member Functions

 StructInitItem (const VariableDef &mref, const Ast::Expr &expr)
 Default constructor.
const VariableDefgetMemberRef () const
 Returns the VariableDef for the member to be initialized.
const ExprgetExpr () 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.

Detailed Description

A struct initialization item for initializing individual members of a struct.


Constructor & Destructor Documentation

StructInitItem ( const VariableDef mref,
const Ast::Expr expr 
) [inline]

Default constructor.

Parameters:
mrefThe struct member to be initialized
exprThe expression to initialize the member with

Member Function Documentation

const Expr& getExpr ( ) const [inline]

Returns the expression to initialize the member with.

Returns:
A reference to the initialization expression
const VariableDef& getMemberRef ( ) const [inline]

Returns the VariableDef for the member to be initialized.

Returns:
A reference to the member to be initialized

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines