Kea  2.1.7-git
isc::dhcp::SharedNetworkFetcher< ReturnPtrType, CollectionType > Class Template Reference

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

#include <shared_network.h>

Static Public Member Functions

static ReturnPtrType get (const CollectionType &collection, const std::string &name)
 Fetches shared network by name. More...
 

Detailed Description

template<typename ReturnPtrType, typename CollectionType>
class isc::dhcp::SharedNetworkFetcher< ReturnPtrType, CollectionType >

A class containing static convenience methods to fetch the shared networks from the containers.

Template Parameters
ReturnPtrTypeType of the returned object, i.e. SharedNetwork4Ptr or SharedNetwork6Ptr.
CollectionTypeOne of the SharedNetwork4Collection or SharedNetwork6Collection.

Definition at line 454 of file shared_network.h.

Member Function Documentation

◆ get()

template<typename ReturnPtrType , typename CollectionType >
static ReturnPtrType isc::dhcp::SharedNetworkFetcher< ReturnPtrType, CollectionType >::get ( const CollectionType &  collection,
const std::string &  name 
)
inlinestatic

Fetches shared network by name.

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

Definition at line 464 of file shared_network.h.


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