GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
symrec.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 //
3 // Copyright (C) 1993-2021 The Octave Project Developers
4 //
5 // See the file COPYRIGHT.md in the top-level directory of this
6 // distribution or <https://octave.org/copyright/>.
7 //
8 // This file is part of Octave.
9 //
10 // Octave is free software: you can redistribute it and/or modify it
11 // under the terms of the GNU General Public License as published by
12 // the Free Software Foundation, either version 3 of the License, or
13 // (at your option) any later version.
14 //
15 // Octave is distributed in the hope that it will be useful, but
16 // WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 // GNU General Public License for more details.
19 //
20 // You should have received a copy of the GNU General Public License
21 // along with Octave; see the file COPYING. If not, see
22 // <https://www.gnu.org/licenses/>.
23 //
24 ////////////////////////////////////////////////////////////////////////
25 
26 #if defined (HAVE_CONFIG_H)
27 # include "config.h"
28 #endif
29 
30 #include <sstream>
31 
32 #include "file-ops.h"
33 #include "file-stat.h"
34 #include "oct-env.h"
35 #include "oct-time.h"
36 
37 #include "fcn-info.h"
38 #include "interpreter-private.h"
39 #include "interpreter.h"
40 #include "symrec.h"
41 
42 namespace octave
43 {
44  std::shared_ptr<symbol_record::symbol_record_rep>
46  {
47  return std::shared_ptr<symbol_record::symbol_record_rep> (new symbol_record_rep (*this));
48  }
49 
52  {
53  std::map<std::string, octave_value> m
54  = {{ "frame_offset", m_frame_offset },
55  { "data_offset", m_data_offset },
56  { "name", m_name },
57  { "local", is_local () },
58  { "formal", is_formal () }};
59 
60  return octave_value (m);
61  }
62 }
octave_value dump(void) const
Definition: symrec.cc:51
std::shared_ptr< symbol_record_rep > dup(void) const
Definition: symrec.cc:45
bool is_local(void) const
Definition: symrec.h:189
bool is_formal(void) const
Definition: symrec.h:190
T octave_idx_type m
Definition: mx-inlines.cc:773
return octave_value(v1.char_array_value() . concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string()) ? '\'' :'"'))