|
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 throw () |
| Returns the information whether this item was already saved. | |
| void | markSaved () throw () |
| Marks the item as saved. | |
| ReferencedItem () throw () | |
| Constructor. | |
| virtual | ~ReferencedItem () throw () |
| 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 44 of file ReferencedItem.h.
| ReferencedItem::ReferencedItem | ( | ) | throw () [inline] |
Constructor.
Definition at line 47 of file ReferencedItem.h.
| virtual ReferencedItem::~ReferencedItem | ( | ) | throw () [inline, virtual] |
Destructor.
Definition at line 51 of file ReferencedItem.h.
| ReferencedItem::ReferencedItem | ( | const ReferencedItem & | src | ) | [private] |
Invalidated copy constructor.
| bool ReferencedItem::isSaved | ( | ) | const throw () [inline] |
Returns the information whether this item was already saved.
Definition at line 58 of file ReferencedItem.h.
References myWasSaved.
Referenced by RONet::computeRoute().
| void ReferencedItem::markSaved | ( | ) | throw () [inline] |
| ReferencedItem& ReferencedItem::operator= | ( | const ReferencedItem & | src | ) | [private] |
Invalidated assignment operator.
bool ReferencedItem::myWasSaved [private] |
Information whether the item was already saved.
Definition at line 72 of file ReferencedItem.h.
Referenced by isSaved(), and markSaved().