tatami
C++ API for different matrix representations
Loading...
Searching...
No Matches
Oracle.hpp
Go to the documentation of this file.
1#ifndef TATAMI_ORACLE_HPP
2#define TATAMI_ORACLE_HPP
3
10namespace tatami {
11
20template<typename Index_>
21class Oracle {
22public:
26 Oracle() = default;
27 Oracle(const Oracle&) = default;
28 Oracle& operator=(const Oracle&) = default;
29 Oracle(Oracle&&) = default;
30 Oracle& operator=(Oracle&&) = default;
31 virtual ~Oracle() = default;
39 virtual size_t total() const = 0;
40
45 virtual Index_ get(size_t i) const = 0;
46};
47
48}
49
50#endif
Predict future access requests on the target dimension.
Definition Oracle.hpp:21
virtual size_t total() const =0
virtual Index_ get(size_t i) const =0
Flexible representations for matrix data.
Definition Extractor.hpp:15