| 119 | |
| 120 | |
| 121 | void copy(const array2<T> & src, int i_offset = 0, int j_offset = 0, |
| 122 | int width = 0, int height = 0) |
| 123 | |
| 124 | { |
| 125 | |
| 126 | int io = i_offset; |
| 127 | |
| 128 | int jo = j_offset; |
| 129 | |
| 130 | if(width == 0) width = src.get_width(); |
| 131 | |
| 132 | if(height == 0) height = src.get_height(); |
| 133 | |
| 134 | if(io + width > w) return; |
| 135 | |
| 136 | if(jo + height > h) return; |
| 137 | |
| 138 | for(int i=0; i < width; i++) |
| 139 | |
| 140 | for(int j=0; j < height; j++) |
| 141 | |
| 142 | (*this)(io+i, jo+j) = src(i,j); |
| 143 | |
| 144 | } |
| 145 | |
| 146 | |
| 147 |
nothing calls this directly
no test coverage detected