diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-01-25 22:40:07 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-01-25 23:10:18 +0300 |
commit | 970ad064d8e3150bb9ecef2927db8c9b76291286 (patch) | |
tree | 45248fb917049be95910f2c4b24404a99a127aa9 /yt | |
parent | 24abb4e0b50dd362e8cf30a682d5212252936b09 (diff) | |
download | ydb-970ad064d8e3150bb9ecef2927db8c9b76291286.tar.gz |
Intermediate changes
Diffstat (limited to 'yt')
-rw-r--r-- | yt/cpp/mapreduce/interface/operation.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/yt/cpp/mapreduce/interface/operation.h b/yt/cpp/mapreduce/interface/operation.h index 31252c2737..69c873090d 100644 --- a/yt/cpp/mapreduce/interface/operation.h +++ b/yt/cpp/mapreduce/interface/operation.h @@ -1990,6 +1990,19 @@ public: virtual void Load(IInputStream& stream) override { Load(&stream); } \ Y_PASS_VA_ARGS(Y_SAVELOAD_DEFINE(__VA_ARGS__)) +/// +/// @brief Same as the macro above, but also calls Base class's SaveLoad methods. +#define Y_SAVELOAD_JOB_DERIVED(Base, ...) \ + virtual void Save(IOutputStream& stream) const override { \ + Base::Save(stream); \ + Save(&stream); \ + } \ + virtual void Load(IInputStream& stream) override { \ + Base::Load(stream); \ + Load(&stream); \ + } \ + Y_PASS_VA_ARGS(Y_SAVELOAD_DEFINE(__VA_ARGS__)) + //////////////////////////////////////////////////////////////////////////////// /// |