26 #if ! defined (octave_variables_h)
27 #define octave_variables_h 1
29 #include "octave-config.h"
41 class tree_identifier;
59 OCTAVE_DEPRECATED (6,
"use 'octave::get_function_handle' instead")
62 const std::
string& fname, const std::
string& header,
63 const std::
string& trailer);
65 extern OCTINTERP_API
int
68 extern OCTINTERP_API std::
string
73 int nargout, const
char *nm);
77 int nargout, const
char *nm);
81 int nargout, const
char *nm,
82 int minval = std::numeric_limits<
int>::
min (),
83 int maxval = std::numeric_limits<
int>::
max ());
87 int nargout, const
char *nm,
88 double minval = -
octave::numeric_limits<
double>::
Inf (),
89 double maxval =
octave::numeric_limits<
double>::
Inf ());
93 int nargout, const
char *nm,
bool empty_ok = true);
97 int nargout, const
char *nm, const
char **choices);
101 int nargout, const
char *nm, const
char **choices);
103 #define SET_INTERNAL_VARIABLE(NM) \
104 set_internal_variable (V ## NM, args, nargout, #NM)
106 #define SET_NONEMPTY_INTERNAL_STRING_VARIABLE(NM) \
107 set_internal_variable (V ## NM, args, nargout, #NM, false)
109 #define SET_INTERNAL_VARIABLE_WITH_LIMITS(NM, MINVAL, MAXVAL) \
110 set_internal_variable (V ## NM, args, nargout, #NM, MINVAL, MAXVAL)
113 #define SET_INTERNAL_VARIABLE_CHOICES(NM, CHOICES) \
114 set_internal_variable (V ## NM, args, nargout, #NM, CHOICES)
116 extern OCTINTERP_API std::string
119 OCTAVE_DEPRECATED (5,
"this function will be removed in a future version of Octave")
charNDArray max(char d, const charNDArray &m)
charNDArray min(char d, const charNDArray &m)
static std::string basename(const std::string &s, bool strip_path=false)
OCTINTERP_API octave_function * extract_function(const octave_value &arg, const std::string &warn_for, const std::string &fname, const std::string &header, const std::string &trailer)
OCTINTERP_API string_vector get_struct_elts(const std::string &text)
OCTINTERP_API std::string unique_symbol_name(const std::string &basename)
OCTINTERP_API std::string maybe_missing_function_hook(const std::string &name)
OCTINTERP_API int symbol_exist(const std::string &name, const std::string &type="any")
OCTINTERP_API octave_value set_internal_variable(bool &var, const octave_value_list &args, int nargout, const char *nm)
OCTINTERP_API octave_function * is_valid_function(const octave_value &, const std::string &="", bool warn=false)