|
LibSWOC++ 1.5.14
Solid Wall of C++
|
#include <IPRange.h>

Public Types | |
| using | range_type = IP4Range |
| Import base range type. | |
| using | iterator = self_type |
| This class acts as a container and an iterator. | |
| using | const_iterator = iterator |
| All iteration is constant so no distinction between iterators. | |
Public Member Functions | |
| NetSource (range_type const &range) | |
| Construct from range. | |
| NetSource (self_type const &that)=default | |
| Copy constructor. | |
| iterator | begin () const |
| First network. | |
| bool | empty () const |
Return true if there are valid networks, false if not. | |
| IP4Net | operator* () const |
| self_type * | operator-> () |
Access this as if it were an IP4Net. | |
| IP4Addr const & | addr () const |
| IPMask | mask () const |
| self_type & | operator++ () |
| Move to next network. | |
| self_type | operator++ (int) |
| Move to next network. | |
| bool | operator== (self_type const &that) const |
| Equality. | |
| bool | operator!= (self_type const &that) const |
| Inequality. | |
Static Public Member Functions | |
| static iterator | end () |
| Past last network. | |
Protected Member Functions | |
| void | search_wider () |
| void | search_narrower () |
| bool | is_valid (IP4Addr mask) const |
Protected Attributes | |
| IP4Range | _range |
| IP4Addr | _mask {~static_cast<in_addr_t>(0)} |
| Mask for current network. | |
| IPMask::raw_type | _cidr = IP4Addr::WIDTH |
| Current CIDR value. | |
Network generator class. This generates networks from a range and acts as both a forward iterator and a container.
|
explicit |
Construct from range.
Definition at line 991 of file swoc_ip.cc.
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
| auto swoc::IP4Range::NetSource::operator++ | ( | ) |
Move to next network.
Definition at line 998 of file swoc_ip.cc.
| auto swoc::IP4Range::NetSource::operator++ | ( | int | ) |
Move to next network.
Definition at line 1015 of file swoc_ip.cc.
|
inline |
|
inline |
|
protected |
Definition at line 1036 of file swoc_ip.cc.
|
protected |
Definition at line 1022 of file swoc_ip.cc.
|
protected |
|
protected |
|
protected |