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

AST structure for a range object with a low and high value. More...

#include <range.hpp>

Public Member Functions

 range ()
 Construct a default range object. More...
 
 range (const expression &low, const expression &high)
 Construct a range object with the specified bounds. More...
 
bool has_low () const
 Return true if the lower bound is non-nil. More...
 
bool has_high () const
 Return true if the upper bound is non-nil. More...
 

Public Attributes

expression low_
 Lower bound of range with nil value if only upper bound. More...
 
expression high_
 Upper bound of range with nil value if only upper bound. More...
 

Detailed Description

AST structure for a range object with a low and high value.

Definition at line 14 of file range.hpp.

Constructor & Destructor Documentation

§ range() [1/2]

stan::lang::range::range ( )

Construct a default range object.

Definition at line 9 of file range_def.hpp.

§ range() [2/2]

stan::lang::range::range ( const expression low,
const expression high 
)

Construct a range object with the specified bounds.

Parameters
lowlower bound
highupper bound

Definition at line 11 of file range_def.hpp.

Member Function Documentation

§ has_high()

bool stan::lang::range::has_high ( ) const

Return true if the upper bound is non-nil.

Returns
true if there is an upper bound

Definition at line 18 of file range_def.hpp.

§ has_low()

bool stan::lang::range::has_low ( ) const

Return true if the lower bound is non-nil.

Returns
true if there is a lower bound

Definition at line 14 of file range_def.hpp.

Member Data Documentation

§ high_

expression stan::lang::range::high_

Upper bound of range with nil value if only upper bound.

Definition at line 25 of file range.hpp.

§ low_

expression stan::lang::range::low_

Lower bound of range with nil value if only upper bound.

Definition at line 19 of file range.hpp.


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

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