FIRPipelineBridge+Internal.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. * Copyright 2025 Google LLC
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #import "FIRPipelineBridge.h"
  17. #include <memory>
  18. #include "Firestore/core/src/api/expressions.h"
  19. #include "Firestore/core/src/api/firestore.h"
  20. #include "Firestore/core/src/api/pipeline.h"
  21. #include "Firestore/core/src/api/stages.h"
  22. @class FIRFilter;
  23. namespace api = firebase::firestore::api;
  24. NS_ASSUME_NONNULL_BEGIN
  25. @interface FIRExprBridge (Internal)
  26. - (std::shared_ptr<api::Expr>)cppExprWithReader:(FSTUserDataReader *)reader;
  27. @end
  28. @interface FIROrderingBridge (Internal)
  29. - (std::shared_ptr<api::Ordering>)cppOrderingWithReader:(FSTUserDataReader *)reader;
  30. @end
  31. @interface FIRStageBridge (Internal)
  32. - (std::shared_ptr<api::Stage>)cppStageWithReader:(FSTUserDataReader *)reader;
  33. @end
  34. @interface __FIRPipelineSnapshotBridge (Internal)
  35. - (id)initWithCppSnapshot:(api::PipelineSnapshot)snapshot;
  36. @end
  37. @interface __FIRPipelineResultBridge (Internal)
  38. - (id)initWithCppResult:(api::PipelineResult)result db:(std::shared_ptr<api::Firestore>)db;
  39. @end
  40. @interface FIRPipelineBridge (Internal)
  41. - (std::shared_ptr<api::Pipeline>)cppPipelineWithReader:(FSTUserDataReader *)reader;
  42. @end
  43. NS_ASSUME_NONNULL_END