#pragma once #include #include #include class LinkHistory { public: using WEntry = std::pair; using Entry = std::pair; Entry add(const Link::WPtr &, unsigned char); [[nodiscard]] Entry getCurrent() const; [[nodiscard]] Entry getAt(float, float *) const; private: std::vector links; float totalLen {0.F}; };