The PortRange may be used to store a Port range. More...
#include "PortManager.h"
Public Member Functions | |
| PortRange () | |
| Default constructor. | |
| PortRange (ot::port_t _from, ot::port_t _to) | |
| Assignment constructor. | |
| PortRange (const PortRange &_other) | |
| Copy constructor. | |
| PortRange & | operator= (const PortRange &_other) |
| Assignment operator. | |
| void | set (ot::port_t _from, ot::port_t _to) |
| Will set the port range. | |
| void | setFrom (ot::port_t _from) |
| Set the starting port. | |
| void | setTo (ot::port_t _to) |
| Set the final port. | |
| ot::port_t | from (void) const |
| Starting port. | |
| ot::port_t | to (void) const |
| Final port. | |
The PortRange may be used to store a Port range.
| ot::PortRange::PortRange | ( | ) |
Default constructor.
| ot::PortRange::PortRange | ( | ot::port_t | _from, |
| ot::port_t | _to ) |
Assignment constructor.
| _from | The starting port. |
| _to | The final port. |
| ot::PortRange::PortRange | ( | const PortRange & | _other | ) |
Copy constructor.
| _other | The other range. |
|
inline |
Starting port.
| ot::PortRange & ot::PortRange::operator= | ( | const PortRange & | _other | ) |
Assignment operator.
| _other | The other range. |
| void ot::PortRange::set | ( | ot::port_t | _from, |
| ot::port_t | _to ) |
Will set the port range.
|
inline |
Set the starting port.
|
inline |
Set the final port.
|
inline |
Final port.