diff libinterp/octave-value/cdef-manager.h @ 29234:853e60367cb6

Set API tags in files in libinterp/octave-value (patch #8919). Add API tag to (template) class definitions. Add API tag to (un-defined) functions and member functions in headers.
author Markus Mützel <markus.muetzel@gmx.de>
date Tue, 29 Dec 2020 18:21:12 +0100
parents b018f553fd85
children 7854d5752dd2
line wrap: on
line diff
--- a/libinterp/octave-value/cdef-manager.h	Tue Dec 29 18:15:36 2020 +0100
+++ b/libinterp/octave-value/cdef-manager.h	Tue Dec 29 18:21:12 2020 +0100
@@ -42,7 +42,7 @@
   {
   public:
 
-    cdef_manager (interpreter& interp);
+    OCTINTERP_API cdef_manager (interpreter& interp);
 
     // No copying!
 
@@ -52,18 +52,20 @@
 
     ~cdef_manager (void) = default;
 
-    cdef_class find_class (const std::string& name,
-                           bool error_if_not_found = true,
-                           bool load_if_not_found = true);
+    OCTINTERP_API cdef_class
+    find_class (const std::string& name, bool error_if_not_found = true,
+                bool load_if_not_found = true);
 
-    octave_value find_method_symbol (const std::string& method_name,
-                                     const std::string& class_name);
+    OCTINTERP_API octave_value
+    find_method_symbol (const std::string& method_name,
+                        const std::string& class_name);
 
-    cdef_package find_package (const std::string& name,
-                               bool error_if_not_found = true,
-                               bool load_if_not_found = true);
+    OCTINTERP_API cdef_package
+    find_package (const std::string& name, bool error_if_not_found = true,
+                  bool load_if_not_found = true);
 
-    octave_value find_package_symbol (const std::string& pack_name);
+    OCTINTERP_API octave_value
+    find_package_symbol (const std::string& pack_name);
 
     void register_class (const cdef_class& cls)
     {
@@ -92,47 +94,50 @@
 
     const cdef_package& meta (void) const { return m_meta; }
 
-    cdef_class make_class (const std::string& name,
-                           const std::list<cdef_class>& super_list = std::list<cdef_class> ());
+    OCTINTERP_API cdef_class
+    make_class (const std::string& name,
+                const std::list<cdef_class>& super_list = std::list<cdef_class> ());
 
-    cdef_class make_class (const std::string& name, const cdef_class& super);
+    OCTINTERP_API cdef_class
+    make_class (const std::string& name, const cdef_class& super);
 
-    cdef_class make_meta_class (const std::string& name,
-                                const cdef_class& super);
+    OCTINTERP_API cdef_class
+     make_meta_class (const std::string& name, const cdef_class& super);
 
-    cdef_property make_property (const cdef_class& cls,
-                                 const std::string& name,
-                                 const octave_value& get_method = Matrix (),
-                                 const std::string& get_access = "public",
-                                 const octave_value& set_method = Matrix (),
-                                 const std::string& set_access = "public");
+    OCTINTERP_API cdef_property
+    make_property (const cdef_class& cls, const std::string& name,
+                   const octave_value& get_method = Matrix (),
+                   const std::string& get_access = "public",
+                   const octave_value& set_method = Matrix (),
+                   const std::string& set_access = "public");
 
-    cdef_property make_attribute (const cdef_class& cls,
-                                  const std::string& name);
+    OCTINTERP_API cdef_property
+    make_attribute (const cdef_class& cls, const std::string& name);
 
-    cdef_method make_method (const cdef_class& cls,
-                             const std::string& name,
-                             const octave_value& fcn,
-                             const std::string& m_access = "public",
-                             bool is_static = false);
+    OCTINTERP_API cdef_method
+    make_method (const cdef_class& cls, const std::string& name,
+                 const octave_value& fcn,
+                 const std::string& m_access = "public",
+                 bool is_static = false);
 
-    cdef_method make_method (const cdef_class& cls,
-                             const std::string& name,
-                             octave_builtin::fcn ff,
-                             const std::string& m_access = "public",
-                             bool is_static = false);
+    OCTINTERP_API cdef_method
+    make_method (const cdef_class& cls, const std::string& name,
+                 octave_builtin::fcn ff,
+                 const std::string& m_access = "public",
+                 bool is_static = false);
 
-    cdef_method make_method (const cdef_class& cls,
-                             const std::string& name,
-                             octave_builtin::meth mm,
-                             const std::string& m_access = "public",
-                             bool is_static = false);
+    OCTINTERP_API cdef_method
+    make_method (const cdef_class& cls, const std::string& name,
+                 octave_builtin::meth mm,
+                 const std::string& m_access = "public",
+                 bool is_static = false);
 
-    cdef_package make_package (const std::string& nm,
-                               const std::string& parent = "");
+    OCTINTERP_API cdef_package
+    make_package (const std::string& nm, const std::string& parent = "");
 
-    octave_value find_method (const std::string& class_name,
-                              const std::string& name) const;
+    OCTINTERP_API octave_value
+    find_method (const std::string& class_name,
+                 const std::string& name) const;
 
   private: