From a9fea36cb3c4ce28e2a1f217d3d098a0152c8bb6 Mon Sep 17 00:00:00 2001 From: MediaPipe Team Date: Wed, 12 Oct 2022 11:41:28 -0700 Subject: [PATCH] Put Destination::base_ into private section. (Cleanup.) PiperOrigin-RevId: 480678168 --- mediapipe/framework/api2/builder.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mediapipe/framework/api2/builder.h b/mediapipe/framework/api2/builder.h index 11bcd21c..111451ce 100644 --- a/mediapipe/framework/api2/builder.h +++ b/mediapipe/framework/api2/builder.h @@ -120,6 +120,9 @@ using AllowCast = std::integral_constant && } // namespace internal_builder +template +class SourceImpl; + // These classes wrap references to the underlying source/destination // endpoints, adding type information and the user-visible API. template @@ -137,10 +140,14 @@ class DestinationImpl { return DestinationImpl(&base_); } + private: DestinationBase& base_; + + template + friend class SourceImpl; }; -template +template class SourceImpl { public: using Base = SourceBase;