hpx::components::client_base
hpx::components::client_base#
Defined in header hpx/components.hpp.
See Public API for a list of names and headers that are part of the public HPX API.
-
template<typename Derived>
struct is_client<Derived, std::void_t<typename Derived::is_client_tag>> : public true_type#
-
namespace hpx
-
namespace components
Functions
-
template<typename Derived, typename Stub, typename Data>
bool operator==(client_base<Derived, Stub, Data> const &lhs, client_base<Derived, Stub, Data> const &rhs)#
-
template<typename Derived, typename Stub, typename Data>
bool operator<(client_base<Derived, Stub, Data> const &lhs, client_base<Derived, Stub, Data> const &rhs)#
-
template<typename Derived, typename Stub, typename Data>
class client_base : public detail::make_stub::type<Stub># - #include <client_base.hpp>
This class template serves as a base class for client components, providing common functionality such as managing shared state, ID retrieval, and asynchronous operations.
- Template Parameters
Derived – The derived client component type.
Stub – The stub type used for communication.
Data – The extra data type used for additional information.
Public Types
-
using is_client_tag = void#
Public Functions
-
client_base() = default#
-
inline explicit client_base(id_type const &id)#
-
inline explicit client_base(id_type &&id)#
-
client_base(client_base const &rhs) = default#
-
client_base(client_base &&rhs) noexcept = default#
-
~client_base() = default#
-
inline client_base &operator=(hpx::id_type const &id)#
-
inline client_base &operator=(hpx::id_type &&id)#
-
inline client_base &operator=(hpx::future<hpx::id_type> &&f) noexcept#
-
client_base &operator=(client_base const &rhs) = default#
-
client_base &operator=(client_base &&rhs) noexcept = default#
-
inline bool valid() const noexcept#
-
inline explicit operator bool() const noexcept#
-
inline void free()#
-
inline hpx::id_type const &get_id(error_code &ec = hpx::throws) const#
-
inline hpx::shared_future<hpx::id_type> detach()#
-
inline id_type const &get(error_code &ec = hpx::throws) const#
-
inline bool is_ready() const noexcept#
-
inline bool has_value() const noexcept#
-
inline bool has_exception() const noexcept#
-
inline void wait() const#
-
template<typename F>
inline hpx::traits::future_then_result_t<Derived, F> then(launch l, F &&f) const#
-
template<typename F>
inline hpx::traits::future_then_result_t<Derived, F> then(launch::sync_policy l, F &&f) const#
Protected Functions
Protected Attributes
Private Static Functions
-
static inline bool register_as_helper(client_base const &f, std::string symbolic_name, bool manage_lifetime)#
-
template<typename Derived, typename Stub, typename Data>
-
namespace lcos
-
namespace serialization
Functions
-
template<typename Archive, typename Derived, typename Stub, typename Data>
void serialize(Archive &ar, ::hpx::components::client_base<Derived, Stub, Data> &f, unsigned version)#
-
template<typename Archive, typename Derived, typename Stub, typename Data>
-
namespace traits
- template<typename Derived> is_client_tag > > : public true_type
-
namespace components