tatami
C++ API for different matrix representations
Loading...
Searching...
No Matches
Public Member Functions | List of all members
tatami::FixedVectorOracle< Index_ > Class Template Reference

Predict future accesses from a vector containing a fixed sequence. More...

#include <FixedOracle.hpp>

Inheritance diagram for tatami::FixedVectorOracle< Index_ >:
Inheritance graph
[legend]
Collaboration diagram for tatami::FixedVectorOracle< Index_ >:
Collaboration graph
[legend]

Public Member Functions

 FixedVectorOracle (std::vector< Index_ > vector)
 
size_t total () const
 
Index_ get (size_t i) const
 

Detailed Description

template<typename Index_>
class tatami::FixedVectorOracle< Index_ >

Predict future accesses from a vector containing a fixed sequence.

Template Parameters
Index_Integer type of the row/column indices.

Constructor & Destructor Documentation

◆ FixedVectorOracle()

template<typename Index_ >
tatami::FixedVectorOracle< Index_ >::FixedVectorOracle ( std::vector< Index_ vector)
inline
Parameters
vectorVector containing a fixed sequence of indices on the target dimension.

Member Function Documentation

◆ total()

template<typename Index_ >
size_t tatami::FixedVectorOracle< Index_ >::total ( ) const
inlinevirtual
Returns
Total number of predictions.

Implements tatami::Oracle< Index_ >.

◆ get()

template<typename Index_ >
Index_ tatami::FixedVectorOracle< Index_ >::get ( size_t  i) const
inlinevirtual
Parameters
iWhich prediction to return.
Returns
The i-th prediction, to be interpreted as an index on the target dimension.

Implements tatami::Oracle< Index_ >.


The documentation for this class was generated from the following file: