Files
comaps/libs/routing/joint.cpp
Alexander Borsuk 76ffc99abd New cpp folder structure
Signed-off-by: Alexander Borsuk <me@alex.bio>
2025-08-14 20:52:04 +07:00

24 lines
403 B
C++

#include "routing/joint.hpp"
#include <sstream>
namespace routing
{
// static
Joint::Id constexpr Joint::kInvalidId;
std::string DebugPrint(Joint const & joint)
{
std::ostringstream oss;
oss << "Joint [";
for (size_t i = 0; i < joint.GetSize(); ++i)
{
if (i > 0)
oss << ", ";
oss << DebugPrint(joint.GetEntry(i));
}
oss << "]";
return oss.str();
}
} // namespace routing