mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_Param: make things a bit more efficient
This commit is contained in:
parent
3d325043b0
commit
01a4fabf9e
@ -438,7 +438,7 @@ public:
|
||||
|
||||
/// Value getter
|
||||
///
|
||||
T get(void) const {
|
||||
const T &get(void) const {
|
||||
return _value;
|
||||
}
|
||||
|
||||
@ -459,16 +459,10 @@ public:
|
||||
///
|
||||
/// This allows the class to be used in many situations where the value would be legal.
|
||||
///
|
||||
operator T &() {
|
||||
operator const T &() const {
|
||||
return _value;
|
||||
}
|
||||
|
||||
/// Copy assignment from self does nothing.
|
||||
///
|
||||
AP_ParamV<T,PT>& operator =(AP_ParamV<T,PT>& v) {
|
||||
return v;
|
||||
}
|
||||
|
||||
/// Copy assignment from T is equivalent to ::set.
|
||||
///
|
||||
AP_ParamV<T,PT>& operator =(T v) {
|
||||
@ -531,12 +525,6 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
/// Copy assignment from self does nothing.
|
||||
///
|
||||
AP_ParamA<T,N,PT>& operator= (AP_ParamA<T,N,PT>& v) {
|
||||
return v;
|
||||
}
|
||||
|
||||
protected:
|
||||
T _value[N];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user