openETCS
case study for the European Train Control System developed for the authors dissertation
|
container template class for input value storages of the type VALUE_T More...
#include <EVCStateMachine.h>
Public Member Functions | |
CInput () throw () | |
default constructor | |
CInput (const INPUT_TYPE_T &Value) throw () | |
general constructor | |
bool | IsModified () throw () |
gets the modified flag | |
INPUT_TYPE_T | operator() () throw () |
functor operator | |
const INPUT_TYPE_T | operator() () const throw () |
functor operator | |
INPUT_TYPE_T & | operator= (const INPUT_TYPE_T &NewValue) throw () |
assigns a new value to the container |
Private Attributes | |
bool | m_bModified |
modified flag for the container value | |
INPUT_TYPE_T | m_Value |
real storage of the value type | |
mutable::std::mutex | m_ValueMutex |
mutex for I/O accesses to the value of the input |
Friends | |
class | oETCS::DF::CStorage |
container template class for input value storages of the type VALUE_T
INPUT_TYPE_T,: | type of container value |
Definition at line 752 of file EVCStateMachine.h.
|
explicit |
default constructor
Initialises m_Value by the default constructor of VALUE_T
Definition at line 902 of file EVCStateMachine.h.
|
explicit |
general constructor
[in] | Value | initial value of the container of template type |
Definition at line 915 of file EVCStateMachine.h.
bool oETCS::DF::CFunctionBlock::CInput< INPUT_TYPE_T >::IsModified | ( | ) | throw () |
gets the modified flag
Returns true if the value mas modified by any operator/method. This methods reset the modified flag.
Definition at line 954 of file EVCStateMachine.h.
Referenced by oETCS::DF::CStorage::Calculate(), oETCS::DF::CDMIInput::Calculate(), and oETCS::DF::CDMIOutput::Calculate().
INPUT_TYPE_T oETCS::DF::CFunctionBlock::CInput< INPUT_TYPE_T >::operator() | ( | ) | throw () |
functor operator
Returns the value.
Definition at line 981 of file EVCStateMachine.h.
const INPUT_TYPE_T oETCS::DF::CFunctionBlock::CInput< INPUT_TYPE_T >::operator() | ( | ) | const throw () |
functor operator
Returns value.
Definition at line 1008 of file EVCStateMachine.h.
INPUT_TYPE_T & oETCS::DF::CFunctionBlock::CInput< INPUT_TYPE_T >::operator= | ( | const INPUT_TYPE_T & | NewValue | ) | throw () |
assigns a new value to the container
[in] | NewValue | the new value |
Definition at line 929 of file EVCStateMachine.h.
|
friend |
Definition at line 841 of file EVCStateMachine.h.
|
private |
modified flag for the container value
Definition at line 830 of file EVCStateMachine.h.
|
private |
real storage of the value type
Definition at line 823 of file EVCStateMachine.h.
Referenced by oETCS::DF::CStorage::Calculate().
|
private |
mutex for I/O accesses to the value of the input
Definition at line 837 of file EVCStateMachine.h.
Copyright (C) 2010-2012 Johannes Feuser (feuser@uni-bremen.de)
The openETCS library is free software: you can redistribute it
and/or modify it under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or any later version.
The openETCS library is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied warranty
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with the openETCS library. If not, see
"http://www.gnu.org/licenses/.