mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 03:49:12 +08:00
Inline block param getter
This commit is contained in:
committed by
Lorenz Meier
parent
f5ffdba4cc
commit
9618b9417b
@@ -93,9 +93,6 @@ BlockParam<T>::BlockParam(Block *block, const char *name,
|
|||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class T>
|
|
||||||
T BlockParam<T>::get() { return _val; }
|
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
void BlockParam<T>::set(T val)
|
void BlockParam<T>::set(T val)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ public:
|
|||||||
BlockParam(const BlockParam &) = delete;
|
BlockParam(const BlockParam &) = delete;
|
||||||
BlockParam &operator=(const BlockParam &) = delete;
|
BlockParam &operator=(const BlockParam &) = delete;
|
||||||
|
|
||||||
T get();
|
inline T get() const { return _val; }
|
||||||
void commit();
|
void commit();
|
||||||
void set(T val);
|
void set(T val);
|
||||||
void update() override;
|
void update() override;
|
||||||
|
|||||||
Reference in New Issue
Block a user