|
ipaddress 1.2.0
|
A sequence container for subnet ranges within a network. More...
#include <ip-any-iterator.hpp>
Public Types | |
| using | value_type = T |
| The type of subnet value. | |
| using | size_type = size_t |
| An unsigned integral type. | |
| using | difference_type = uint128_t |
| Unsigned integer type for differences. | |
| using | pointer = value_type* |
| Pointer to the subnet type. | |
| using | const_pointer = const value_type* |
| Const pointer to the subnet type. | |
| using | reference = value_type& |
| Reference to the subnet type. | |
| using | const_reference = const value_type& |
| Const reference to the subnet type. | |
| using | iterator = ip_any_iterator<value_type, ip_network_iterator<ipv4_network>, ip_network_iterator<ipv6_network>> |
| Forward iterator for subnet traversal. | |
| using | const_iterator = iterator |
| Const forward iterator for subnet traversal. | |
| using | reverse_iterator = ip_reverse_iterator<iterator> |
| Reverse iterator for subnet traversal. | |
| using | const_reverse_iterator = ip_reverse_iterator<const_iterator> |
| Const reverse iterator for subnet. | |
Public Member Functions | |
| constexpr inline | subnets_any_sequence (ip_network_iterator< ipv4_network > begin, ip_network_iterator< ipv4_network > end) noexcept |
| Constructs a subnets_any_sequence with specified network parameters. | |
| constexpr inline | subnets_any_sequence (ip_network_iterator< ipv6_network > begin, ip_network_iterator< ipv6_network > end) noexcept |
| Constructs a subnets_any_sequence with specified network parameters. | |
| constexpr inline const_iterator | begin () const noexcept |
| Gets the beginning iterator of the sequence. | |
| constexpr inline const_iterator | end () const noexcept |
| Gets the end iterator of the sequence. | |
| constexpr inline const_reverse_iterator | rbegin () const noexcept |
| Gets the beginning reverse iterator of the sequence. | |
| constexpr inline const_reverse_iterator | rend () const noexcept |
| Gets the end reverse iterator of the sequence. | |
| constexpr inline const_iterator | cbegin () const noexcept |
| Gets the beginning const iterator of the sequence. | |
| constexpr inline const_iterator | cend () const noexcept |
| Gets the end const iterator of the sequence. | |
| constexpr inline const_reverse_iterator | crbegin () const noexcept |
| Gets the beginning const reverse iterator of the sequence. | |
| constexpr inline const_reverse_iterator | crend () const noexcept |
| Gets the end const reverse iterator of the sequence. | |
| constexpr inline bool | empty () const noexcept |
| Checks if the sequence is empty. | |
| constexpr inline difference_type | size () const noexcept |
| Gets the size of the sequence. | |
| constexpr inline value_type | operator[] (difference_type n) const noexcept |
| Accesses an element by index. | |
| constexpr inline value_type | at (difference_type n) const noexcept |
| Accesses an element by index with bounds checking. | |
| constexpr inline value_type | front () const noexcept |
| Accesses the first element in the sequence. | |
| constexpr inline value_type | back () const noexcept |
| Accesses the last element in the sequence. | |
A sequence container for subnet ranges within a network.
This class template represents a sequence of subnets within a network. It provides forward and reverse iterators to traverse the subnets and offers insight into the structure of a network by breaking it down into smaller, manageable parts.
| T | The type of IP network to be divided into subnets. |
|
inlinenoexcept |
Constructs a subnets_any_sequence with specified network parameters.
| [in] | begin | The begin ipv4 network iterator. |
| [in] | end | The end ipv4 network iterator. |
|
inlinenoexcept |
Constructs a subnets_any_sequence with specified network parameters.
| [in] | begin | The begin ipv6 network iterator. |
| [in] | end | The end ipv6 network iterator. |
|
inlinenodiscardnoexcept |
Gets the beginning iterator of the sequence.
|
inlinenodiscardnoexcept |
Gets the end iterator of the sequence.
|
inlinenodiscardnoexcept |
Gets the beginning reverse iterator of the sequence.
|
inlinenodiscardnoexcept |
Gets the end reverse iterator of the sequence.
|
inlinenodiscardnoexcept |
Gets the beginning const iterator of the sequence.
|
inlinenodiscardnoexcept |
Gets the end const iterator of the sequence.
|
inlinenodiscardnoexcept |
Gets the beginning const reverse iterator of the sequence.
|
inlinenodiscardnoexcept |
Gets the end const reverse iterator of the sequence.
|
inlinenodiscardnoexcept |
Checks if the sequence is empty.
true if the sequence is empty, false otherwise.
|
inlinenodiscardnoexcept |
Gets the size of the sequence.
|
inlinenodiscardnoexcept |
Accesses an element by index.
| [in] | n | The index of the element. |
|
inlinenodiscardnoexcept |
Accesses an element by index with bounds checking.
| [in] | n | The index of the element. |
|
inlinenodiscardnoexcept |
Accesses the first element in the sequence.
|
inlinenodiscardnoexcept |
Accesses the last element in the sequence.