Mercurial > octave
diff libinterp/octave-value/ov.h @ 23678:dcba41788495
new struct/map constructors
* oct-map.h, oct-map.cc (octave_scalar_map::octave_scalar_map
(const std::map<std::string, octave_value>&)): New constructor.
* ov-struct.h (octave_scalar_struct::octave_scalar_struct
(const std::map<std::string, octave_value>&)): New constructor.
* ov.h, ov.cc (octave_value::octave_value
(const std::map<std::string, octave_value>&)): New constructor.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 22 Jun 2017 15:10:57 -0400 |
parents | be7b884ac589 |
children | ef71711f6d64 |
line wrap: on
line diff
--- a/libinterp/octave-value/ov.h Thu Jun 22 15:08:29 2017 -0400 +++ b/libinterp/octave-value/ov.h Thu Jun 22 15:10:57 2017 -0400 @@ -31,6 +31,7 @@ #include <iosfwd> #include <string> #include <list> +#include <map> #include "Range.h" #include "data-conv.h" @@ -279,6 +280,7 @@ octave_value (const Range& r, bool force_range = false); octave_value (const octave_map& m); octave_value (const octave_scalar_map& m); + octave_value (const std::map<std::string, octave_value>&); octave_value (const octave_map& m, const std::string& id, const std::list<std::string>& plist); octave_value (const octave_scalar_map& m, const std::string& id,