|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
C++ wrapper for sigset_t with a fluent interface. More...
#include <ah-signal.H>
Public Member Functions | |
| SignalSet () noexcept | |
| Creates an empty signal set. | |
| SignalSet (std::initializer_list< int > signals) noexcept | |
| Creates a signal set from an initializer list. | |
| SignalSet & | add (int signo) noexcept |
| Adds a signal to the set. | |
| SignalSet & | remove (int signo) noexcept |
| Removes a signal from the set. | |
| SignalSet & | clear () noexcept |
| Clears the set (removes all signals). | |
| SignalSet & | fill () noexcept |
| Fills the set with all signals. | |
| bool | contains (int signo) const noexcept |
| Checks if a signal is in the set. | |
| sigset_t * | get () noexcept |
| Returns a pointer to the underlying sigset_t. | |
| const sigset_t * | get () const noexcept |
| Returns a const pointer to the underlying sigset_t. | |
| operator sigset_t * () noexcept | |
| Implicit conversion to sigset_t*. | |
| operator const sigset_t * () const noexcept | |
| Implicit conversion to const sigset_t*. | |
Static Public Member Functions | |
| static SignalSet | full () noexcept |
| Creates a full signal set (all signals). | |
| static SignalSet | empty () noexcept |
| Creates an empty signal set. | |
Private Attributes | |
| sigset_t | set_ |
C++ wrapper for sigset_t with a fluent interface.
Provides a type-safe way to manipulate signal sets.
Definition at line 132 of file ah-signal.H.
|
inlinenoexcept |
Creates an empty signal set.
Definition at line 138 of file ah-signal.H.
References set_.
Referenced by empty().
|
inlinenoexcept |
Creates a signal set from an initializer list.
Definition at line 141 of file ah-signal.H.
References set_.
|
inlinenoexcept |
|
inlinenoexcept |
Clears the set (removes all signals).
Definition at line 177 of file ah-signal.H.
References set_.
Referenced by TEST().
|
inlinenoexcept |
|
inlinestaticnoexcept |
Creates an empty signal set.
Definition at line 157 of file ah-signal.H.
References SignalSet().
Referenced by TEST().
|
inlinenoexcept |
Fills the set with all signals.
Definition at line 185 of file ah-signal.H.
References set_.
|
inlinestaticnoexcept |
Creates a full signal set (all signals).
Definition at line 149 of file ah-signal.H.
References set_.
Referenced by TEST().
|
inlinenoexcept |
Returns a const pointer to the underlying sigset_t.
Definition at line 201 of file ah-signal.H.
References set_.
|
inlinenoexcept |
Returns a pointer to the underlying sigset_t.
Definition at line 198 of file ah-signal.H.
References set_.
Referenced by SignalBlocker::SignalBlocker(), TEST(), TEST_F(), and wait_for_signal().
|
inlinenoexcept |
Implicit conversion to const sigset_t*.
Definition at line 207 of file ah-signal.H.
References set_.
|
inlinenoexcept |
|
inlinenoexcept |
Removes a signal from the set.
Definition at line 169 of file ah-signal.H.
References set_.
|
private |
Definition at line 134 of file ah-signal.H.
Referenced by SignalSet(), SignalSet(), add(), clear(), contains(), fill(), full(), get(), get(), operator const sigset_t *(), operator sigset_t *(), and remove().