Line data Source code
1 : #include "Dynamic/Policy/Action.hpp" 2 : 3 : #include "Dynamic/Env/Connection.hpp" 4 : #include "Dynamic/Env/Lane.hpp" 5 : 6 : using namespace std; 7 : using namespace Dynamic::Env; 8 : 9 0 : Action::Action( 10 : Connection &connection_, 11 : Lane &lane_ 12 0 : ): 13 0 : connection(connection_), lane(lane_) {} 14 : 15 0 : Action::Action(): 16 0 : connection(Connection::LEAVE), lane(Lane::INVALID) {} 17 : 18 0 : bool Action::operator<(const Action &other) const { 19 0 : if(connection != other.connection) 20 0 : return connection < other.connection; 21 : else 22 0 : return lane < other.lane; 23 : }