PostScript engine for Type 4 functions (PostScript functions)

This commit is contained in:
Jakub Melka
2019-03-10 18:12:14 +01:00
parent 214af0629d
commit ea9b513160
3 changed files with 1053 additions and 0 deletions

View File

@@ -150,6 +150,12 @@ public:
}
}
/// Returns the last element of the array
inline const T& back() const { return m_variableBlock.empty() ? m_flatBlock[m_flatBlockItemCount - 1] : m_variableBlock.back(); }
/// Erases the last element from the array
inline void pop_back() { resize(size() - 1); }
private:
size_t getFlatBlockSize() const { return m_flatBlockItemCount; }