Stan  2.14.0
probability, sampling & optimization
Public Member Functions | Public Attributes | List of all members
stan::lang::assignment Struct Reference

AST node for assignment statements. More...

#include <assignment.hpp>

Public Member Functions

 assignment ()
 Construct an empty assignment. More...
 
 assignment (variable_dims &var_dims, expression &expr)
 Construct an assignment with an indexed variable and value. More...
 

Public Attributes

variable_dims var_dims_
 Variable plus indexes. More...
 
expression expr_
 Value being assigned, which appears on the right hand side of the assignment. More...
 
base_var_decl var_type_
 Type of the left hand side variable before indexing. More...
 

Detailed Description

AST node for assignment statements.

Definition at line 14 of file assignment.hpp.

Constructor & Destructor Documentation

§ assignment() [1/2]

stan::lang::assignment::assignment ( )

Construct an empty assignment.

Definition at line 9 of file assignment_def.hpp.

§ assignment() [2/2]

stan::lang::assignment::assignment ( variable_dims var_dims,
expression expr 
)

Construct an assignment with an indexed variable and value.

Parameters
var_dimsvariable and array/matrix indexes
exprright hand side, value being assigned to indexed variable

Definition at line 11 of file assignment_def.hpp.

Member Data Documentation

§ expr_

expression stan::lang::assignment::expr_

Value being assigned, which appears on the right hand side of the assignment.

Definition at line 39 of file assignment.hpp.

§ var_dims_

variable_dims stan::lang::assignment::var_dims_

Variable plus indexes.

For example, a[2,3] for variable a and indexes 2 and 3

Definition at line 33 of file assignment.hpp.

§ var_type_

base_var_decl stan::lang::assignment::var_type_

Type of the left hand side variable before indexing.

Definition at line 44 of file assignment.hpp.


The documentation for this struct was generated from the following files:

     [ Stan Home Page ] © 2011–2016, Stan Development Team.