Design Patterns
iterator_interface.h
Go to the documentation of this file.
1 // Based on "Design Patterns: Elements of Reusable Object-Oriented Software"
2 // book by Erich Gamma, John Vlissides, Ralph Johnson, and Richard Helm
3 //
4 // Created by Bartosz Rachwal. The National Institute of Advanced Industrial Science and Technology, Japan.
5 
6 #ifndef OPERATIONAL_ITERATOR_ITERATOR_INTERFACE_H_
7 #define OPERATIONAL_ITERATOR_ITERATOR_INTERFACE_H_
8 
9 namespace operational
10 {
11 namespace iterator
12 {
13 template<class Item>
15 {
16  public:
17  virtual ~IteratorInterface() { };
18 
19  virtual void First() = 0;
20  virtual void Next() = 0;
21  virtual bool IsDone() const = 0;
22  virtual Item CurrentItem() const = 0;
23 };
24 }
25 }
26 
27 #endif
28 
Definition: application.cc:10
virtual ~IteratorInterface()
Definition: iterator_interface.h:17
Definition: iterator_interface.h:14