6 #ifndef TURI_UNITY_SITERABLE_HPP 7 #define TURI_UNITY_SITERABLE_HPP 41 template<
typename Iterator>
44 typedef Iterator iterator;
45 typedef typename Iterator::value_type value_type;
56 virtual Iterator
begin (
size_t segmentid)
const = 0;
59 virtual Iterator
end (
size_t segmentid)
const = 0;
76 virtual size_t read_rows(
size_t row_start,
78 std::vector<typename Iterator::value_type>& out_obj) = 0;
virtual size_t num_segments() const =0
Return the number of segments in the collection.
virtual void reset_iterators()=0
virtual size_t segment_length(size_t segment) const =0
Return the number of rows in the segment.
virtual Iterator end(size_t segmentid) const =0
Return the end iterator of the segment.
virtual size_t read_rows(size_t row_start, size_t row_end, std::vector< typename Iterator::value_type > &out_obj)=0
virtual Iterator begin(size_t segmentid) const =0
Return the begin iterator of the segment.