openETCS
case study for the European Train Control System developed for the authors dissertation
Public Member Functions | Private Attributes | List of all members
DSM::CGOPPRRSyntaxTree Class Reference

syntax tree data type for GOPPRR More...

#include <GOPPRRSyntaxTree.h>

Inheritance diagram for DSM::CGOPPRRSyntaxTree:
Inheritance graph
Collaboration diagram for DSM::CGOPPRRSyntaxTree:
Collaboration graph

Public Member Functions

 CGOPPRRSyntaxTree (GOPPRR::CProject *pProject, GOPPRR::CGraph *pRootGraph=0) throw ()
 general constuctor
::GOPPRR::CProjectGetProject () throw ()
 gets the pointer to create GOPRR project
GOPPRR::CGraphGetRootGraph () 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::CProjectm_pProject
 pointer to GOPRR project
GOPPRR::CGraphm_pRootNode
 pointer to graph, which is the root node

Detailed Description

syntax tree data type for GOPPRR

Definition at line 46 of file GOPPRRSyntaxTree.h.

Constructor & Destructor Documentation

DSM::CGOPPRRSyntaxTree::CGOPPRRSyntaxTree ( GOPPRR::CProject pProject,
GOPPRR::CGraph pRootGraph = 0 
) throw ()

general constuctor

general constructor

Parameters
in]pProject: pointer to project (takes possesion)
[in]pRootGraphpointer to root graph within pProject

Definition at line 33 of file GOPPRRSyntaxTree.cpp.

DSM::CGOPPRRSyntaxTree::~CGOPPRRSyntaxTree ( ) throw ()
virtual

destructor

Definition at line 45 of file GOPPRRSyntaxTree.cpp.

Member Function Documentation

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().

Here is the caller graph for this function:

GOPPRR::CGraph * DSM::CGOPPRRSyntaxTree::GetRootGraph ( ) const throw ()

gets the pointer to the root graph

Returns
pointer to root graph of current project tree

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().

Here is the caller graph for this function:

void * DSM::CGOPPRRSyntaxTree::GetTree ( ) throw ()
virtual

gets the syntax tree data structure

Returns
pointer to internal syntax tree

Implements DSM::CSyntaxTree.

Definition at line 55 of file GOPPRRSyntaxTree.cpp.

References m_pRootNode.

Member Data Documentation

GOPPRR::CProject* DSM::CGOPPRRSyntaxTree::m_pProject
private

pointer to GOPRR project

Definition at line 99 of file GOPPRRSyntaxTree.h.

Referenced by GetProject().

GOPPRR::CGraph* DSM::CGOPPRRSyntaxTree::m_pRootNode
private

pointer to graph, which is the root node

Definition at line 106 of file GOPPRRSyntaxTree.h.

Referenced by GetRootGraph(), and GetTree().


The documentation for this class was generated from the following files:

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/.