FIRPipelineBridge+Internal.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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/pipeline_result_change.h"
  22. #include "Firestore/core/src/api/stages.h"
  23. @class FIRFilter;
  24. namespace api = firebase::firestore::api;
  25. NS_ASSUME_NONNULL_BEGIN
  26. @interface FIRExprBridge (Internal)
  27. - (std::shared_ptr<api::Expr>)cppExprWithReader:(FSTUserDataReader *)reader;
  28. @end
  29. @interface FIROrderingBridge (Internal)
  30. - (api::Ordering)cppOrderingWithReader:(FSTUserDataReader *)reader;
  31. @end
  32. @interface FIRStageBridge (Internal)
  33. - (std::shared_ptr<api::Stage>)cppStageWithReader:(FSTUserDataReader *)reader;
  34. @end
  35. @interface FIRCollectionSourceStageBridge (Internal)
  36. - (id)initWithCppStage:(std::shared_ptr<const firebase::firestore::api::CollectionSource>)stage;
  37. @end
  38. @interface FIRDatabaseSourceStageBridge (Internal)
  39. - (id)initWithCppStage:(std::shared_ptr<const firebase::firestore::api::DatabaseSource>)stage;
  40. @end
  41. @interface FIRCollectionGroupSourceStageBridge (Internal)
  42. - (id)initWithCppStage:
  43. (std::shared_ptr<const firebase::firestore::api::CollectionGroupSource>)stage;
  44. @end
  45. @interface FIRDocumentsSourceStageBridge (Internal)
  46. - (id)initWithCppStage:(std::shared_ptr<const firebase::firestore::api::DocumentsSource>)stage;
  47. @end
  48. @interface FIRWhereStageBridge (Internal)
  49. - (id)initWithCppStage:(std::shared_ptr<const firebase::firestore::api::Where>)stage;
  50. @end
  51. @interface FIRLimitStageBridge (Internal)
  52. - (id)initWithCppStage:(std::shared_ptr<const firebase::firestore::api::LimitStage>)stage;
  53. @end
  54. @interface FIROffsetStageBridge (Internal)
  55. - (id)initWithCppStage:(std::shared_ptr<const firebase::firestore::api::OffsetStage>)stage;
  56. @end
  57. @interface FIRSorStageBridge (Internal)
  58. - (id)initWithCppStage:(std::shared_ptr<const firebase::firestore::api::SortStage>)stage;
  59. @end
  60. @interface __FIRPipelineSnapshotBridge (Internal)
  61. - (id)initWithCppSnapshot:(api::PipelineSnapshot)snapshot;
  62. @end
  63. @interface __FIRPipelineResultBridge (Internal)
  64. - (id)initWithCppResult:(api::PipelineResult)result db:(std::shared_ptr<api::Firestore>)db;
  65. @end
  66. @interface __FIRPipelineResultChangeBridge (Internal)
  67. - (id)initWithCppChange:(api::PipelineResultChange)change db:(std::shared_ptr<api::Firestore>)db;
  68. @end
  69. @interface FIRPipelineBridge (Internal)
  70. - (std::shared_ptr<api::Pipeline>)cppPipelineWithReader:(FSTUserDataReader *)reader;
  71. @end
  72. NS_ASSUME_NONNULL_END