1 #ifndef STAN_LANG_AST_NODE_UB_IDX_HPP 2 #define STAN_LANG_AST_NODE_UB_IDX_HPP 3 4 #include <stan/lang/ast/node/expression.hpp> 5 6 namespace stan { 7 namespace lang { 8 9 /** 10 * AST structure for holding an upper-bound index. 11 */ 12 struct ub_idx { 13 /** 14 * Upper bound. 15 */ 16 expression ub_; 17 18 /** 19 * Construct a default (nil valued) upper-bound index. 20 */ 21 ub_idx(); 22 23 /** 24 * Construct an upper-bound index with specified bound. 25 * 26 * @param ub upper bound 27 */ 28 ub_idx(const expression& ub); // NOLINT(runtime/explicit) 29 }; 30 31 } 32 } 33 #endif 34