memgraph/include/utils/iterator/iterator_base.hpp

18 lines
299 B
C++
Raw Normal View History

#pragma once
2016-08-30 12:29:30 +08:00
#include "utils/iterator/count.hpp"
#include "utils/option.hpp"
// Base iterator for next() kind iterator.
// T - type of return value
template <class T>
class IteratorBase
{
public:
2016-08-28 22:47:13 +08:00
virtual ~IteratorBase(){};
virtual Option<T> next() = 0;
2016-08-30 12:29:30 +08:00
virtual Count count() = 0;
};