]> rtime.felk.cvut.cz Git - hubacji1/bcar.git/blobdiff - incl/pslot.hh
Add parked method
[hubacji1/bcar.git] / incl / pslot.hh
index 50f17ef6c7bc31c418bbc244595029a8a16a0289..85fdb771f4b3f045a62a0eb6d7f640b49f5519bf 100644 (file)
@@ -74,6 +74,9 @@ public:
        /*! Change side of the parking slot. */
        void swap_side();
 
+       /*! Return `true` if car `c` is parking in slot `this`. */
+       bool parked(BicycleCar const& c) const;
+
        friend std::ostream& operator<<(std::ostream& o, ParkingSlot const& s);
 };