Eclipse SUMO - Simulation of Urban MObility
ValueSource.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
15 //
16 /****************************************************************************/
17 #ifndef ValueSource_h
18 #define ValueSource_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 
25 
26 // ===========================================================================
27 // class definitions
28 // ===========================================================================
32 template<typename T>
33 class ValueSource {
34 public:
36  virtual ~ValueSource() { }
37  virtual T getValue() const = 0;
38  virtual ValueSource* copy() const = 0;
39  virtual ValueSource<double>* makedoubleReturningCopy() const = 0;
40 
41 };
42 
43 
44 #endif
45 
46 /****************************************************************************/
47 
virtual ~ValueSource()
Definition: ValueSource.h:36
virtual ValueSource * copy() const =0
virtual ValueSource< double > * makedoubleReturningCopy() const =0
virtual T getValue() const =0