SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ReferencedItem Class Reference

Helper base for things that are referenced and have to be saved only once. More...

#include <ReferencedItem.h>

Inheritance diagram for ReferencedItem:
RORouteDef

Public Member Functions

bool isSaved () const
 Returns the information whether this item was already saved.
void markSaved ()
 Marks the item as saved.
 ReferencedItem ()
 Constructor.
virtual ~ReferencedItem ()
 Destructor.

Private Member Functions

ReferencedItemoperator= (const ReferencedItem &src)
 Invalidated assignment operator.
 ReferencedItem (const ReferencedItem &src)
 Invalidated copy constructor.

Private Attributes

bool myWasSaved
 Information whether the item was already saved.

Detailed Description

Helper base for things that are referenced and have to be saved only once.

Basic class for structures which are referenced by other classes. The wish is to have an information whether an instance of a derived class was already saved (together with a referencing class) or shall be saved this time.

Definition at line 45 of file ReferencedItem.h.

Constructor & Destructor Documentation

ReferencedItem::ReferencedItem ( )
inline

Constructor.

Definition at line 48 of file ReferencedItem.h.

virtual ReferencedItem::~ReferencedItem ( )
inlinevirtual

Destructor.

Definition at line 52 of file ReferencedItem.h.

ReferencedItem::ReferencedItem ( const ReferencedItem src)
private

Invalidated copy constructor.

Member Function Documentation

bool ReferencedItem::isSaved ( ) const
inline

Returns the information whether this item was already saved.

Returns
Whether this item was saved

Definition at line 59 of file ReferencedItem.h.

References myWasSaved.

Referenced by RONet::computeRoute(), and ROVehicle::saveAllAsXML().

void ReferencedItem::markSaved ( )
inline

Marks the item as saved.

Definition at line 66 of file ReferencedItem.h.

References myWasSaved.

ReferencedItem& ReferencedItem::operator= ( const ReferencedItem src)
private

Invalidated assignment operator.

Field Documentation

bool ReferencedItem::myWasSaved
private

Information whether the item was already saved.

Definition at line 73 of file ReferencedItem.h.

Referenced by isSaved(), and markSaved().


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