Index: src/core/SkRecordPattern.h |
diff --git a/src/core/SkRecordPattern.h b/src/core/SkRecordPattern.h |
index 68a3aa315e5fba1be6cd7023181b3f98c714f94b..85c38ac5fe6c3666c1bdb124348d579073d2e00a 100644 |
--- a/src/core/SkRecordPattern.h |
+++ b/src/core/SkRecordPattern.h |
@@ -132,6 +132,7 @@ public: |
template <typename T> T* first() { return fHead.get(); } |
template <typename T> T* second() { return fTail.fHead.get(); } |
template <typename T> T* third() { return fTail.fTail.fHead.get(); } |
+ template <typename T> T* fourth() { return fTail.fTail.fTail.fHead.get(); } |
private: |
// If head isn't a Star, try to match at i once. |
@@ -182,6 +183,18 @@ struct Pattern2 : Cons<A, Pattern1<B> > {}; |
template <typename A, typename B, typename C> |
struct Pattern3 : Cons<A, Pattern2<B, C> > {}; |
+template <typename A, typename B, typename C, typename D> |
+struct Pattern4 : Cons<A, Pattern3<B, C, D> > {}; |
+ |
+template <typename A, typename B, typename C, typename D, typename E> |
+struct Pattern5 : Cons<A, Pattern4<B, C, D, E> > {}; |
+ |
+template <typename A, typename B, typename C, typename D, typename E, typename F> |
+struct Pattern6 : Cons<A, Pattern5<B, C, D, E, F> > {}; |
+ |
+template <typename A, typename B, typename C, typename D, typename E, typename F, typename G> |
+struct Pattern7 : Cons<A, Pattern6<B, C, D, E, F, G> > {}; |
+ |
} // namespace SkRecords |
#endif//SkRecordPattern_DEFINED |