BioDynaMo  v1.05.159-3be850bb
iterator.h
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------
2 //
3 // Copyright (C) 2021 CERN & University of Surrey for the benefit of the
4 // BioDynaMo collaboration. All Rights Reserved.
5 //
6 // Licensed under the Apache License, Version 2.0 (the "License");
7 // you may not use this file except in compliance with the License.
8 //
9 // See the LICENSE file distributed with this work for details.
10 // See the NOTICE file distributed with this work for additional information
11 // regarding copyright ownership.
12 //
13 // -----------------------------------------------------------------------------
14 
15 #ifndef CORE_UTIL_ITERATOR_H_
16 #define CORE_UTIL_ITERATOR_H_
17 
18 namespace bdm {
19 
20 template <typename T>
21 class Iterator {
22  public:
23  virtual ~Iterator() = default;
24  virtual bool HasNext() const = 0;
25  virtual T Next() = 0;
26 };
27 
28 } // namespace bdm
29 
30 #endif // CORE_UTIL_ITERATOR_H_
virtual T Next()=0
virtual ~Iterator()=default
virtual bool HasNext() const =0
Definition: agent.cc:39