GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
variables.h File Reference
#include "octave-config.h"
#include <limits>
#include <string>
#include "lo-ieee.h"
#include "ov-builtin.h"

Go to the source code of this file.

Macros

#define SET_INTERNAL_VARIABLE(NM)    set_internal_variable (V ## NM, args, nargout, #NM)
 
#define SET_INTERNAL_VARIABLE_CHOICES(NM, CHOICES)    set_internal_variable (V ## NM, args, nargout, #NM, CHOICES)
 
#define SET_INTERNAL_VARIABLE_WITH_LIMITS(NM, MINVAL, MAXVAL)    set_internal_variable (V ## NM, args, nargout, #NM, MINVAL, MAXVAL)
 
#define SET_NONEMPTY_INTERNAL_STRING_VARIABLE(NM)    set_internal_variable (V ## NM, args, nargout, #NM, false)
 

Functions

octave_functionis_valid_function (const octave_value &, const std::string &="", bool warn=false)
 
octave_functionis_valid_function (const std::string &, const std::string &="", bool warn=false)
 
std::string maybe_missing_function_hook (const std::string &name)
 
octave_value set_internal_variable (bool &var, const octave_value_list &args, int nargout, const char *nm)
 
octave_value set_internal_variable (char &var, const octave_value_list &args, int nargout, const char *nm)
 
octave_value set_internal_variable (double &var, const octave_value_list &args, int nargout, const char *nm, double minval=-octave::numeric_limits< double >::Inf(), double maxval=octave::numeric_limits< double >::Inf())
 
octave_value set_internal_variable (int &var, const octave_value_list &args, int nargout, const char *nm, const char **choices)
 
octave_value set_internal_variable (int &var, const octave_value_list &args, int nargout, const char *nm, int minval=std::numeric_limits< int >::min(), int maxval=std::numeric_limits< int >::max())
 
octave_value set_internal_variable (std::string &var, const octave_value_list &args, int nargout, const char *nm, bool empty_ok=true)
 
octave_value set_internal_variable (std::string &var, const octave_value_list &args, int nargout, const char *nm, const char **choices)
 
int symbol_exist (const std::string &name, const std::string &type="any")
 
std::string unique_symbol_name (const std::string &basename)
 

Macro Definition Documentation

◆ SET_INTERNAL_VARIABLE

#define SET_INTERNAL_VARIABLE (   NM)     set_internal_variable (V ## NM, args, nargout, #NM)

Definition at line 112 of file variables.h.

◆ SET_INTERNAL_VARIABLE_CHOICES

#define SET_INTERNAL_VARIABLE_CHOICES (   NM,
  CHOICES 
)     set_internal_variable (V ## NM, args, nargout, #NM, CHOICES)

Definition at line 122 of file variables.h.

◆ SET_INTERNAL_VARIABLE_WITH_LIMITS

#define SET_INTERNAL_VARIABLE_WITH_LIMITS (   NM,
  MINVAL,
  MAXVAL 
)     set_internal_variable (V ## NM, args, nargout, #NM, MINVAL, MAXVAL)

Definition at line 118 of file variables.h.

◆ SET_NONEMPTY_INTERNAL_STRING_VARIABLE

#define SET_NONEMPTY_INTERNAL_STRING_VARIABLE (   NM)     set_internal_variable (V ## NM, args, nargout, #NM, false)

Definition at line 115 of file variables.h.

Function Documentation

◆ is_valid_function() [1/2]

octave_function* is_valid_function ( const octave_value arg,
const std::string &  warn_for = "",
bool  warn = false 
)

◆ is_valid_function() [2/2]

octave_function* is_valid_function ( const std::string &  fcn_name,
const std::string &  warn_for = "",
bool  warn = false 
)

◆ maybe_missing_function_hook()

std::string maybe_missing_function_hook ( const std::string &  name)

◆ set_internal_variable() [1/7]

octave_value set_internal_variable ( bool &  var,
const octave_value_list args,
int  nargout,
const char *  nm 
)

◆ set_internal_variable() [2/7]

octave_value set_internal_variable ( char &  var,
const octave_value_list args,
int  nargout,
const char *  nm 
)

◆ set_internal_variable() [3/7]

octave_value set_internal_variable ( double &  var,
const octave_value_list args,
int  nargout,
const char *  nm,
double  minval = -octave::numeric_limits< double >::Inf(),
double  maxval = octave::numeric_limits< double >::Inf() 
)

◆ set_internal_variable() [4/7]

octave_value set_internal_variable ( int &  var,
const octave_value_list args,
int  nargout,
const char *  nm,
const char **  choices 
)

◆ set_internal_variable() [5/7]

octave_value set_internal_variable ( int &  var,
const octave_value_list args,
int  nargout,
const char *  nm,
int  minval = std::numeric_limits< int >::min(),
int  maxval = std::numeric_limits< int >::max() 
)

◆ set_internal_variable() [6/7]

octave_value set_internal_variable ( std::string &  var,
const octave_value_list args,
int  nargout,
const char *  nm,
bool  empty_ok = true 
)

◆ set_internal_variable() [7/7]

octave_value set_internal_variable ( std::string &  var,
const octave_value_list args,
int  nargout,
const char *  nm,
const char **  choices 
)

◆ symbol_exist()

int symbol_exist ( const std::string &  name,
const std::string &  type = "any" 
)

◆ unique_symbol_name()

std::string unique_symbol_name ( const std::string &  basename)