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


Classes | |
| class | NetSource |
Public Member Functions | |
| constexpr | IP4Range ()=default |
| Default constructor, invalid range. | |
| IP4Range (IP4Addr const &addr, IPMask const &mask) | |
| Construct from an network expressed as addr and mask. | |
| IP4Range (super_type const &r) | |
| IP4Range (string_view const &text) | |
| self_type & | assign (IP4Addr const &addr, IPMask const &mask) |
| < Import super class constructors. | |
| bool | load (string_view text) |
| < Import assign methods. | |
| IPMask | network_mask () const |
| sa_family_t | family () const |
| NetSource | networks () const |
| self_type & | assign (metric_type const &min, metric_type const &max) |
| self_type & | assign (metric_type const &value) |
Public Member Functions inherited from swoc::DiscreteRange< IP4Addr > | |
| constexpr | DiscreteRange () |
| constexpr | DiscreteRange (IP4Addr const &value) |
| constexpr | DiscreteRange (IP4Addr const &min, IP4Addr const &max) |
| bool | empty () const |
| self_type & | assign (metric_type const &min, metric_type const &max) |
| self_type & | assign (metric_type const &value) |
| self_type & | assign_min (metric_type const &min) |
| self_type & | assign_max (metric_type const &max) |
| self_type & | clip_max () |
| metric_type const & | min () const |
| metric_type const & | max () const |
| bool | operator== (self_type const &that) const |
| Equality. | |
| bool | operator!= (self_type const &that) const |
| Inequality. | |
| bool | contains (metric_type const &value) const |
| bool | has_intersection_with (self_type const &that) const |
| self_type | intersection (self_type const &that) const |
| bool | is_adjacent_to (self_type const &that) const |
| bool | is_left_adjacent_to (self_type const &that) const |
| bool | has_union (self_type const &that) const |
| bool | is_superset_of (self_type const &that) const |
| bool | is_subset_of (self_type const &that) const |
| bool | is_strict_superset_of (self_type const &that) const |
| bool | is_strict_subset_of (self_type const &that) const |
| Relation | relationship (self_type const &that) const |
| EdgeRelation | left_edge_relationship (self_type const &that) const |
| self_type | hull (self_type const &that) const |
| bool | is_singleton () const |
| Check if the interval is exactly one element. | |
| bool | operator! () const |
| operator bool () const | |
| bool | is_maximal () const |
| self_type & | operator&= (self_type const &that) |
| self_type & | operator|= (self_type const &that) |
| self_type & | clear () |
| Make the range empty. | |
| constexpr | DiscreteRange () |
| constexpr | DiscreteRange (IP4Addr const &value) |
| constexpr | DiscreteRange (IP4Addr const &min, IP4Addr const &max) |
| bool | empty () const |
| self_type & | assign (metric_type const &min, metric_type const &max) |
| self_type & | assign (metric_type const &value) |
| self_type & | assign_min (metric_type const &min) |
| self_type & | assign_max (metric_type const &max) |
| self_type & | clip_max () |
| metric_type const & | min () const |
| metric_type const & | max () const |
| bool | operator== (self_type const &that) const |
| Equality. | |
| bool | operator!= (self_type const &that) const |
| Inequality. | |
| bool | contains (metric_type const &value) const |
| bool | has_intersection_with (self_type const &that) const |
| self_type | intersection (self_type const &that) const |
| bool | is_adjacent_to (self_type const &that) const |
| bool | is_left_adjacent_to (self_type const &that) const |
| bool | has_union (self_type const &that) const |
| bool | is_superset_of (self_type const &that) const |
| bool | is_subset_of (self_type const &that) const |
| bool | is_strict_superset_of (self_type const &that) const |
| bool | is_strict_subset_of (self_type const &that) const |
| Relation | relationship (self_type const &that) const |
| EdgeRelation | left_edge_relationship (self_type const &that) const |
| self_type | hull (self_type const &that) const |
| bool | is_singleton () const |
| Check if the interval is exactly one element. | |
| bool | operator! () const |
| operator bool () const | |
| bool | is_maximal () const |
| self_type & | operator&= (self_type const &that) |
| self_type & | operator|= (self_type const &that) |
| self_type & | clear () |
| Make the range empty. | |
Additional Inherited Members | |
Public Types inherited from swoc::DiscreteRange< IP4Addr > | |
| using | metric_type |
| Export metric type. | |
| using | Relation |
| Import type for convenience. | |
| using | EdgeRelation |
| Import type for convenience. | |
Protected Attributes inherited from swoc::DiscreteRange< IP4Addr > | |
| IP4Addr | _min |
| The minimum value in the interval. | |
| IP4Addr | _max |
| the maximum value in the interval | |
| IP4Addr | _min |
| The minimum value in the interval. | |
| IP4Addr | _max |
| the maximum value in the interval | |
Related Symbols inherited from swoc::DiscreteRange< IP4Addr > | |
| bool | operator!= (DiscreteRange< IP4Addr > const &lhs, DiscreteRange< IP4Addr > const &rhs) |
| bool | operator^ (DiscreteRange< IP4Addr > const &lhs, DiscreteRange< IP4Addr > const &rhs) |
| bool | operator< (DiscreteRange< IP4Addr > const &lhs, DiscreteRange< IP4Addr > const &rhs) |
| bool | operator<= (DiscreteRange< IP4Addr > const &lhs, DiscreteRange< IP4Addr > const &rhs) |
| bool | operator> (DiscreteRange< IP4Addr > const &lhs, DiscreteRange< IP4Addr > const &rhs) |
| bool | operator>= (DiscreteRange< IP4Addr > const &lhs, DiscreteRange< IP4Addr > const &rhs) |
| bool | operator!= (DiscreteRange< IP4Addr > const &lhs, DiscreteRange< IP4Addr > const &rhs) |
| bool | operator^ (DiscreteRange< IP4Addr > const &lhs, DiscreteRange< IP4Addr > const &rhs) |
| bool | operator< (DiscreteRange< IP4Addr > const &lhs, DiscreteRange< IP4Addr > const &rhs) |
| bool | operator<= (DiscreteRange< IP4Addr > const &lhs, DiscreteRange< IP4Addr > const &rhs) |
| bool | operator> (DiscreteRange< IP4Addr > const &lhs, DiscreteRange< IP4Addr > const &rhs) |
| bool | operator>= (DiscreteRange< IP4Addr > const &lhs, DiscreteRange< IP4Addr > const &rhs) |
| swoc::IP4Range::IP4Range | ( | swoc::IP4Addr const & | addr, |
| swoc::IPMask const & | mask ) |
Construct from an network expressed as addr and mask.
Definition at line 932 of file swoc_ip.cc.
|
inline |
|
inline |
Construct range from text.
| text | Range text. |
This results in an empty range if text is not a valid string. If this should be checked, use load.
| IP4Range & swoc::IP4Range::assign | ( | swoc::IP4Addr const & | addr, |
| swoc::IPMask const & | mask ) |
< Import super class constructors.
Set this range.
| addr | Minimum address. |
| mask | CIDR mask to compute maximum adddress from addr. |
Definition at line 937 of file swoc_ip.cc.
| self_type & swoc::DiscreteRange< IP4Addr >::assign | ( | metric_type const & | min, |
| metric_type const & | max ) |
Update the range.
| min | New minimum value. |
| max | New maximum value. |
| self_type & swoc::DiscreteRange< IP4Addr >::assign | ( | metric_type const & | value | ) |
Update the range.
| value | The new minimum and maximum value. |
The range will contain the single value value.
|
inline |
| bool swoc::IP4Range::load | ( | string_view | text | ) |
< Import assign methods.
Assign to this range from text.
| text | Range text. |
The text must be in one of three formats.
Definition at line 954 of file swoc_ip.cc.
| IPMask swoc::IP4Range::network_mask | ( | ) | const |
Compute the mask for this as a network.
Definition at line 983 of file swoc_ip.cc.
|
inline |
Generate a list of networks covering this range.
The returned object can be used as an iterator, or as a container to iterating over the unique minimal set of networks that cover this range.