| 1 | |
|---|
| 2 | #include <hydrogen/SeqScriptIterator.h> |
|---|
| 3 | #include <hydrogen/SeqEvent.h> |
|---|
| 4 | #include <hydrogen/SeqScript.h> |
|---|
| 5 | |
|---|
| 6 | #include <cassert> |
|---|
| 7 | |
|---|
| 8 | #warning "SeqScriptIterator.cpp needs to be IMPLEMENTED." |
|---|
| 9 | |
|---|
| 10 | namespace H2Core |
|---|
| 11 | { |
|---|
| 12 | |
|---|
| 13 | // E stands for SeqEvent |
|---|
| 14 | // S stands for SeqScript |
|---|
| 15 | // |
|---|
| 16 | // These abbreviations and the _Self macro are an attempt to make the code |
|---|
| 17 | // READABLE. :-) |
|---|
| 18 | |
|---|
| 19 | #define _Self _SeqScriptIterator<E,S> |
|---|
| 20 | |
|---|
| 21 | template <typename E, typename S> |
|---|
| 22 | _SeqScriptIterator<E,S>::_SeqScriptIterator() : q(0) |
|---|
| 23 | { |
|---|
| 24 | assert(false); |
|---|
| 25 | } |
|---|
| 26 | |
|---|
| 27 | template <typename E, typename S> |
|---|
| 28 | _SeqScriptIterator<E,S>::_SeqScriptIterator(S* s) : q(s) |
|---|
| 29 | { |
|---|
| 30 | assert(false); |
|---|
| 31 | } |
|---|
| 32 | |
|---|
| 33 | template <typename E, typename S> |
|---|
| 34 | _SeqScriptIterator<E,S>::_SeqScriptIterator(const _SeqScriptIterator<E,S>& o) : q(o.q) |
|---|
| 35 | { |
|---|
| 36 | assert(false); |
|---|
| 37 | } |
|---|
| 38 | |
|---|
| 39 | template <typename E, typename S> |
|---|
| 40 | _SeqScriptIterator<E,S>::~_SeqScriptIterator() |
|---|
| 41 | { |
|---|
| 42 | assert(false); |
|---|
| 43 | } |
|---|
| 44 | |
|---|
| 45 | template <typename E, typename S> |
|---|
| 46 | typename _Self::reference _SeqScriptIterator<E,S>::operator*() const |
|---|
| 47 | { |
|---|
| 48 | assert(false); |
|---|
| 49 | return q->at(0); |
|---|
| 50 | } |
|---|
| 51 | |
|---|
| 52 | template <typename E, typename S> |
|---|
| 53 | typename _Self::pointer _SeqScriptIterator<E,S>::operator->() const |
|---|
| 54 | { |
|---|
| 55 | assert(false); |
|---|
| 56 | return &(q->at(0)); |
|---|
| 57 | } |
|---|
| 58 | |
|---|
| 59 | template <typename E, typename S> |
|---|
| 60 | _Self& _SeqScriptIterator<E,S>::operator++() |
|---|
| 61 | { |
|---|
| 62 | assert(false); |
|---|
| 63 | return *this; |
|---|
| 64 | } |
|---|
| 65 | |
|---|
| 66 | template <typename E, typename S> |
|---|
| 67 | _Self _SeqScriptIterator<E,S>::operator++(int) |
|---|
| 68 | { |
|---|
| 69 | assert(false); |
|---|
| 70 | return *this; |
|---|
| 71 | } |
|---|
| 72 | |
|---|
| 73 | template <typename E, typename S> |
|---|
| 74 | _Self& _SeqScriptIterator<E,S>::operator+=(difference_type n) |
|---|
| 75 | { |
|---|
| 76 | assert(false); |
|---|
| 77 | return *this; |
|---|
| 78 | } |
|---|
| 79 | |
|---|
| 80 | template <typename E, typename S> |
|---|
| 81 | _Self _SeqScriptIterator<E,S>::operator+(difference_type n) const |
|---|
| 82 | { |
|---|
| 83 | assert(false); |
|---|
| 84 | return *this; |
|---|
| 85 | } |
|---|
| 86 | |
|---|
| 87 | template <typename E, typename S> |
|---|
| 88 | _Self& _SeqScriptIterator<E,S>::operator-=(difference_type n) |
|---|
| 89 | { |
|---|
| 90 | assert(false); |
|---|
| 91 | return *this; |
|---|
| 92 | } |
|---|
| 93 | |
|---|
| 94 | template <typename E, typename S> |
|---|
| 95 | _Self _SeqScriptIterator<E,S>::operator-(difference_type n) const |
|---|
| 96 | { |
|---|
| 97 | assert(false); |
|---|
| 98 | return *this; |
|---|
| 99 | } |
|---|
| 100 | |
|---|
| 101 | template <typename E, typename S> |
|---|
| 102 | typename _Self::reference _SeqScriptIterator<E,S>::operator[](difference_type n) const |
|---|
| 103 | { |
|---|
| 104 | assert(false); |
|---|
| 105 | return q->at(0); |
|---|
| 106 | } |
|---|
| 107 | |
|---|
| 108 | template <typename E, typename S> |
|---|
| 109 | bool _SeqScriptIterator<E,S>::operator!=(const _Self& o) const |
|---|
| 110 | { |
|---|
| 111 | assert(false); |
|---|
| 112 | return true; |
|---|
| 113 | } |
|---|
| 114 | |
|---|
| 115 | template class _SeqScriptIterator<SeqEvent, SeqScript>; |
|---|
| 116 | template class _SeqScriptIterator<const SeqEvent, const SeqScript>; |
|---|
| 117 | |
|---|
| 118 | |
|---|
| 119 | } // namespace H2Core |
|---|