123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- #pragma once
- /*
- * Copyright 2018-present Facebook, Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- #include <folly/experimental/pushmi/traits.h>
- #include <chrono>
- #include <exception>
- namespace pushmi {
- // property_set
- template <class T, class = void>
- struct property_traits;
- template <class T, class = void>
- struct property_set_traits;
- template <class... PropertyN>
- struct property_set;
- // trait & tag types
- template <class... TN>
- struct is_single;
- template <class... TN>
- struct is_many;
- template <class... TN>
- struct is_flow;
- template <class... TN>
- struct is_receiver;
- template <class... TN>
- struct is_sender;
- template <class... TN>
- struct is_executor;
- template <class... TN>
- struct is_time;
- template <class... TN>
- struct is_constrained;
- template <class... TN>
- struct is_always_blocking;
- template <class... TN>
- struct is_never_blocking;
- template <class... TN>
- struct is_maybe_blocking;
- template <class... TN>
- struct is_fifo_sequence;
- template <class... TN>
- struct is_concurrent_sequence;
- // implementation types
- template <PUSHMI_TYPE_CONSTRAINT(SemiMovable)... TN>
- class receiver;
- template <PUSHMI_TYPE_CONSTRAINT(SemiMovable)... TN>
- class flow_receiver;
- template <PUSHMI_TYPE_CONSTRAINT(SemiMovable)... TN>
- class single_sender;
- template <PUSHMI_TYPE_CONSTRAINT(SemiMovable)... TN>
- class many_sender;
- template <PUSHMI_TYPE_CONSTRAINT(SemiMovable)... TN>
- class constrained_single_sender;
- template <PUSHMI_TYPE_CONSTRAINT(SemiMovable)... TN>
- class time_single_sender;
- template <PUSHMI_TYPE_CONSTRAINT(SemiMovable)... TN>
- class flow_single_sender;
- template <PUSHMI_TYPE_CONSTRAINT(SemiMovable)... TN>
- class flow_many_sender;
- template <class E = std::exception_ptr, class... VN>
- class any_receiver;
- template <
- class PE = std::exception_ptr,
- class PV = std::ptrdiff_t,
- class E = PE,
- class... VN>
- class any_flow_receiver;
- template <class E = std::exception_ptr, class... VN>
- class any_single_sender;
- template <class E = std::exception_ptr, class... VN>
- class any_many_sender;
- template <class PE = std::exception_ptr, class E = PE, class... VN>
- class any_flow_single_sender;
- template <
- class PE = std::exception_ptr,
- class PV = std::ptrdiff_t,
- class E = PE,
- class... VN>
- class any_flow_many_sender;
- template <class E = std::exception_ptr, class C = std::ptrdiff_t, class... VN>
- class any_constrained_single_sender;
- template <
- class E = std::exception_ptr,
- class TP = std::chrono::system_clock::time_point,
- class... VN>
- class any_time_single_sender;
- template <class E = std::exception_ptr>
- struct any_executor;
- template <class E = std::exception_ptr>
- struct any_executor_ref;
- template <class E = std::exception_ptr, class CV = std::ptrdiff_t>
- struct any_constrained_executor;
- template <class E = std::exception_ptr, class TP = std::ptrdiff_t>
- struct any_constrained_executor_ref;
- template <
- class E = std::exception_ptr,
- class TP = std::chrono::system_clock::time_point>
- struct any_time_executor;
- template <
- class E = std::exception_ptr,
- class TP = std::chrono::system_clock::time_point>
- struct any_time_executor_ref;
- namespace operators {}
- namespace extension_operators {}
- namespace aliases {
- namespace v = ::pushmi;
- namespace mi = ::pushmi;
- namespace op = ::pushmi::operators;
- namespace ep = ::pushmi::extension_operators;
- } // namespace aliases
- namespace detail {
- struct any {
- template <class T>
- constexpr any(T&&) noexcept {}
- };
- } // namespace detail
- } // namespace pushmi
|