| 61 | |
| 62 | template <typename T> |
| 63 | void Table<T>::init_shape(int type){ |
| 64 | switch(type){ |
| 65 | case 0: |
| 66 | this->fill_zero(); |
| 67 | break; |
| 68 | case 1: |
| 69 | this->fill_sine(); |
| 70 | break; |
| 71 | case 2: |
| 72 | this->fill_cosine(); |
| 73 | break; |
| 74 | case 3: |
| 75 | this->fill_halfsine(); |
| 76 | break; |
| 77 | case 4: |
| 78 | this->fill_halfcos(); |
| 79 | break; |
| 80 | case 5: |
| 81 | this->fill_saw(); |
| 82 | break; |
| 83 | case 6: |
| 84 | this->fill_triangle(); |
| 85 | break; |
| 86 | case 7: |
| 87 | this->fill_line(); |
| 88 | default: |
| 89 | this->fill_zero(); |
| 90 | break; |
| 91 | }; |
| 92 | } |
| 93 | |
| 94 | template<typename T> |
| 95 | void Table<T>::fill_zero(){ |
nothing calls this directly
no test coverage detected