mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 15:13:34 +08:00
Remove direct access to internal data
This commit is contained in:
+2
-11
@@ -34,10 +34,10 @@ template<typename Type, size_t M, size_t N>
|
||||
class Matrix
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
Type _data[M][N] {};
|
||||
|
||||
public:
|
||||
|
||||
// Constructors
|
||||
Matrix() = default;
|
||||
|
||||
@@ -71,15 +71,6 @@ public:
|
||||
* Accessors/ Assignment etc.
|
||||
*/
|
||||
|
||||
Type *data()
|
||||
{
|
||||
return _data[0];
|
||||
}
|
||||
|
||||
const Type *data() const
|
||||
{
|
||||
return _data[0];
|
||||
}
|
||||
|
||||
inline Type operator()(size_t i, size_t j) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user