26#if ! defined (octave_variables_h)
27#define octave_variables_h 1
29#include "octave-config.h"
41 class tree_identifier;
66extern OCTINTERP_API
int
69extern OCTINTERP_API std::string
74 int nargout,
const char *nm);
78 int nargout,
const char *nm);
82 int nargout,
const char *nm,
88 int nargout,
const char *nm,
94 int nargout,
const char *nm,
bool empty_ok =
true);
98 int nargout,
const char *nm,
const char **choices);
102 int nargout,
const char *nm,
const char **choices);
104extern OCTINTERP_API std::string
109#if defined (OCTAVE_PROVIDE_DEPRECATED_SYMBOLS)
111OCTAVE_DEPRECATED (7,
"use 'octave::symbol_exist' instead")
118OCTAVE_DEPRECATED (7,
"use 'octave::unique_symbol_name' instead")
125OCTAVE_DEPRECATED (7,
"use 'octave::set_internal_variable' instead")
132OCTAVE_DEPRECATED (7,
"use 'octave::set_internal_variable' instead")
139OCTAVE_DEPRECATED (7,
"use 'octave::set_internal_variable' instead")
142 int minval =
std::numeric_limits<
int>::
min (),
int maxval =
std::numeric_limits<
int>::
max ())
147OCTAVE_DEPRECATED (7,
"use 'octave::set_internal_variable' instead")
150 double minval = -
octave::numeric_limits<
double>::
Inf (),
151 double maxval =
octave::numeric_limits<
double>::
Inf ())
156OCTAVE_DEPRECATED (7,
"use 'octave::set_internal_variable' instead")
159 bool empty_ok = true)
164OCTAVE_DEPRECATED (7,
"use 'octave::set_internal_variable' instead")
167 const
char **choices)
172OCTAVE_DEPRECATED (7,
"use 'octave::set_internal_variable' instead")
175 const
char **choices)
180OCTAVE_DEPRECATED (7,
"use 'octave::maybe_missing_function_hook' instead")
187OCTAVE_DEPRECATED (6,
"use 'octave::get_function_handle' instead")
190 const
std::
string& fname, const
std::
string& header,
191 const
std::
string& trailer);
197#define SET_INTERNAL_VARIABLE(NM) \
198 set_internal_variable (V ## NM, args, nargout, #NM)
200#define SET_NONEMPTY_INTERNAL_STRING_VARIABLE(NM) \
201 set_internal_variable (V ## NM, args, nargout, #NM, false)
203#define SET_INTERNAL_VARIABLE_WITH_LIMITS(NM, MINVAL, MAXVAL) \
204 set_internal_variable (V ## NM, args, nargout, #NM, MINVAL, MAXVAL)
207#define SET_INTERNAL_VARIABLE_CHOICES(NM, CHOICES) \
208 set_internal_variable (V ## NM, args, nargout, #NM, CHOICES)
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)
OCTAVE_NAMESPACE_END 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)
OCTAVE_NAMESPACE_BEGIN OCTINTERP_API int symbol_exist(const std::string &name, const std::string &type="any")
OCTINTERP_API octave_function * is_valid_function(const octave_value &, const std::string &="", bool warn=false)
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 octave_value set_internal_variable(bool &var, const octave_value_list &args, int nargout, const char *nm)