openETCS
case study for the European Train Control System developed for the authors dissertation
Public Member Functions | Public Attributes | List of all members
GOPPRR::CGraphicalContainer Struct Reference

graphical container class More...

#include <GraphicalContainer.h>

Collaboration diagram for GOPPRR::CGraphicalContainer:
Collaboration graph

Public Member Functions

 CGraphicalContainer (GOPPRR::CObject *const pContainer, const std::map< std::string,::GOPPRR::CObject * > &ContainedObjects=std::map< std::string,::GOPPRR::CObject * >(), const std::map< std::string,::GOPPRR::CRelationship * > &ContainedRelationships=std::map< std::string,::GOPPRR::CRelationship * >()) throw ()
 defaultconstructor
 CGraphicalContainer (const CGraphicalContainer &Source) throw ()
 copy constructor
CGraphicalContaineroperator= (const CGraphicalContainer &Source) throw ()
 assignment operator
virtual ~CGraphicalContainer () throw ()
 destructor

Public Attributes

::std::map< std::string,
GOPPRR::CObject * > 
m_ContainedObjects
 set of contained objects by another object
::std::map< ::std::string,
GOPPRR::CRelationship * > 
m_ContainedRelationships
 set of contained relationship indexed by OID
GOPPRR::CObjectm_pContainer
 pointer to container object

Detailed Description

graphical container class

Definition at line 42 of file GraphicalContainer.h.

Constructor & Destructor Documentation

GOPPRR::CGraphicalContainer::CGraphicalContainer ( GOPPRR::CObject *const  pContainer,
const std::map< std::string,::GOPPRR::CObject * > &  ContainedObjects = std::map< std::string, ::GOPPRR::CObject* >(),
const std::map< std::string,::GOPPRR::CRelationship * > &  ContainedRelationships = std::map< std::string, ::GOPPRR::CRelationship* >() 
) throw ()

defaultconstructor

Definition at line 30 of file GraphicalContainer.cpp.

GOPPRR::CGraphicalContainer::CGraphicalContainer ( const CGraphicalContainer Source) throw ()

copy constructor

Parameters
[in]Sourceobject to copy

Definition at line 43 of file GraphicalContainer.cpp.

GOPPRR::CGraphicalContainer::~CGraphicalContainer ( ) throw ()
virtual

destructor

Definition at line 56 of file GraphicalContainer.cpp.

Member Function Documentation

GOPPRR::CGraphicalContainer & GOPPRR::CGraphicalContainer::operator= ( const CGraphicalContainer Source) throw ()

assignment operator

Parameters
[in]Sourceobject instance to assign from

Definition at line 66 of file GraphicalContainer.cpp.

References m_pContainer.

Member Data Documentation

::std::map< std::string,GOPPRR::CObject* > GOPPRR::CGraphicalContainer::m_ContainedObjects

set of contained objects by another object

Set of contained objects by another object indexed by their OID.

Definition at line 90 of file GraphicalContainer.h.

::std::map< ::std::string,GOPPRR::CRelationship* > GOPPRR::CGraphicalContainer::m_ContainedRelationships

set of contained relationship indexed by OID

Definition at line 97 of file GraphicalContainer.h.

GOPPRR::CObject* GOPPRR::CGraphicalContainer::m_pContainer

pointer to container object

Definition at line 80 of file GraphicalContainer.h.

Referenced by operator=().


The documentation for this struct 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/.