23 #if ! defined (octave_variables_h) 24 #define octave_variables_h 1 26 #include "octave-config.h" 38 class tree_identifier;
68 extern OCTINTERP_API
bool 71 extern OCTINTERP_API
int 99 int nargout,
const char *
nm,
bool empty_ok =
true);
103 int nargout,
const char *
nm,
const char **choices);
107 int nargout,
const char *
nm,
const char **choices);
109 #define SET_INTERNAL_VARIABLE(NM) \ 110 set_internal_variable (V ## NM, args, nargout, #NM) 112 #define SET_NONEMPTY_INTERNAL_STRING_VARIABLE(NM) \ 113 set_internal_variable (V ## NM, args, nargout, #NM, false) 115 #define SET_INTERNAL_VARIABLE_WITH_LIMITS(NM, MINVAL, MAXVAL) \ 116 set_internal_variable (V ## NM, args, nargout, #NM, MINVAL, MAXVAL) 119 #define SET_INTERNAL_VARIABLE_CHOICES(NM, CHOICES) \ 120 set_internal_variable (V ## NM, args, nargout, #NM, CHOICES) 124 OCTAVE_DEPRECATED (4.4,
"use 'interpreter::mlock' instead")
125 extern OCTINTERP_API
void mlock (
void);
128 extern OCTINTERP_API
void munlock (const
std::
string&);
131 extern OCTINTERP_API
bool mislocked (const
std::
string&);
148 OCTAVE_DEPRECATED (4.4, "use 'symbol_table::varval'
instead")
152 OCTAVE_DEPRECATED (4.4, "use 'symbol_table::global_varval'
instead")
156 OCTAVE_DEPRECATED (4.4, "use 'symbol_table::global_assign'
instead")
157 extern OCTINTERP_API
void 160 OCTAVE_DEPRECATED (4.4, "use 'symbol_table::top_level_varval'
instead")
164 OCTAVE_DEPRECATED (4.4, "use 'symbol_table::top_level_assign'
instead")
165 extern OCTINTERP_API
void OCTINTERP_API void clear_function(const std::string &nm)
OCTINTERP_API void set_top_level_value(const std::string &nm, const octave_value &val)
OCTINTERP_API void clear_symbol(const std::string &nm)
OCTINTERP_API int symbol_exist(const std::string &name, const std::string &type="any")
OCTINTERP_API string_vector generate_struct_completions(const std::string &text, std::string &prefix, std::string &hint)
identity matrix If supplied two scalar respectively For allows like xample val
OCTINTERP_API void clear_variable(const std::string &nm)
OCTINTERP_API std::string unique_symbol_name(const std::string &basename)
OCTINTERP_API void maybe_missing_function_hook(const std::string &name)
static std::string basename(const std::string &s, bool strip_path=false)
OCTINTERP_API octave_value get_top_level_value(const std::string &nm, bool silent=false)
OCTINTERP_API bool looks_like_struct(const std::string &text, char prev_char)
nd deftypefn *std::string name
OCTAVE_EXPORT octave_value_list isdir nd deftypefn *std::string nm
OCTAVE_EXPORT octave_value_list return the number of command line arguments passed to Octave If called with the optional argument the function xample nargout(@histc)
OCTINTERP_API bool mislocked(const std::string &)
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 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)
OCTINTERP_API octave_value lookup_function_handle(const std::string &nm)
OCTINTERP_API void munlock(const std::string &)
OCTINTERP_API void bind_ans(const octave_value &val, bool print)
OCTINTERP_API void set_global_value(const std::string &nm, const octave_value &val)
charNDArray max(char d, const charNDArray &m)
OCTINTERP_API octave_value get_global_value(const std::string &nm, bool silent=false)
OCTINTERP_API string_vector get_struct_elts(const std::string &text)
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
OCTINTERP_API void clear_mex_functions(void)
charNDArray min(char d, const charNDArray &m)
OCTINTERP_API void mlock(void)