SUMO - Simulation of Urban MObility
|
Helper base for things that are referenced and have to be saved only once. More...
#include <ReferencedItem.h>
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 | |
ReferencedItem & | operator= (const ReferencedItem &src) |
Invalidated assignment operator. | |
ReferencedItem (const ReferencedItem &src) | |
Invalidated copy constructor. |
Private Attributes | |
bool | myWasSaved |
Information whether the item was already saved. |
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.
|
inline |
Constructor.
Definition at line 48 of file ReferencedItem.h.
|
inlinevirtual |
Destructor.
Definition at line 52 of file ReferencedItem.h.
|
private |
Invalidated copy constructor.
|
inline |
Returns the information whether this item was already saved.
Definition at line 59 of file ReferencedItem.h.
References myWasSaved.
Referenced by RONet::computeRoute(), and ROVehicle::saveAllAsXML().
|
inline |
|
private |
Invalidated assignment operator.
|
private |
Information whether the item was already saved.
Definition at line 73 of file ReferencedItem.h.
Referenced by isSaved(), and markSaved().