| 37 | }; |
| 38 | |
| 39 | class GeometricPathIterator { |
| 40 | public: |
| 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 | |
| 53 | private: |
| 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 | |
| 62 | struct GeometricPath { |
| 63 | static GeometricPathIterator iterator(const Byte* data, size_t size); |