Stan  2.14.0
probability, sampling & optimization
is_multi_index_vis.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_FUN_IS_MULTI_INDEX_VIS_HPP
2 #define STAN_LANG_AST_FUN_IS_MULTI_INDEX_VIS_HPP
3 
10 #include <boost/variant/static_visitor.hpp>
11 
12 namespace stan {
13  namespace lang {
14 
19  struct is_multi_index_vis : public boost::static_visitor<bool> {
24 
30  bool operator()(const uni_idx& i) const;
31 
37  bool operator()(const multi_idx& i) const;
38 
44  bool operator()(const omni_idx& i) const;
45 
51  bool operator()(const lb_idx& i) const;
52 
58  bool operator()(const ub_idx& i) const;
59 
65  bool operator()(const lub_idx& i) const;
66  };
67  }
68 }
69 #endif
bool operator()(const uni_idx &i) const
Return false.
AST structure to hold a single array or matrix/vector index.
Definition: uni_idx.hpp:12
Probability, optimization and sampling library.
AST structure for lower and upper bounds.
Definition: lub_idx.hpp:12
AST structure for holding an upper-bound index.
Definition: ub_idx.hpp:12
AST structure for representing all legal indexes.
Definition: omni_idx.hpp:10
Visitor for callback to determine if an index is a multiple index or a single index.
is_multi_index_vis()
Construct a multi-index visitor.
AST structure for holding a lower-bound index.
Definition: lb_idx.hpp:12

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