Mercurial > jwe > octave
diff libinterp/octave-value/ov-fcn-handle.h @ 26857:ab97008be411 jwe-anon-fcn
use m_ for member variables in function handle and inline function classes
* ov-fcn-handle.cc, ov-fcn-handle.h, ov-fcn-inline.cc,
ov-fcn-inline.h: Use "m_" prefix for member variable names in
octave_fcn_handle and octave_fcn_inline classes.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 06 Mar 2019 07:05:49 +0000 |
parents | 8bd9fd99c12a |
children | 9cd4b045fe3d |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-fcn-handle.h Tue Mar 05 17:31:03 2019 -0800 +++ b/libinterp/octave-value/ov-fcn-handle.h Wed Mar 06 07:05:49 2019 +0000 @@ -57,16 +57,16 @@ static const std::string anonymous; octave_fcn_handle (void) - : fcn (), nm (), m_scope (), m_is_nested (false), + : m_fcn (), m_name (), m_scope (), m_is_nested (false), m_closure_frames (nullptr) { } octave_fcn_handle (const octave::symbol_scope& scope, const std::string& n) - : fcn (), nm (n), m_scope (scope), m_is_nested (false), + : m_fcn (), m_name (n), m_scope (scope), m_is_nested (false), m_closure_frames (nullptr) { - if (! nm.empty () && nm[0] == '@') - nm = nm.substr (1); + if (! m_name.empty () && m_name[0] == '@') + m_name = m_name.substr (1); } octave_fcn_handle (const octave::symbol_scope& scope, @@ -111,9 +111,9 @@ octave_fcn_handle * fcn_handle_value (bool = false) { return this; } - octave_value fcn_val (void) const { return fcn; } + octave_value fcn_val (void) const { return m_fcn; } - std::string fcn_name (void) const { return nm; } + std::string fcn_name (void) const { return m_name; } void push_closure_context (octave::tree_evaluator& tw); @@ -141,7 +141,7 @@ void print_raw (std::ostream& os, bool pr_as_read_syntax = false) const; // Simple function handles are printed without a newline. - bool print_as_scalar (void) const { return nm != anonymous; } + bool print_as_scalar (void) const { return m_name != anonymous; } private: @@ -155,7 +155,7 @@ // anonymous functions and some other special cases). Otherwise, we // perform dynamic lookup based on the name of the function we are // handling and the scope where the funtion handle object was created. - octave_value fcn; + octave_value m_fcn; // The function we would find without considering argument types. We // cache this value so that the function_value and user_function_value @@ -163,7 +163,7 @@ octave_value m_generic_fcn; // The name of the handle, not including the "@". - std::string nm; + std::string m_name; // The scope where this object was defined. octave::symbol_scope m_scope; @@ -184,7 +184,7 @@ namespace octave { extern octave_value - make_fcn_handle (interpreter& interp, const std::string& nm); + make_fcn_handle (interpreter& interp, const std::string& name); } #endif