Toolbox snapshot
The Reactive C++ Toolbox
|
Classes | |
class | BasicDisposer |
class | BasicHandle |
class | Buffer |
class | Epoll |
class | EventFd |
struct | FilePolicy |
class | FileWatcher |
FileWatcher watches for changes to files. More... | |
struct | Hook |
class | Inotify |
Inotify provides a simplified interface to an inotify instance. More... | |
struct | MsgEvent |
class | OStream |
class | Reactor |
class | ReactorRunner |
class | StreamBuf |
class | Timer |
class | TimerFd |
class | TimerPool |
class | TimerQueue |
class | Waker |
struct | WatchFile |
struct | WatchFilePolicy |
Typedefs | |
using | ConstBuffer = boost::asio::const_buffer |
using | MutableBuffer = boost::asio::mutable_buffer |
using | EpollEvent = epoll_event |
using | FileHandle = BasicHandle< FilePolicy > |
using | HookList = boost::intrusive::list< Hook, boost::intrusive::constant_time_size< false > > |
using | WatchFileHandle = BasicHandle< WatchFilePolicy > |
using | IoSlot = BasicSlot< CyclTime, int, unsigned > |
using | HistogramPtr = std::unique_ptr< Histogram > |
using | MetricCallbackFunction = std::function< void(CyclTime now, HistogramPtr &&time_hist, HistogramPtr &&work_hist)> |
MetricCallbackFunction implementer is responsible for deleting the Histogram. | |
using | LoopCallbackFunction = std::function< void(CyclTime now)> |
LoopCallbackFunction called at end of each Reactor loop, indicating micros taken and work done. | |
using | TimerSlot = BasicSlot< CyclTime, Timer & > |
Enumerations | |
enum | : unsigned { EpollIn = EPOLLIN , EpollOut = EPOLLOUT , EpollRdHup = EPOLLRDHUP , EpollPri = EPOLLPRI , EpollErr = EPOLLERR , EpollHup = EPOLLHUP , EpollEt = EPOLLET , EpollOneShot = EPOLLONESHOT } |
enum class | Priority { High = 0 , Low = 1 } |
Variables | |
constexpr Duration | NoTimeout {-1} |
using toolbox::io::ConstBuffer = typedef boost::asio::const_buffer |
Definition at line 28 of file Buffer.hpp.
using toolbox::io::MutableBuffer = typedef boost::asio::mutable_buffer |
Definition at line 29 of file Buffer.hpp.
Definition at line 108 of file Handle.hpp.
using toolbox::io::HookList = typedef boost::intrusive::list<Hook, boost::intrusive::constant_time_size<false> > |
Definition at line 50 of file Inotify.hpp.
Definition at line 32 of file Reactor.hpp.
using toolbox::io::HistogramPtr = typedef std::unique_ptr<Histogram> |
Definition at line 31 of file Runner.hpp.
using toolbox::io::MetricCallbackFunction = typedef std::function<void(CyclTime now, HistogramPtr&& time_hist, HistogramPtr&& work_hist)> |
MetricCallbackFunction implementer is responsible for deleting the Histogram.
Definition at line 34 of file Runner.hpp.
using toolbox::io::LoopCallbackFunction = typedef std::function<void(CyclTime now)> |
LoopCallbackFunction called at end of each Reactor loop, indicating micros taken and work done.
Definition at line 37 of file Runner.hpp.
|
strong |
Enumerator | |
---|---|
High | |
Low |
Definition at line 30 of file Reactor.hpp.
|
noexcept |
Definition at line 48 of file Buffer.cpp.
|
noexcept |
Definition at line 56 of file Buffer.cpp.
|
inline |
|
inlinenoexcept |
|
constexpr |
Definition at line 91 of file Handle.hpp.
|
constexpr |
Definition at line 97 of file Handle.hpp.
|
noexcept |
Definition at line 24 of file Hook.cpp.
Referenced by toolbox::io::Reactor::poll().
Definition at line 34 of file Inotify.hpp.
Definition at line 39 of file Inotify.hpp.
|
inlinenoexcept |
Initialise an inotify instance.
Definition at line 53 of file Inotify.hpp.
|
inlinenoexcept |
Initialise an inotify instance.
Definition at line 63 of file Inotify.hpp.
|
inline |
Initialise an inotify instance and returns a file descriptor associated with a new inotify event queue.
Definition at line 70 of file Inotify.hpp.
|
inlinenoexcept |
Add a watch to an initialised inotify instance.
Definition at line 80 of file Inotify.hpp.
|
inline |
Add a watch to an initialised inotify instance.
Definition at line 92 of file Inotify.hpp.
|
noexcept |
|
inlinenoexcept |
Definition at line 31 of file Timer.ut.cpp.
Definition at line 29 of file Reactor.hpp.
Referenced by toolbox::io::Reactor::poll().