![]() |
Kea
1.5.0
|
Represents a network that can be associated with a subnet. More...
#include <assignable_network.h>
Inheritance diagram for isc::dhcp::AssignableNetwork:Protected Member Functions | |
| virtual | ~AssignableNetwork () |
| Virtual destructor. More... | |
| template<typename SubnetPtr > | |
| void | clearSharedNetwork (const SubnetPtr &subnet) |
| Removes association of a subnet with a network. More... | |
| template<typename SubnetPtr > | |
| void | setSharedNetwork (const SubnetPtr &subnet) |
| Associates a subnet with this network. More... | |
| virtual NetworkPtr | sharedFromThis ()=0 |
| Returns shared pointer to this object. More... | |
Represents a network that can be associated with a subnet.
This class represents a network that can be associated with a subnet using Subnet::setSharedNetwork method. This class is a friend of a Subnet class, so it can call its Subnet::setSharedNetwork private method. Association of a network with a subnet must be always conducted using this class. This prevents unwanted replacements of shared networks within subnets.
Definition at line 23 of file assignable_network.h.
|
inlineprotectedvirtual |
Virtual destructor.
Definition at line 27 of file assignable_network.h.
|
inlineprotected |
Removes association of a subnet with a network.
| subnet | Pointer to a subnet for which association should be removed. |
| SubnetPtr | Type of the subnet pointer. |
Definition at line 54 of file assignable_network.h.
|
inlineprotected |
Associates a subnet with this network.
| subnet | Pointer to a subnet to be associated with the network. |
| SubnetPtr | Type of the subnet pointer. |
Definition at line 43 of file assignable_network.h.
References sharedFromThis().
Here is the call graph for this function:
|
protectedpure virtual |
Returns shared pointer to this object.
This abstract method must be implemented by derived classes to return shared pointers the derivation.
Implemented in isc::dhcp::SharedNetwork6, and isc::dhcp::SharedNetwork4.
Referenced by setSharedNetwork().