Mercurial > hg > octave-nkf
diff src/ov-fcn-handle.h @ 5007:f8c27dad3643
[project @ 2004-09-17 11:42:04 by jwe]
author | jwe |
---|---|
date | Fri, 17 Sep 2004 11:42:04 +0000 |
parents | 352d228d409b |
children | e35b034d3523 |
line wrap: on
line diff
--- a/src/ov-fcn-handle.h +++ b/src/ov-fcn-handle.h @@ -46,6 +46,9 @@ octave_fcn_handle (void) : fcn (), nm () { } + octave_fcn_handle (const std::string& n) + : fcn (), nm (n) { } + octave_fcn_handle (const octave_value& f, const std::string& n) : fcn (f), nm (n) { } @@ -77,6 +80,8 @@ octave_fcn_handle *fcn_handle_value (bool = false) { return this; } + octave_value fcn_val (void) const { return fcn; } + std::string fcn_name (void) const { return nm; } bool save_ascii (std::ostream& os, bool& infnan_warned,