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

AST node for the type delclaration for function arguments. More...

#include <arg_decl.hpp>

Public Member Functions

 arg_decl ()
 Construct an uninitialized argument declaration. More...
 
 arg_decl (const expr_type &arg_type, const std::string &name)
 Construct an argument declaration with the specified type and variable name. More...
 
base_var_decl base_variable_declaration () const
 Return the base declaration corresponding to this argument declaration. More...
 

Public Attributes

expr_type arg_type_
 Type of the argument variable. More...
 
std::string name_
 Name of the argument variable. More...
 

Detailed Description

AST node for the type delclaration for function arguments.

Definition at line 14 of file arg_decl.hpp.

Constructor & Destructor Documentation

§ arg_decl() [1/2]

stan::lang::arg_decl::arg_decl ( )

Construct an uninitialized argument declaration.

Definition at line 11 of file arg_decl_def.hpp.

§ arg_decl() [2/2]

stan::lang::arg_decl::arg_decl ( const expr_type arg_type,
const std::string &  name 
)

Construct an argument declaration with the specified type and variable name.

Parameters
arg_typeargument variable type
nameargument variable name

Definition at line 13 of file arg_decl_def.hpp.

Member Function Documentation

§ base_variable_declaration()

base_var_decl stan::lang::arg_decl::base_variable_declaration ( ) const

Return the base declaration corresponding to this argument declaration.

Returns
variable declaration for this argument

Definition at line 16 of file arg_decl_def.hpp.

Member Data Documentation

§ arg_type_

expr_type stan::lang::arg_decl::arg_type_

Type of the argument variable.

Definition at line 40 of file arg_decl.hpp.

§ name_

std::string stan::lang::arg_decl::name_

Name of the argument variable.

Definition at line 45 of file arg_decl.hpp.


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

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