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
4#include <cstddef>
5
12namespace tatami {
13
22template<typename Index_>
23class Oracle {
24public:
28 Oracle() = default;
29 Oracle(const Oracle&) = default;
30 Oracle& operator=(const Oracle&) = default;
31 Oracle(Oracle&&) = default;
32 Oracle& operator=(Oracle&&) = default;
33 virtual ~Oracle() = default;
41 virtual std::size_t total() const = 0;
42
47 virtual Index_ get(std::size_t i) const = 0;
48};
49
50}
51
52#endif
Predict future access requests on the target dimension.
Definition Oracle.hpp:23
virtual Index_ get(std::size_t i) const =0
virtual std::size_t total() const =0
Flexible representations for matrix data.
Definition Extractor.hpp:15