openETCS
case study for the European Train Control System developed for the authors dissertation
|
syntax tree data type for GOPPRR More...
#include <GOPPRRSyntaxTree.h>
Public Member Functions | |
CGOPPRRSyntaxTree (GOPPRR::CProject *pProject, GOPPRR::CGraph *pRootGraph=0) throw () | |
general constuctor | |
::GOPPRR::CProject * | GetProject () throw () |
gets the pointer to create GOPRR project | |
GOPPRR::CGraph * | GetRootGraph () const throw () |
gets the pointer to the root graph | |
virtual void * | GetTree () throw () |
gets the syntax tree data structure | |
virtual | ~CGOPPRRSyntaxTree () throw () |
destructor |
Private Attributes | |
GOPPRR::CProject * | m_pProject |
pointer to GOPRR project | |
GOPPRR::CGraph * | m_pRootNode |
pointer to graph, which is the root node |
syntax tree data type for GOPPRR
Definition at line 46 of file GOPPRRSyntaxTree.h.
DSM::CGOPPRRSyntaxTree::CGOPPRRSyntaxTree | ( | GOPPRR::CProject * | pProject, |
GOPPRR::CGraph * | pRootGraph = 0 |
||
) | throw () |
general constuctor
general constructor
in] | pProject: pointer to project (takes possesion) | |
[in] | pRootGraph | pointer to root graph within pProject |
Definition at line 33 of file GOPPRRSyntaxTree.cpp.
|
virtual |
destructor
Definition at line 45 of file GOPPRRSyntaxTree.cpp.
GOPPRR::CProject * DSM::CGOPPRRSyntaxTree::GetProject | ( | ) | throw () |
gets the pointer to create GOPRR project
Definition at line 67 of file GOPPRRSyntaxTree.cpp.
References m_pProject.
Referenced by oETCS::GEN::CMain::Execute(), oETCS::GEN::CCPPGenerator::Generate(), oETCS::GEN::CVMGenerator::HasPSM(), oETCS::UT::CGOPPRRTransformer::TestCreateSyntax(), and oETCS::UT::CGOPPRRTransformer::TestStaticSemantics().
GOPPRR::CGraph * DSM::CGOPPRRSyntaxTree::GetRootGraph | ( | ) | const throw () |
gets the pointer to the root graph
Definition at line 79 of file GOPPRRSyntaxTree.cpp.
References m_pRootNode.
Referenced by oETCS::GEN::CBuildGenerator::Generate(), oETCS::GEN::CVMGenerator::Generate(), and oETCS::GEN::CVMGenerator::GeneratePSM().
|
virtual |
gets the syntax tree data structure
Implements DSM::CSyntaxTree.
Definition at line 55 of file GOPPRRSyntaxTree.cpp.
References m_pRootNode.
|
private |
pointer to GOPRR project
Definition at line 99 of file GOPPRRSyntaxTree.h.
Referenced by GetProject().
|
private |
pointer to graph, which is the root node
Definition at line 106 of file GOPPRRSyntaxTree.h.
Referenced by GetRootGraph(), and GetTree().
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/.