OpenVPN 3 Core Library
|
divide a range of IP addresses into smaller, equal-sized partitions More...
#include <range.hpp>
Public Member Functions | |
RangePartitionType (const RangeType< ADDR > &src_range, const std::size_t n_partitions) | |
Constructor for RangePartitionType. | |
bool | next (RangeType< ADDR > &r) |
Retrieves the next partition in the range. | |
Private Attributes | |
RangeType< ADDR > | range |
std::size_t | remaining |
divide a range of IP addresses into smaller, equal-sized partitions
designed to divide a range of IP addresses into smaller, equal-sized partitions. This class is useful when you need to split a large range of IP addresses into manageable chunks, which can be helpful in various networking scenarios.
ADDR | The address type |
|
inline |
Constructor for RangePartitionType.
src_range | The source range to be partitioned |
n_partitions | The number of partitions to create |
|
inline |
Retrieves the next partition in the range.
[out] | r | The RangeType object to store the next partition |
Definition at line 372 of file range.hpp.
|
private |
|
private |