class SignalSet : public Vocal IO Writer

A light-weight wrapper for the sigset_t structure

Inheritance:


Public Fields

sigset_t signals
The native signal set

Public Methods

bool contains(int)
Returns true if the given signal is in the set
bool contains(const vector < int > &)
Returne true if all the signals in the vector are in the set
bool contains(int *, size_t)
Returns true if all the signals in the array are in the set
void empty()
No signals set
void erase(const vector < int > &)
Remove a vector of signals from the set
void erase(int *, size_t)
Remove an array of signals from the set
void erase(int)
Remove a signal from the set
void fill()
All signals are set
void insert(int *, size_t)
Add the given array of signals to the set
void insert(const vector < int > &)
Add the given vector of signals to the set
void insert(int)
Add the given signal to the set
SignalSet& operator=(const SignalSet &)
Equality relational operator
const vector < int > & signalNumbers()
Returns the vector of signal set
SignalSet(const vector < int > &)
Crate a signal set with the vector of signals
SignalSet(int signum)
Create a signal set with the given signal
SignalSet(const SignalSet &)
Copy constructor
SignalSet()
Default constructor
SignalSet(int *, size_t)
Create a signal set with the array of signals
virtual ostream& writeTo(ostream &)
Write the SignalSet to an ostream
virtual ~SignalSet()
Virtual destructor

Inherited from Writer:


Documentation

A light-weight wrapper for the sigset_t structure.

SignalSet()
Default constructor

SignalSet(int signum)
Create a signal set with the given signal

SignalSet(int *, size_t)
Create a signal set with the array of signals

SignalSet(const vector < int > &)
Crate a signal set with the vector of signals

SignalSet(const SignalSet &)
Copy constructor

virtual ~SignalSet()
Virtual destructor

SignalSet& operator=(const SignalSet &)
Equality relational operator

void fill()
All signals are set

void empty()
No signals set

void insert(int)
Add the given signal to the set

void insert(int *, size_t)
Add the given array of signals to the set

void insert(const vector < int > &)
Add the given vector of signals to the set

void erase(int)
Remove a signal from the set

void erase(int *, size_t)
Remove an array of signals from the set

void erase(const vector < int > &)
Remove a vector of signals from the set

bool contains(int)
Returns true if the given signal is in the set

bool contains(int *, size_t)
Returns true if all the signals in the array are in the set

bool contains(const vector < int > &)
Returne true if all the signals in the vector are in the set

const vector < int > & signalNumbers()
Returns the vector of signal set

sigset_t signals
The native signal set

virtual ostream& writeTo(ostream &)
Write the SignalSet to an ostream


This class has no child classes.
See Also:
Vocal::Process::SignalAction
Vocal::Process::SignalHandler

alphabetic index hierarchy of classes


generated by doc++