File indexing completed on 2025-01-18 09:11:15
0001
0002
0003
0004
0005
0006
0007
0008
0009 #include "Acts/Definitions/Direction.hpp"
0010
0011 #include <cstdlib>
0012
0013 std::string Acts::Direction::toString() const {
0014 switch (m_value) {
0015 case Value::Positive:
0016 return "forward";
0017 case Value::Negative:
0018 return "backward";
0019 default:
0020 assert(false && "Invalid direction (shouldn't happen)");
0021 std::abort();
0022 }
0023 }
0024
0025 std::ostream& Acts::operator<<(std::ostream& os, Direction dir) {
0026 os << dir.toString();
0027 return os;
0028 }