comparison libinterp/octave-value/ov-classdef.h @ 19631:db92e7e28e1f

strip trailing whitespace from most source files * NEWS, doc/interpreter/contributors.in, doc/interpreter/func.txi, doc/interpreter/genpropdoc.m, doc/interpreter/octave_logo.eps, doc/interpreter/plot.txi, doc/interpreter/stmt.txi, examples/data/Makefile.am, libinterp/corefcn/data.cc, libinterp/corefcn/debug.cc, libinterp/corefcn/error.cc, libinterp/corefcn/file-io.cc, libinterp/corefcn/gl-render.cc, libinterp/corefcn/graphics.cc, libinterp/corefcn/graphics.in.h, libinterp/corefcn/load-path.cc, libinterp/corefcn/pr-output.cc, libinterp/corefcn/pt-jit.cc, libinterp/corefcn/strfind.cc, libinterp/corefcn/toplev.cc, libinterp/corefcn/toplev.h, libinterp/corefcn/urlwrite.cc, libinterp/corefcn/variables.cc, libinterp/octave-value/ov-classdef.cc, libinterp/octave-value/ov-classdef.h, libinterp/octave.cc, libinterp/parse-tree/lex.h, libinterp/parse-tree/oct-parse.in.yy, libinterp/parse-tree/pt-classdef.h, liboctave/system/file-ops.cc, liboctave/system/oct-env.cc, m4/acinclude.m4, scripts/deprecated/finite.m, scripts/deprecated/fmod.m, scripts/deprecated/fnmatch.m, scripts/deprecated/luinc.m, scripts/deprecated/octave_tmp_file_name.m, scripts/deprecated/syl.m, scripts/deprecated/usage.m, scripts/general/inputParser.m, scripts/general/interp1.m, scripts/general/interp2.m, scripts/general/interp3.m, scripts/general/isequal.m, scripts/general/private/__isequal__.m, scripts/geometry/voronoi.m, scripts/image/image.m, scripts/image/imshow.m, scripts/image/ind2rgb.m, scripts/linear-algebra/bandwidth.m, scripts/linear-algebra/isbanded.m, scripts/miscellaneous/bzip2.m, scripts/miscellaneous/cast.m, scripts/miscellaneous/copyfile.m, scripts/miscellaneous/delete.m, scripts/miscellaneous/fullfile.m, scripts/miscellaneous/getappdata.m, scripts/miscellaneous/gunzip.m, scripts/miscellaneous/isappdata.m, scripts/miscellaneous/ls.m, scripts/miscellaneous/mex.m, scripts/miscellaneous/movefile.m, scripts/miscellaneous/orderfields.m, scripts/miscellaneous/recycle.m, scripts/miscellaneous/rmappdata.m, scripts/miscellaneous/setfield.m, scripts/miscellaneous/symvar.m, scripts/miscellaneous/tar.m, scripts/miscellaneous/tmpnam.m, scripts/miscellaneous/unpack.m, scripts/miscellaneous/ver.m, scripts/miscellaneous/what.m, scripts/miscellaneous/xor.m, scripts/miscellaneous/zip.m, scripts/optimization/fminbnd.m, scripts/optimization/sqp.m, scripts/path/private/getsavepath.m, scripts/path/savepath.m, scripts/pkg/pkg.m, scripts/pkg/private/installed_packages.m, scripts/plot/draw/plotyy.m, scripts/plot/draw/polar.m, scripts/plot/draw/private/__quiver__.m, scripts/plot/draw/private/__scatter__.m, scripts/plot/draw/private/__stem__.m, scripts/plot/draw/surface.m, scripts/plot/draw/surfnorm.m, scripts/plot/util/copyobj.m, scripts/plot/util/hgload.m, scripts/plot/util/hgsave.m, scripts/plot/util/isprop.m, scripts/plot/util/linkprop.m, scripts/plot/util/private/__go_draw_axes__.m, scripts/set/setdiff.m, scripts/set/union.m, scripts/signal/periodogram.m, scripts/sparse/eigs.m, scripts/sparse/ilu.m, scripts/sparse/qmr.m, scripts/sparse/sprand.m, scripts/sparse/sprandn.m, scripts/specfun/beta.m, scripts/specfun/ellipke.m, scripts/specfun/isprime.m, scripts/statistics/base/lscov.m, scripts/testfun/__run_test_suite__.m, scripts/testfun/test.m: Strip trailing whitespace.
author John W. Eaton <jwe@octave.org>
date Tue, 20 Jan 2015 10:29:54 -0500
parents e0a7718ac085
children 76478d2da117
comparison
equal deleted inserted replaced
19630:0e1f5a750d00 19631:db92e7e28e1f
538 virtual bool is_property (void) const { return false; } 538 virtual bool is_property (void) const { return false; }
539 539
540 virtual bool is_method (void) const { return false; } 540 virtual bool is_method (void) const { return false; }
541 541
542 virtual bool is_package (void) const { return false; } 542 virtual bool is_package (void) const { return false; }
543 543
544 virtual octave_value_list 544 virtual octave_value_list
545 meta_subsref (const std::string& /* type */, 545 meta_subsref (const std::string& /* type */,
546 const std::list<octave_value_list>& /* idx */, 546 const std::list<octave_value_list>& /* idx */,
547 int /* nargout */) 547 int /* nargout */)
548 { 548 {
603 { return get_rep ()->meta_is_postfix_index_handled (type); } 603 { return get_rep ()->meta_is_postfix_index_handled (type); }
604 604
605 private: 605 private:
606 cdef_meta_object_rep* get_rep (void) 606 cdef_meta_object_rep* get_rep (void)
607 { return dynamic_cast<cdef_meta_object_rep *> (cdef_object::get_rep ()); } 607 { return dynamic_cast<cdef_meta_object_rep *> (cdef_object::get_rep ()); }
608 608
609 const cdef_meta_object_rep* get_rep (void) const 609 const cdef_meta_object_rep* get_rep (void) const
610 { return dynamic_cast<const cdef_meta_object_rep *> (cdef_object::get_rep ()); } 610 { return dynamic_cast<const cdef_meta_object_rep *> (cdef_object::get_rep ()); }
611 }; 611 };
612 612
613 class 613 class
708 708
709 private: 709 private:
710 void load_all_methods (void); 710 void load_all_methods (void);
711 711
712 void find_names (std::set<std::string>& names, bool all); 712 void find_names (std::set<std::string>& names, bool all);
713 713
714 void find_properties (std::map<std::string,cdef_property>& props, 714 void find_properties (std::map<std::string,cdef_property>& props,
715 int mode = 0); 715 int mode = 0);
716 716
717 void find_methods (std::map<std::string, cdef_method>& meths, 717 void find_methods (std::map<std::string, cdef_method>& meths,
718 bool only_inherited); 718 bool only_inherited);
802 { get_rep ()->install_method (meth); } 802 { get_rep ()->install_method (meth); }
803 803
804 Cell get_methods (void) { return get_rep ()->get_methods (); } 804 Cell get_methods (void) { return get_rep ()->get_methods (); }
805 805
806 cdef_property find_property (const std::string& nm); 806 cdef_property find_property (const std::string& nm);
807 807
808 void install_property (const cdef_property& prop) 808 void install_property (const cdef_property& prop)
809 { get_rep ()->install_property (prop); } 809 { get_rep ()->install_property (prop); }
810 810
811 Cell get_properties (int mode = property_normal) 811 Cell get_properties (int mode = property_normal)
812 { return get_rep ()->get_properties (mode); } 812 { return get_rep ()->get_properties (mode); }
884 }; 884 };
885 885
886 private: 886 private:
887 cdef_class_rep* get_rep (void) 887 cdef_class_rep* get_rep (void)
888 { return dynamic_cast<cdef_class_rep *> (cdef_object::get_rep ()); } 888 { return dynamic_cast<cdef_class_rep *> (cdef_object::get_rep ()); }
889 889
890 const cdef_class_rep* get_rep (void) const 890 const cdef_class_rep* get_rep (void) const
891 { return dynamic_cast<const cdef_class_rep *> (cdef_object::get_rep ()); } 891 { return dynamic_cast<const cdef_class_rep *> (cdef_object::get_rep ()); }
892 892
893 friend bool operator == (const cdef_class&, const cdef_class&); 893 friend bool operator == (const cdef_class&, const cdef_class&);
894 friend bool operator != (const cdef_class&, const cdef_class&); 894 friend bool operator != (const cdef_class&, const cdef_class&);
959 private: 959 private:
960 cdef_property_rep (const cdef_property_rep& p) 960 cdef_property_rep (const cdef_property_rep& p)
961 : cdef_meta_object_rep (p) { } 961 : cdef_meta_object_rep (p) { }
962 962
963 bool is_recursive_set (const cdef_object& obj) const; 963 bool is_recursive_set (const cdef_object& obj) const;
964 964
965 cdef_property wrap (void) 965 cdef_property wrap (void)
966 { 966 {
967 refcount++; 967 refcount++;
968 return cdef_property (this); 968 return cdef_property (this);
969 } 969 }
1008 const std::string& who = std::string ()) 1008 const std::string& who = std::string ())
1009 { get_rep ()->set_value (obj, val, do_check_access, who); } 1009 { get_rep ()->set_value (obj, val, do_check_access, who); }
1010 1010
1011 bool check_get_access (void) const 1011 bool check_get_access (void) const
1012 { return get_rep ()->check_get_access (); } 1012 { return get_rep ()->check_get_access (); }
1013 1013
1014 bool check_set_access (void) const 1014 bool check_set_access (void) const
1015 { return get_rep ()->check_set_access (); } 1015 { return get_rep ()->check_set_access (); }
1016 1016
1017 std::string get_name (void) const { return get_rep ()->get_name (); } 1017 std::string get_name (void) const { return get_rep ()->get_name (); }
1018 1018
1019 bool is_constant (void) const { return get_rep ()->is_constant (); } 1019 bool is_constant (void) const { return get_rep ()->is_constant (); }
1020 1020
1021 private: 1021 private:
1022 cdef_property_rep* get_rep (void) 1022 cdef_property_rep* get_rep (void)
1023 { return dynamic_cast<cdef_property_rep *> (cdef_object::get_rep ()); } 1023 { return dynamic_cast<cdef_property_rep *> (cdef_object::get_rep ()); }
1024 1024
1025 const cdef_property_rep* get_rep (void) const 1025 const cdef_property_rep* get_rep (void) const
1026 { return dynamic_cast<const cdef_property_rep *> (cdef_object::get_rep ()); } 1026 { return dynamic_cast<const cdef_property_rep *> (cdef_object::get_rep ()); }
1027 }; 1027 };
1028 1028
1029 class 1029 class
1140 bool do_check_access = true, 1140 bool do_check_access = true,
1141 const std::string& who = std::string ()) 1141 const std::string& who = std::string ())
1142 { return get_rep ()->execute (obj, args, nargout, do_check_access, who); } 1142 { return get_rep ()->execute (obj, args, nargout, do_check_access, who); }
1143 1143
1144 bool check_access (void) const { return get_rep ()->check_access (); } 1144 bool check_access (void) const { return get_rep ()->check_access (); }
1145 1145
1146 std::string get_name (void) const { return get_rep ()->get_name (); } 1146 std::string get_name (void) const { return get_rep ()->get_name (); }
1147 1147
1148 bool is_static (void) const { return get_rep ()->is_static (); } 1148 bool is_static (void) const { return get_rep ()->is_static (); }
1149 1149
1150 void set_function (const octave_value& fcn) 1150 void set_function (const octave_value& fcn)
1162 { get_rep ()->mark_as_external (dtype); } 1162 { get_rep ()->mark_as_external (dtype); }
1163 1163
1164 private: 1164 private:
1165 cdef_method_rep* get_rep (void) 1165 cdef_method_rep* get_rep (void)
1166 { return dynamic_cast<cdef_method_rep *> (cdef_object::get_rep ()); } 1166 { return dynamic_cast<cdef_method_rep *> (cdef_object::get_rep ()); }
1167 1167
1168 const cdef_method_rep* get_rep (void) const 1168 const cdef_method_rep* get_rep (void) const
1169 { return dynamic_cast<const cdef_method_rep *> (cdef_object::get_rep ()); } 1169 { return dynamic_cast<const cdef_method_rep *> (cdef_object::get_rep ()); }
1170 }; 1170 };
1171 1171
1172 inline cdef_class 1172 inline cdef_class
1389 static const cdef_package& meta (void) { return _meta; } 1389 static const cdef_package& meta (void) { return _meta; }
1390 1390
1391 private: 1391 private:
1392 cdef_package_rep* get_rep (void) 1392 cdef_package_rep* get_rep (void)
1393 { return dynamic_cast<cdef_package_rep *> (cdef_object::get_rep ()); } 1393 { return dynamic_cast<cdef_package_rep *> (cdef_object::get_rep ()); }
1394 1394
1395 const cdef_package_rep* get_rep (void) const 1395 const cdef_package_rep* get_rep (void) const
1396 { return dynamic_cast<const cdef_package_rep *> (cdef_object::get_rep ()); } 1396 { return dynamic_cast<const cdef_package_rep *> (cdef_object::get_rep ()); }
1397 1397
1398 private: 1398 private:
1399 static cdef_package _meta; 1399 static cdef_package _meta;