annotate libinterp/corefcn/auto-shlib.h @ 33617:ec2635a02328 bytecode-interpreter tip

maint: Merge default to bytecode-interpreter.
author Markus Mützel <markus.muetzel@gmx.de>
date Tue, 21 May 2024 18:29:03 +0200
parents 4b601ca024d5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
30748
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 ////////////////////////////////////////////////////////////////////////
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 //
32632
2e484f9f1f18 maint: update Octave Project Developers copyright for the new year
John W. Eaton <jwe@octave.org>
parents: 31771
diff changeset
3 // Copyright (C) 2022-2024 The Octave Project Developers
30748
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4 //
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 // See the file COPYRIGHT.md in the top-level directory of this
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6 // distribution or <https://octave.org/copyright/>.
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7 //
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 // This file is part of Octave.
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9 //
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10 // Octave is free software: you can redistribute it and/or modify it
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11 // under the terms of the GNU General Public License as published by
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12 // the Free Software Foundation, either version 3 of the License, or
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13 // (at your option) any later version.
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14 //
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15 // Octave is distributed in the hope that it will be useful, but
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16 // WITHOUT ANY WARRANTY; without even the implied warranty of
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18 // GNU General Public License for more details.
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19 //
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20 // You should have received a copy of the GNU General Public License
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21 // along with Octave; see the file COPYING. If not, see
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22 // <https://www.gnu.org/licenses/>.
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23 //
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24 ////////////////////////////////////////////////////////////////////////
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 #if ! defined (octave_auto_shlib_h)
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
27 #define octave_auto_shlib_h 1
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
28
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
29 #include "octave-config.h"
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
30
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
31 #include "oct-shlib.h"
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
32
31605
e88a07dec498 maint: Use macros to begin/end C++ namespaces.
Rik <rik@octave.org>
parents: 30748
diff changeset
33 OCTAVE_BEGIN_NAMESPACE(octave)
30748
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
34
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
35 // This is a convenience class that calls the
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
36 // octave::get_dynamic_library function automatically at construction
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
37 // time. When deriving new classes, you can either use it as a field or
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
38 // as a parent (with multiple inheritance).
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
39
32628
ae4e19c0a2b1 maint: Place class name and class keyword on one line.
Rik <rik@octave.org>
parents: 31771
diff changeset
40 class OCTINTERP_API auto_shlib : public dynamic_library
30748
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
41 {
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
42 public:
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
43
31771
21f9b34eb893 maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents: 31706
diff changeset
44 auto_shlib ();
30748
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
45
31771
21f9b34eb893 maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents: 31706
diff changeset
46 ~auto_shlib () = default;
30748
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
47
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
48 auto_shlib (const auto_shlib&) = default;
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
49
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
50 auto_shlib& operator = (const auto_shlib&) = default;
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
51 };
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
52
31605
e88a07dec498 maint: Use macros to begin/end C++ namespaces.
Rik <rik@octave.org>
parents: 30748
diff changeset
53 OCTAVE_END_NAMESPACE(octave)
30748
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
54
e00154c0a71b move auto_shlib class to separate source file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
55 #endif