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

AST node for the return statement. More...

#include <return_statement.hpp>

Public Member Functions

 return_statement ()
 Construct a return statement with a nil return value. More...
 
 return_statement (const expression &expr)
 Construct a return statement with the specified return value. More...
 

Public Attributes

expression return_value_
 The value returned. More...
 

Detailed Description

AST node for the return statement.

Definition at line 12 of file return_statement.hpp.

Constructor & Destructor Documentation

§ return_statement() [1/2]

stan::lang::return_statement::return_statement ( )

Construct a return statement with a nil return value.

Definition at line 9 of file return_statement_def.hpp.

§ return_statement() [2/2]

stan::lang::return_statement::return_statement ( const expression expr)

Construct a return statement with the specified return value.

Parameters
[in]exprreturn value

Definition at line 11 of file return_statement_def.hpp.

Member Data Documentation

§ return_value_

expression stan::lang::return_statement::return_value_

The value returned.

Definition at line 28 of file return_statement.hpp.


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

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