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
18typedef std::size_t PredictionIndex;
19
28template<typename Index_>
29class Oracle {
30public:
34 Oracle() = default;
35 Oracle(const Oracle&) = default;
36 Oracle& operator=(const Oracle&) = default;
37 Oracle(Oracle&&) = default;
38 Oracle& operator=(Oracle&&) = default;
39 virtual ~Oracle() = default;
47 virtual PredictionIndex total() const = 0;
48
53 virtual Index_ get(PredictionIndex i) const = 0;
54};
55
56}
57
58#endif
Predict future access requests on the target dimension.
Definition Oracle.hpp:29
virtual Index_ get(PredictionIndex i) const =0
virtual PredictionIndex total() const =0
Flexible representations for matrix data.
Definition Extractor.hpp:15
std::size_t PredictionIndex
Definition Oracle.hpp:18