Stan  1.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs 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
< 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 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 171 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<fun>, boost::recursive_wrapper<index_op>, boost::recursive_wrapper<binary_op>, boost::recursive_wrapper<unary_op> > stan::gm::expression::expression_t

Definition at line 181 of file ast.hpp.

Constructor & Destructor Documentation

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

Definition at line 300 of file ast_def.cpp.

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

Definition at line 303 of file ast_def.cpp.

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

Definition at line 314 of file ast_def.cpp.

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

Definition at line 315 of file ast_def.cpp.

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

Definition at line 316 of file ast_def.cpp.

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

Definition at line 317 of file ast_def.cpp.

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

Definition at line 318 of file ast_def.cpp.

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

Definition at line 319 of file ast_def.cpp.

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

Definition at line 320 of file ast_def.cpp.

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

Definition at line 321 of file ast_def.cpp.

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

Definition at line 322 of file ast_def.cpp.

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

Definition at line 313 of file ast_def.cpp.

Member Function Documentation

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

Definition at line 306 of file ast_def.cpp.

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

Definition at line 890 of file ast_def.cpp.

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

Definition at line 880 of file ast_def.cpp.

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

Definition at line 885 of file ast_def.cpp.

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

Definition at line 895 of file ast_def.cpp.

Member Data Documentation

expression_t stan::gm::expression::expr_

Definition at line 205 of file ast.hpp.


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

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