OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
61 T& At(int row, int col) { | 61 T& At(int row, int col) { |
62 CHECK_LE(col, cols_); | 62 CHECK_LE(col, cols_); |
63 return Row(row)[col]; | 63 return Row(row)[col]; |
64 } | 64 } |
65 | 65 |
66 const T& At(int row, int col) const { | 66 const T& At(int row, int col) const { |
67 CHECK_LE(col, cols_); | 67 CHECK_LE(col, cols_); |
68 return Row(row)[col]; | 68 return Row(row)[col]; |
69 } | 69 } |
70 | 70 |
71 int rows() const { | |
Ben Chan
2015/06/17 14:48:56
As a helper class, the rows() and cols() getters s
Peter Kasting
2015/06/17 19:47:29
No one called these. I have no opposition to addi
kjellander_webrtc
2015/06/18 08:22:46
Since it seems there's code that uses them outside
| |
72 return rows_; | |
73 } | |
74 | |
75 int cols() const { | |
76 return cols_; | |
77 } | |
78 | |
79 private: | 71 private: |
80 int rows_; | 72 int rows_; |
81 int cols_; | 73 int cols_; |
82 int alignment_; | 74 int alignment_; |
83 T** head_row_; | 75 T** head_row_; |
84 }; | 76 }; |
85 | 77 |
86 } // namespace webrtc | 78 } // namespace webrtc |
87 | 79 |
88 #endif // WEBRTC_SYSTEM_WRAPPERS_INTERFACE_ALIGNED_ARRAY_ | 80 #endif // WEBRTC_SYSTEM_WRAPPERS_INTERFACE_ALIGNED_ARRAY_ |
89 | 81 |
OLD | NEW |