21 #ifndef ROVehicleCont_h
22 #define ROVehicleCont_h
87 virtual bool add(
const std::string&
id,
ROVehicle* item);
111 bool erase(
const std::string&
id);
void clear()
Deletes all vehicles stored; clears the lists.
A map of named object pointers.
virtual bool add(const std::string &id, ROVehicle *item)
Adds a vehicle to the container.
void rebuildSorted()
Rebuild the internal, sorted list.
A vehicle as used by router.
std::priority_queue< ROVehicle *, std::vector< ROVehicle * >, ROVehicleByDepartureComperator > mySorted
The sorted vehicle list.
const ROVehicle * getTopVehicle() const
Returns the vehicle that departs most early.
bool erase(const std::string &id)
Tries to remove (and delete) the named vehicle.
A container for vehicles sorted by their departure time.
ROVehicleCont()
Constructor.
A function for sorting vehicles by their departure time.
~ROVehicleCont()
Destructor.
ROVehicleCont & operator=(const ROVehicleCont &src)
Invalidated assignment operator.