Commit 122473c1 authored by Francis Dupont's avatar Francis Dupont
Browse files

[527-check-return-value-of-multi-index-push_back] Added missing (but not...

[527-check-return-value-of-multi-index-push_back] Added missing (but not required?) declaration and instantiations
parent 9ad81b7a
......@@ -374,6 +374,11 @@ SharedNetwork4::getSubnet(const SubnetID& subnet_id) const {
return (Impl::getSubnet<Subnet4Ptr>(subnets_, subnet_id));
}
Subnet4Ptr
SharedNetwork4::getSubnet(const std::string& subnet_prefix) const {
return (Impl::getSubnet<Subnet4Ptr>(subnets_, subnet_prefix));
}
Subnet4Ptr
SharedNetwork4::getNextSubnet(const Subnet4Ptr& first_subnet,
const SubnetID& current_subnet) const {
......@@ -474,11 +479,17 @@ SharedNetwork6::delAll() {
}
subnets_.clear();
}
Subnet6Ptr
SharedNetwork6::getSubnet(const SubnetID& subnet_id) const {
return (Impl::getSubnet<Subnet6Ptr>(subnets_, subnet_id));
}
Subnet6Ptr
SharedNetwork6::getSubnet(const std::string& subnet_prefix) const {
return (Impl::getSubnet<Subnet6Ptr>(subnets_, subnet_prefix));
}
Subnet6Ptr
SharedNetwork6::getNextSubnet(const Subnet6Ptr& first_subnet,
const SubnetID& current_subnet) const {
......
......@@ -349,6 +349,14 @@ public:
/// if such subnet doesn't exist within shared network.
Subnet6Ptr getSubnet(const SubnetID& subnet_id) const;
/// @brief Returns a subnet for a specified subnet prefix.
///
/// @param subnet_prefix Subnet prefix.
///
/// @return Shared pointer to a subnet using this prefix or null pointer
/// if such subnet doesn't exist within shared network.
Subnet6Ptr getSubnet(const std::string& subnet_prefix) const;
/// @brief Retrieves next available IPv6 subnet within shared network.
///
/// See documentation for @ref SharedNetwork6::getNextSubnet.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment