Toolbox snapshot
The Reactive C++ Toolbox
Loading...
Searching...
No Matches
Public Member Functions | List of all members
toolbox::io::Reactor::Handle Class Reference

#include <toolbox/io/Reactor.hpp>

Public Member Functions

 Handle (Reactor &reactor, int fd, int sid)
 
constexpr Handle (std::nullptr_t=nullptr) noexcept
 
 ~Handle ()
 
 Handle (const Handle &)=delete
 
Handleoperator= (const Handle &)=delete
 
 Handle (Handle &&rhs) noexcept
 
Handleoperator= (Handle &&rhs) noexcept
 
bool empty () const noexcept
 
 operator bool () const noexcept
 
auto fd () const noexcept
 
auto sid () const noexcept
 
void reset (std::nullptr_t=nullptr) noexcept
 
void swap (Handle &rhs) noexcept
 
void set_events (unsigned events, IoSlot slot, std::error_code &ec) noexcept
 Modify I/O event subscription.
 
void set_events (unsigned events, IoSlot slot)
 
void set_events (unsigned events, std::error_code &ec) noexcept
 
void set_events (unsigned events)
 

Detailed Description

Definition at line 48 of file Reactor.hpp.

Constructor & Destructor Documentation

◆ Handle() [1/4]

toolbox::io::Reactor::Handle::Handle ( Reactor reactor,
int  fd,
int  sid 
)
inline

Definition at line 50 of file Reactor.hpp.

◆ Handle() [2/4]

constexpr toolbox::io::Reactor::Handle::Handle ( std::nullptr_t  = nullptr)
inlineconstexprnoexcept

Definition at line 56 of file Reactor.hpp.

◆ ~Handle()

toolbox::io::Reactor::Handle::~Handle ( )
inline

Definition at line 57 of file Reactor.hpp.

◆ Handle() [3/4]

toolbox::io::Reactor::Handle::Handle ( const Handle )
delete

◆ Handle() [4/4]

toolbox::io::Reactor::Handle::Handle ( Handle &&  rhs)
inlinenoexcept

Definition at line 64 of file Reactor.hpp.

Member Function Documentation

◆ operator=() [1/2]

Handle & toolbox::io::Reactor::Handle::operator= ( const Handle )
delete

◆ operator=() [2/2]

Handle & toolbox::io::Reactor::Handle::operator= ( Handle &&  rhs)
inlinenoexcept

Definition at line 73 of file Reactor.hpp.

◆ empty()

bool toolbox::io::Reactor::Handle::empty ( ) const
inlinenoexcept

Definition at line 79 of file Reactor.hpp.

◆ operator bool()

toolbox::io::Reactor::Handle::operator bool ( ) const
inlineexplicitnoexcept

Definition at line 80 of file Reactor.hpp.

◆ fd()

auto toolbox::io::Reactor::Handle::fd ( ) const
inlinenoexcept

Definition at line 81 of file Reactor.hpp.

◆ sid()

auto toolbox::io::Reactor::Handle::sid ( ) const
inlinenoexcept

Definition at line 82 of file Reactor.hpp.

◆ reset()

void toolbox::io::Reactor::Handle::reset ( std::nullptr_t  = nullptr)
inlinenoexcept

Definition at line 84 of file Reactor.hpp.

◆ swap()

void toolbox::io::Reactor::Handle::swap ( Handle rhs)
inlinenoexcept

Definition at line 93 of file Reactor.hpp.

◆ set_events() [1/4]

void toolbox::io::Reactor::Handle::set_events ( unsigned  events,
IoSlot  slot,
std::error_code &  ec 
)
inlinenoexcept

Modify I/O event subscription.

Definition at line 101 of file Reactor.hpp.

◆ set_events() [2/4]

void toolbox::io::Reactor::Handle::set_events ( unsigned  events,
IoSlot  slot 
)
inline

Definition at line 106 of file Reactor.hpp.

◆ set_events() [3/4]

void toolbox::io::Reactor::Handle::set_events ( unsigned  events,
std::error_code &  ec 
)
inlinenoexcept

Definition at line 111 of file Reactor.hpp.

◆ set_events() [4/4]

void toolbox::io::Reactor::Handle::set_events ( unsigned  events)
inline

Definition at line 116 of file Reactor.hpp.


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