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
/****************************************************************************/
14
//
15
/****************************************************************************/
16
#ifndef ValueSource_h
17
#define ValueSource_h
18
19
20
// ===========================================================================
21
// included modules
22
// ===========================================================================
23
24
25
// ===========================================================================
26
// class definitions
27
// ===========================================================================
31
template
<
typename
T>
32
class
ValueSource
{
33
public
:
34
ValueSource
() { }
35
virtual
~ValueSource
() { }
36
virtual
T
getValue
()
const
= 0;
37
virtual
ValueSource
*
copy
()
const
= 0;
38
virtual
ValueSource<double>
*
makedoubleReturningCopy
()
const
= 0;
39
40
};
41
42
43
#endif
44
45
/****************************************************************************/
46
ValueSource::makedoubleReturningCopy
virtual ValueSource< double > * makedoubleReturningCopy() const =0
ValueSource::ValueSource
ValueSource()
Definition:
ValueSource.h:34
ValueSource::getValue
virtual T getValue() const =0
ValueSource::copy
virtual ValueSource * copy() const =0
ValueSource::~ValueSource
virtual ~ValueSource()
Definition:
ValueSource.h:35
ValueSource
Definition:
ValueSource.h:32
src
utils
common
ValueSource.h
Generated on Sun Dec 13 2020 08:44:58 for Eclipse SUMO - Simulation of Urban MObility by
1.8.20