26 #if ! defined (octave_hook_fcn_h)
27 #define octave_hook_fcn_h 1
29 #include "octave-config.h"
51 virtual std::string
id (
void)
const {
return ""; }
53 virtual bool is_valid (
void)
const {
return false; }
64 static std::shared_ptr<base_hook_function>
79 std::string
id (
void)
const {
return m_rep->id (); }
85 m_rep->eval (initial_args);
90 std::shared_ptr<base_hook_function>
m_rep;
127 std::ostringstream buf;
129 m_ident = fh->fcn_name () +
':' + buf.str ();
154 typedef std::map<std::string, hook_function>
map_type;
198 std::string hook_fcn_id = p->first;
204 hook_fcn.
eval (initial_args);
217 #if defined (OCTAVE_PROVIDE_DEPRECATED_SYMBOLS)
218 OCTAVE_DEPRECATED (7,
"use 'octave::base_hook_function' instead")
virtual void eval(const octave_value_list &)
virtual bool is_valid(void) const
base_hook_function(void)=default
virtual ~base_hook_function(void)=default
virtual std::string id(void) const
base_hook_function(const base_hook_function &)=default
std::string id(void) const
fcn_handle_hook_function(const octave_value &fh_arg, const octave_value &d)
void eval(const octave_value_list &initial_args)
bool is_valid(void) const
octave_value m_fcn_handle
const_iterator find(const std::string &id) const
map_type::iterator iterator
~hook_function_list(void)=default
map_type::const_iterator const_iterator
const_iterator end(void) const
void run(const octave_value_list &initial_args=octave_value_list())
std::map< std::string, hook_function > map_type
hook_function_list(const hook_function_list &lst)=default
hook_function_list & operator=(const hook_function_list &lst)=default
iterator find(const std::string &id)
void insert(const std::string &id, const hook_function &f)
hook_function_list(void)=default
hook_function & operator=(const hook_function &hf)=default
bool is_valid(void) const
std::shared_ptr< base_hook_function > m_rep
std::string id(void) const
void eval(const octave_value_list &initial_args)
~hook_function(void)=default
hook_function(const hook_function &hf)=default
bool is_valid(void) const
named_hook_function(const std::string &n, const octave_value &d)
void eval(const octave_value_list &initial_args)
std::string id(void) const
OCTINTERP_API octave_fcn_handle * fcn_handle_value(bool silent=false) const
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE * d
F77_RET_T const F77_DBLE const F77_DBLE * f
octave_function * is_valid_function(const std::string &fcn_name, const std::string &warn_for, bool warn)