Mercurial > octave
comparison libinterp/octave-value/cdef-class.h @ 30390:a61e1a0f6024 stable
maint: style check C++ files in libinterp/ ahead of 7.1 release.
* Cell.cc, __eigs__.cc, __ichol__.cc, __ilu__.cc, __magick_read__.cc,
__qp__.cc, bitfcns.cc, bsxfun.cc, c-file-ptr-stream.h, ccolamd.cc, cellfun.cc,
data.cc, debug.cc, defun-int.h, dlmread.cc, event-manager.cc, fftn.cc,
file-io.cc, ft-text-renderer.cc, gl2ps-print.cc, graphics.cc, graphics.in.h,
gzfstream.cc, gzfstream.h, jsondecode.cc, jsonencode.cc,
latex-text-renderer.cc, ls-mat5.cc, lu.cc, mex.cc, oct-stream.cc,
oct-strstrm.cc, ordqz.cc, pager.h, pr-output.cc, qz.cc, schur.cc,
sparse-xdiv.cc, sparse-xpow.cc, sparse.cc, stack-frame.h, strfns.cc, svd.cc,
symrcm.cc, symscope.h, sysdep.cc, text-engine.h, text-renderer.h, tril.cc,
variables.h, xdiv.h, __glpk__.cc, __init_fltk__.cc, __init_gnuplot__.cc,
__voronoi__.cc, audiodevinfo.cc, cdef-class.cc, cdef-class.h, cdef-manager.cc,
cdef-manager.h, cdef-method.cc, cdef-object.cc, ov-base-diag.cc,
ov-base-diag.h, ov-base-int.cc, ov-base-int.h, ov-base-mat.cc, ov-base-mat.h,
ov-base-scalar.h, ov-base-sparse.cc, ov-base-sparse.h, ov-base.h,
ov-bool-mat.cc, ov-cell.cc, ov-cell.h, ov-class.cc, ov-class.h, ov-dld-fcn.cc,
ov-intx.h, ov-lazy-idx.cc, ov-lazy-idx.h, ov-mex-fcn.h, ov-perm.cc, ov-perm.h,
ov-range.cc, ov-re-mat.cc, ov-re-mat.h, ov-str-mat.h, ov-struct.cc,
ov-typeinfo.h, ov-usr-fcn.cc, ov.h, parse.h, pt-cell.cc, pt-stmt.cc,
pt-tm-const.cc, pt-walk.cc:
Style check C++ files in libinterp/ ahead of 7.1 release.
author | Rik <rik@octave.org> |
---|---|
date | Sun, 28 Nov 2021 21:52:08 -0800 |
parents | 03ff3f1020cf |
children | fe6d1711feea 838e73617671 |
comparison
equal
deleted
inserted
replaced
30388:bf4cea7b9ba8 | 30390:a61e1a0f6024 |
---|---|
170 OCTINTERP_API void load_all_methods (void); | 170 OCTINTERP_API void load_all_methods (void); |
171 | 171 |
172 OCTINTERP_API void find_names (std::set<std::string>& names, bool all); | 172 OCTINTERP_API void find_names (std::set<std::string>& names, bool all); |
173 | 173 |
174 OCTINTERP_API void | 174 OCTINTERP_API void |
175 find_properties (std::map<std::string,cdef_property>& props, | 175 find_properties (std::map<std::string, cdef_property>& props, |
176 int mode = 0); | 176 int mode = 0); |
177 | 177 |
178 OCTINTERP_API void | 178 OCTINTERP_API void |
179 find_methods (std::map<std::string, cdef_method>& meths, | 179 find_methods (std::map<std::string, cdef_method>& meths, |
180 bool only_inherited, bool include_ctor = false); | 180 bool only_inherited, bool include_ctor = false); |
194 | 194 |
195 std::string m_file_name; | 195 std::string m_file_name; |
196 | 196 |
197 // The methods defined by this class. | 197 // The methods defined by this class. |
198 | 198 |
199 std::map<std::string,cdef_method> m_method_map; | 199 std::map<std::string, cdef_method> m_method_map; |
200 | 200 |
201 // The properties defined by this class. | 201 // The properties defined by this class. |
202 | 202 |
203 std::map<std::string,cdef_property> m_property_map; | 203 std::map<std::string, cdef_property> m_property_map; |
204 | 204 |
205 // The number of members in this class (methods, properties...) | 205 // The number of members in this class (methods, properties...) |
206 | 206 |
207 octave_idx_type m_member_count; | 207 octave_idx_type m_member_count; |
208 | 208 |
221 | 221 |
222 bool m_meta; | 222 bool m_meta; |
223 | 223 |
224 // Utility iterator typedefs. | 224 // Utility iterator typedefs. |
225 | 225 |
226 typedef std::map<std::string,cdef_method>::iterator method_iterator; | 226 typedef std::map<std::string, cdef_method>::iterator method_iterator; |
227 typedef std::map<std::string,cdef_method>::const_iterator method_const_iterator; | 227 typedef std::map<std::string, cdef_method>::const_iterator method_const_iterator; |
228 typedef std::map<std::string,cdef_property>::iterator property_iterator; | 228 typedef std::map<std::string, cdef_property>::iterator property_iterator; |
229 typedef std::map<std::string,cdef_property>::const_iterator property_const_iterator; | 229 typedef std::map<std::string, cdef_property>::const_iterator property_const_iterator; |
230 | 230 |
231 cdef_class_rep (const cdef_class_rep& c) = default; | 231 cdef_class_rep (const cdef_class_rep& c) = default; |
232 }; | 232 }; |
233 | 233 |
234 public: | 234 public: |
404 std::string file_name (void) const { return get_rep ()->file_name (); } | 404 std::string file_name (void) const { return get_rep ()->file_name (); } |
405 | 405 |
406 public: | 406 public: |
407 | 407 |
408 enum | 408 enum |
409 { | 409 { |
410 property_normal, | 410 property_normal, |
411 property_inherited, | 411 property_inherited, |
412 property_all | 412 property_all |
413 }; | 413 }; |
414 | 414 |
415 private: | 415 private: |
416 | 416 |
417 cdef_class_rep * get_rep (void) | 417 cdef_class_rep * get_rep (void) |
418 { | 418 { |