UnCoVer (Using Coverability for Verification)
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
CollectionCallback.h
1 /***************************************************************************
2  * Copyright (C) 2014 by Jan Stückrath <jan.stueckrath@uni-due.de> *
3  * *
4  * This program is free software; you can redistribute it and/or modify *
5  * it under the terms of the GNU General Public License as published by *
6  * the Free Software Foundation; either version 2 of the License, or *
7  * (at your option) any later version. *
8  * *
9  * This program is distributed in the hope that it will be useful, *
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12  * GNU General Public License for more details. *
13  * *
14  * You should have received a copy of the GNU General Public License *
15  * along with this program; if not, write to the *
16  * Free Software Foundation, Inc., *
17  * 51 Franklin St, Fifth Floor, Boston, MA 02110, USA *
18  ***************************************************************************/
19 
20 #ifndef COLLECTIONCALLBACK_H_
21 #define COLLECTIONCALLBACK_H_
22 
23 namespace uncover {
24  namespace basic_types {
25 
33  template<typename E>
35 
36  public:
37 
41  virtual ~CollectionCallback() {}
42 
48  virtual void insert(E element) = 0;
49 
50  protected:
51 
56 
57  };
58 
59  } /* namespace analysis */
60 } /* namespace uncover */
61 
62 #endif /* COLLECTIONCALLBACK_H_ */
CollectionCallback()
Creates a new instance of this object.
Definition: CollectionCallback.h:55
This template provides a possibility to add elements to a collection without having a reference to th...
Definition: CollectionCallback.h:34
virtual void insert(E element)=0
Adds an element to the collection hidden by this callback object.
virtual ~CollectionCallback()
Destroys the current instance of this object.
Definition: CollectionCallback.h:41