rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
dynamic_library.hpp
1// SPDX-License-Identifier: GPL-3.0-only
2
3#pragma once
4
5#include "../version.hpp"
6#include "../platform/dynamic_shared_object.h"
7
8#include <string>
9#include <cstdint>
10
11namespace rexlib
12{
13
20{
21public:
27
34
41
45
48
50
56 bool is_open() const noexcept;
57
63 void open(const char* filename);
64
70 void open(const std::string& filename);
71
76 void close() noexcept;
77
84 void* get_symbol(const char* name) const noexcept;
85
92 void* get_symbol(const std::string& name) const noexcept;
93
102 static std::string query_symbol_filename(const void* symbol);
103
104private:
105 void* m_handle;
106};
107
112
113} // namespace rexlib
Container for multidimensional numeric data.
Definition array.hpp:31
RAII style class to load, query and unload dynamic libraries.
Definition dynamic_library.hpp:20
dynamic_library() noexcept
Construct an empty dynamic_library object.
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
void swap(dynamic_library &lhs, dynamic_library &rhs) noexcept
Exchange two dynamic_library objects.