C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::net::dsl::config_base Class Referenceabstract

Base class for configuration objects. More...

#include <config_base.hpp>

Inheritance diagram for caf::net::dsl::config_base:
caf::ref_counted caf::detail::atomic_ref_counted

Public Member Functions

 config_base (multiplexer *mpx)
 
 config_base (const config_base &)=default
 
config_baseoperator= (const config_base &)=default
 
virtual std::string_view name () const noexcept=0
 
virtual void fail (error err) noexcept=0
 
virtual error fail_reason () const =0
 
error cannot_add_ctx ()
 Convenience function for setting a default error if as_has_make_ctx returns nullptr while trying to set an SSL context.
 
virtual has_make_ctxas_has_make_ctx () noexcept=0
 Inspects the data of this configuration and returns a pointer to it as has_make_ctx instance if possible, nullptr otherwise.
 
virtual const has_make_ctxas_has_make_ctx () const noexcept=0
 Inspects the data of this configuration and returns a pointer to it as has_make_ctx instance if possible, nullptr otherwise.
 
bool failed () const noexcept
 
 operator bool () const noexcept
 
bool operator! () const noexcept
 
void call_on_error (const error &what)
 Calls on_error if non-null.
 
- Public Member Functions inherited from caf::detail::atomic_ref_counted
 atomic_ref_counted (const atomic_ref_counted &)
 
atomic_ref_countedoperator= (const atomic_ref_counted &)
 
void ref () const noexcept
 Increases reference count by one.
 
void deref () const noexcept
 Decreases reference count by one and calls request_deletion when it drops to zero.
 
bool unique () const noexcept
 Queries whether there is exactly one reference.
 
size_t get_reference_count () const noexcept
 Queries the current reference count for this object.
 

Public Attributes

multiplexermpx
 The pointer to the parent multiplexer.
 
shared_callback_ptr< void(const error &)> on_error
 User-defined callback for errors.
 

Additional Inherited Members

- Public Types inherited from caf::ref_counted
using super = detail::atomic_ref_counted
 
- Protected Attributes inherited from caf::detail::atomic_ref_counted
std::atomic< size_t > rc_
 

Detailed Description

Base class for configuration objects.


The documentation for this class was generated from the following files: