Kea 2.7.5
isc::dhcp::SubnetFetcher< ReturnPtrType, CollectionType > Class Template Reference

A class containing static convenience methods to fetch the subnets from the containers. More...

#include <subnet.h>

Static Public Member Functions

static ReturnPtrType get (const CollectionType &collection, const SubnetID &subnet_id)
 Fetches subnets by id.
 

Detailed Description

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
ReturnPtrTypeType of the returned object, i.e. Subnet4Ptr or Subnet6Ptr.
CollectionTypeOne of the Subnet4SimpleCollection, Subnet4Collection, Subnet6SimpleCollection or Subnet6Collection.

Definition at line 947 of file subnet.h.

Member Function Documentation

◆ get()

template<typename ReturnPtrType , typename CollectionType >
static ReturnPtrType isc::dhcp::SubnetFetcher< ReturnPtrType, CollectionType >::get ( const CollectionType & collection,
const SubnetID & subnet_id )
inlinestatic

Fetches subnets by id.

Parameters
collectionConst reference to the collection from which the subnet is to be fetched.
subnet_idId of the subnet to be fetched.
Returns
Pointer to the fetched subnet or null if no such subnet could be found.

Definition at line 957 of file subnet.h.


The documentation for this class was generated from the following file: