MOOSE - Multiscale Object Oriented Simulation Environment
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Variable.h
Go to the documentation of this file.
1
// Variable.h ---
2
//
3
// Filename: Variable.h
4
// Description:
5
// Author: Subhasis Ray
6
// Maintainer:
7
// Created: Fri May 30 19:37:24 2014 (+0530)
8
// Version:
9
// Last-Updated:
10
// By:
11
// Update #: 0
12
// URL:
13
// Keywords:
14
// Compatibility:
15
//
16
//
17
18
// Commentary:
19
//
20
// Field element for variables in Function class.
21
//
22
//
23
24
// Change log:
25
//
26
//
27
//
28
//
29
// This program is free software; you can redistribute it and/or
30
// modify it under the terms of the GNU General Public License as
31
// published by the Free Software Foundation; either version 3, or
32
// (at your option) any later version.
33
//
34
// This program is distributed in the hope that it will be useful,
35
// but WITHOUT ANY WARRANTY; without even the implied warranty of
36
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
37
// General Public License for more details.
38
//
39
// You should have received a copy of the GNU General Public License
40
// along with this program; see the file COPYING. If not, write to
41
// the Free Software Foundation, Inc., 51 Franklin Street, Fifth
42
// Floor, Boston, MA 02110-1301, USA.
43
//
44
//
45
46
// Code:
47
#ifndef _VARIABLE_H
48
#define _VARIABLE_H
49
53
class
Variable
54
{
55
public
:
56
Variable
():
value
(0.0)
57
{
58
};
59
Variable
(
const
Variable
& rhs):
value
(rhs.
value
)
60
{
61
;
62
}
63
64
virtual
~Variable
(){};
65
66
void
setValue
(
double
v)
67
{
68
value
= v;
69
}
70
71
virtual
void
epSetValue
(
const
Eref
& e,
double
v)
72
{
73
value
= v;
74
}
75
76
double
getValue
()
const
77
{
78
return
value
;
79
}
80
81
void
addMsgCallback
(
const
Eref
& e,
const
string
& finfoName,
ObjId
msg,
unsigned
int
msgLookup);
82
83
static
const
Cinfo
*
initCinfo
();
84
85
double
value
;
86
};
87
88
#endif
89
90
91
92
//
93
// Variable.h ends here
Variable::Variable
Variable(const Variable &rhs)
Definition:
Variable.h:59
Variable
Definition:
Variable.h:53
Variable::~Variable
virtual ~Variable()
Definition:
Variable.h:64
ObjId
Definition:
ObjId.h:20
Variable::setValue
void setValue(double v)
Definition:
Variable.h:66
Variable::epSetValue
virtual void epSetValue(const Eref &e, double v)
Definition:
Variable.h:71
Variable::value
double value
Definition:
Variable.h:85
Variable::addMsgCallback
void addMsgCallback(const Eref &e, const string &finfoName, ObjId msg, unsigned int msgLookup)
Definition:
Variable.cpp:92
Variable::Variable
Variable()
Definition:
Variable.h:56
Variable::getValue
double getValue() const
Definition:
Variable.h:76
Eref
Definition:
Eref.h:26
Variable::initCinfo
static const Cinfo * initCinfo()
Definition:
Variable.cpp:52
Cinfo
Definition:
Cinfo.h:18
moose-core
builtins
Variable.h
Generated on Tue Sep 4 2018 09:05:32 for MOOSE - Multiscale Object Oriented Simulation Environment by
1.8.6