2 * CS356 Project 01 -- Elevator Simulator
4 * Position Class Specification
14 friend std::ostream& operator<< (std::ostream& os, const Position& rhs);
18 Position (int initial_position);
20 Position& operator+= (const float rhs);
21 Position& operator-= (const float rhs);
23 bool operator== (const Position& rhs) const;
24 bool operator!= (const Position& rhs) const;
25 bool operator< (const Position& rhs) const;
26 bool operator> (const Position& rhs) const;
27 Position operator- (const Position& rhs) const;
28 operator float() const;
36 #endif /* POSITION_HPP */
38 /* vim: set ts=4 sts=4 sw=4 noexpandtab textwidth=112: */