Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | List of all members
stan::gm::expression Struct Reference

#include <ast.hpp>

Public Types

typedef boost::variant
< boost::recursive_wrapper
< nil >
, boost::recursive_wrapper
< int_literal >
, boost::recursive_wrapper
< double_literal >
, boost::recursive_wrapper
< array_literal >
, boost::recursive_wrapper
< variable >
, boost::recursive_wrapper
< integrate_ode >
, boost::recursive_wrapper
< fun >
, boost::recursive_wrapper
< index_op >
, boost::recursive_wrapper
< binary_op >
, boost::recursive_wrapper
< unary_op > > 
expression_t
 

Public Member Functions

 expression ()
 
 expression (const expression &e)
 
 expression (const nil &expr)
 
 expression (const int_literal &expr)
 
 expression (const double_literal &expr)
 
 expression (const array_literal &expr)
 
 expression (const variable &expr)
 
 expression (const fun &expr)
 
 expression (const integrate_ode &expr)
 
 expression (const index_op &expr)
 
 expression (const binary_op &expr)
 
 expression (const unary_op &expr)
 
 expression (const expression_t &expr_)
 
expr_type expression_type () const
 
expressionoperator+= (const expression &rhs)
 
expressionoperator-= (const expression &rhs)
 
expressionoperator*= (const expression &rhs)
 
expressionoperator/= (const expression &rhs)
 

Public Attributes

expression_t expr_
 

Detailed Description

Definition at line 216 of file ast.hpp.

Member Typedef Documentation

typedef boost::variant<boost::recursive_wrapper<nil>, boost::recursive_wrapper<int_literal>, boost::recursive_wrapper<double_literal>, boost::recursive_wrapper<array_literal>, boost::recursive_wrapper<variable>, boost::recursive_wrapper<integrate_ode>, boost::recursive_wrapper<fun>, boost::recursive_wrapper<index_op>, boost::recursive_wrapper<binary_op>, boost::recursive_wrapper<unary_op> > stan::gm::expression::expression_t

Definition at line 227 of file ast.hpp.

Constructor & Destructor Documentation

stan::gm::expression::expression ( )

Definition at line 564 of file ast_def.cpp.

stan::gm::expression::expression ( const expression e)

Definition at line 567 of file ast_def.cpp.

stan::gm::expression::expression ( const nil expr)

Definition at line 578 of file ast_def.cpp.

stan::gm::expression::expression ( const int_literal expr)

Definition at line 579 of file ast_def.cpp.

stan::gm::expression::expression ( const double_literal expr)

Definition at line 580 of file ast_def.cpp.

stan::gm::expression::expression ( const array_literal expr)

Definition at line 581 of file ast_def.cpp.

stan::gm::expression::expression ( const variable expr)

Definition at line 582 of file ast_def.cpp.

stan::gm::expression::expression ( const fun expr)

Definition at line 584 of file ast_def.cpp.

stan::gm::expression::expression ( const integrate_ode expr)

Definition at line 583 of file ast_def.cpp.

stan::gm::expression::expression ( const index_op expr)

Definition at line 585 of file ast_def.cpp.

stan::gm::expression::expression ( const binary_op expr)

Definition at line 586 of file ast_def.cpp.

stan::gm::expression::expression ( const unary_op expr)

Definition at line 587 of file ast_def.cpp.

stan::gm::expression::expression ( const expression_t expr_)

Definition at line 577 of file ast_def.cpp.

Member Function Documentation

expr_type stan::gm::expression::expression_type ( ) const

Definition at line 570 of file ast_def.cpp.

expression & stan::gm::expression::operator*= ( const expression rhs)

Definition at line 1396 of file ast_def.cpp.

expression & stan::gm::expression::operator+= ( const expression rhs)

Definition at line 1386 of file ast_def.cpp.

expression & stan::gm::expression::operator-= ( const expression rhs)

Definition at line 1391 of file ast_def.cpp.

expression & stan::gm::expression::operator/= ( const expression rhs)

Definition at line 1401 of file ast_def.cpp.

Member Data Documentation

expression_t stan::gm::expression::expr_

Definition at line 252 of file ast.hpp.


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

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