MCPcopy Create free account
hub / github.com/Snapchat/Valdi / GeometricPathIterator

Class GeometricPathIterator

valdi_core/src/valdi_core/cpp/Utils/GeometricPath.hpp:39–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37};
38
39class GeometricPathIterator {
40public:
41 GeometricPathIterator(const double* begin, const double* end);
42
43 bool hasNext();
44 bool next();
45 bool readExtent();
46
47 GeometricPathComponentType getComponentType() const;
48
49 constexpr double getValue(size_t index) const {
50 return _values[index];
51 }
52
53private:
54 const double* _it;
55 const double* _end;
56 GeometricPathComponentType _componentType = GeometricPathComponentTypeMove;
57 double _values[6];
58
59 bool readValues(size_t size);
60};
61
62struct GeometricPath {
63 static GeometricPathIterator iterator(const Byte* data, size_t size);

Callers 1

iteratorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected