|
@@ -900,9 +900,9 @@ namespace robotics {
|
|
* @brief 改变事件
|
|
* @brief 改变事件
|
|
*/
|
|
*/
|
|
std::vector<std::function<void(_Type const&, _Type const&, linq_change_type, bool)>> changed_event;
|
|
std::vector<std::function<void(_Type const&, _Type const&, linq_change_type, bool)>> changed_event;
|
|
- private:
|
|
|
|
|
|
+ protected:
|
|
std::mutex mutex_;
|
|
std::mutex mutex_;
|
|
- std::vector<_Type>& source_;
|
|
|
|
|
|
+ std::vector<_Type>& source_;
|
|
std::vector<bool> source_ok_;
|
|
std::vector<bool> source_ok_;
|
|
std::vector<std::tuple<_Type, _Type, linq_change_type>> changed_list_;
|
|
std::vector<std::tuple<_Type, _Type, linq_change_type>> changed_list_;
|
|
};
|
|
};
|
|
@@ -1784,10 +1784,10 @@ namespace robotics {
|
|
* @brief 改变事件
|
|
* @brief 改变事件
|
|
*/
|
|
*/
|
|
std::vector<std::function<void(_Type const&, _Type const&, linq_change_type, bool)>> changed_event;
|
|
std::vector<std::function<void(_Type const&, _Type const&, linq_change_type, bool)>> changed_event;
|
|
- private:
|
|
|
|
|
|
+ protected:
|
|
std::mutex mutex_;
|
|
std::mutex mutex_;
|
|
std::vector<bool> source_ok_;
|
|
std::vector<bool> source_ok_;
|
|
- std::vector<std::shared_ptr<_Type>>& source_;
|
|
|
|
|
|
+ std::vector<std::shared_ptr<_Type>>& source_;
|
|
std::vector<std::tuple<_Type, _Type, linq_change_type>> changed_list_;
|
|
std::vector<std::tuple<_Type, _Type, linq_change_type>> changed_list_;
|
|
};
|
|
};
|
|
/**
|
|
/**
|