Skip to content

Commit 55cdb44

Browse files
author
ifsmirnov
committed
Switch TTabletManager to virtual interface
commit_hash:2ce8952e7e1da466264de530778e4d62a490f52c
1 parent 507e7e6 commit 55cdb44

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

yt/yt/core/actions/signal.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ public: \
6161
} \
6262
static_assert(true)
6363

64+
#define DEFINE_SIGNAL_WITH_ACCESSOR_OVERRIDE(TSignature, name) \
65+
DEFINE_SIGNAL_OVERRIDE(TSignature, name); \
66+
::NYT::TCallbackList<TSignature>* Get##name##Signal() override \
67+
{ \
68+
return &name##_; \
69+
} \
70+
static_assert(true)
71+
6472
#define DECLARE_SIGNAL(TSignature, name) \
6573
void Subscribe##name(const ::NYT::TCallback<TSignature>& callback); \
6674
void Unsubscribe##name(const ::NYT::TCallback<TSignature>& callback)
@@ -77,6 +85,10 @@ public: \
7785
virtual void Subscribe##name(const ::NYT::TCallback<TSignature>& callback) = 0; \
7886
virtual void Unsubscribe##name(const ::NYT::TCallback<TSignature>& callback) = 0
7987

88+
#define DECLARE_INTERFACE_SIGNAL_WITH_ACCESSOR(TSignature, name) \
89+
DECLARE_INTERFACE_SIGNAL(TSignature, name); \
90+
virtual ::NYT::TCallbackList<TSignature>* Get##name##Signal() = 0
91+
8092
#define DELEGATE_SIGNAL_WITH_RENAME(declaringType, TSignature, name, delegateTo, delegateName) \
8193
void declaringType::Subscribe##name(const ::NYT::TCallback<TSignature>& callback) \
8294
{ \

0 commit comments

Comments
 (0)