A class containing static convenience methods to fetch the subnets from the containers.
More...
#include <subnet.h>
|
static ReturnPtrType | get (const CollectionType &collection, const SubnetID &subnet_id) |
| Fetches subnets by id. More...
|
|
template<typename ReturnPtrType, typename CollectionType>
class isc::dhcp::SubnetFetcher< ReturnPtrType, CollectionType >
A class containing static convenience methods to fetch the subnets from the containers.
- Template Parameters
-
ReturnPtrType | Type of the returned object, i.e. Subnet4Ptr or Subnet6Ptr . |
CollectionType | One of the Subnet4Collection or Subnet6Collection . |
Definition at line 923 of file subnet.h.
template<typename ReturnPtrType , typename CollectionType >
Fetches subnets by id.
- Parameters
-
collection | Const reference to the collection from which the subnet is to be fetched. |
subnet_id | Id of the subnet to be fetched. |
- Returns
- Pointer to the fetched subnet or null if no such subnet could be found.
Definition at line 933 of file subnet.h.
The documentation for this class was generated from the following file: