aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/actors/core/event_pb.h
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:15 +0300
commit72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch)
treeda2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /library/cpp/actors/core/event_pb.h
parent778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff)
downloadydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/actors/core/event_pb.h')
-rw-r--r--library/cpp/actors/core/event_pb.h52
1 files changed, 26 insertions, 26 deletions
diff --git a/library/cpp/actors/core/event_pb.h b/library/cpp/actors/core/event_pb.h
index d7546b901a..61f3916dce 100644
--- a/library/cpp/actors/core/event_pb.h
+++ b/library/cpp/actors/core/event_pb.h
@@ -141,14 +141,14 @@ namespace NActors {
TEventPBBase() = default;
explicit TEventPBBase(const TRecord& rec)
- {
+ {
Record = rec;
- }
+ }
explicit TEventPBBase(TRecord&& rec)
- {
+ {
Record = std::move(rec);
- }
+ }
TString ToStringHeader() const override {
return Record.GetTypeName();
@@ -394,7 +394,7 @@ namespace NActors {
{}
};
- template <typename TEv, typename TRecord, ui32 TEventType>
+ template <typename TEv, typename TRecord, ui32 TEventType>
class TEventPB : public TEventPBBase<TEv, TRecord, TEventType, TRecordHolder<TRecord> > {
typedef TEventPBBase<TEv, TRecord, TEventType, TRecordHolder<TRecord> > TPbBase;
// NOTE: No extra fields allowed: TEventPB must be a "template typedef"
@@ -406,25 +406,25 @@ namespace NActors {
using TEventPBWithArena = TEventPBBase<TEv, TRecord, TEventType, TArenaRecordHolder<TRecord, InitialBlockSize, MaxBlockSize> >;
template <typename TEv, typename TRecord, ui32 TEventType>
- class TEventShortDebugPB: public TEventPB<TEv, TRecord, TEventType> {
- public:
- using TBase = TEventPB<TEv, TRecord, TEventType>;
- TEventShortDebugPB() = default;
- explicit TEventShortDebugPB(const TRecord& rec)
- : TBase(rec)
- {
- }
- explicit TEventShortDebugPB(TRecord&& rec)
- : TBase(std::move(rec))
- {
- }
- TString ToString() const override {
- return TypeName<TEv>() + " { " + TBase::Record.ShortDebugString() + " }";
- }
- };
+ class TEventShortDebugPB: public TEventPB<TEv, TRecord, TEventType> {
+ public:
+ using TBase = TEventPB<TEv, TRecord, TEventType>;
+ TEventShortDebugPB() = default;
+ explicit TEventShortDebugPB(const TRecord& rec)
+ : TBase(rec)
+ {
+ }
+ explicit TEventShortDebugPB(TRecord&& rec)
+ : TBase(std::move(rec))
+ {
+ }
+ TString ToString() const override {
+ return TypeName<TEv>() + " { " + TBase::Record.ShortDebugString() + " }";
+ }
+ };
template <typename TEv, typename TRecord, ui32 TEventType>
- class TEventPreSerializedPB: public TEventPB<TEv, TRecord, TEventType> {
+ class TEventPreSerializedPB: public TEventPB<TEv, TRecord, TEventType> {
protected:
using TBase = TEventPB<TEv, TRecord, TEventType>;
using TSelf = TEventPreSerializedPB<TEv, TRecord, TEventType>;
@@ -437,13 +437,13 @@ namespace NActors {
explicit TEventPreSerializedPB(const TRecord& rec)
: TBase(rec)
- {
- }
+ {
+ }
explicit TEventPreSerializedPB(TRecord&& rec)
: TBase(std::move(rec))
- {
- }
+ {
+ }
// when remote event received locally this method will merge preserialized data
const TRecord& GetRecord() {