|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef OPENCV_GAPI_INFER_HPP |
|
|
#define OPENCV_GAPI_INFER_HPP |
|
|
|
|
|
|
|
|
#if !defined(GAPI_STANDALONE) |
|
|
|
|
|
#include <functional> |
|
|
#include <string> |
|
|
#include <utility> |
|
|
#include <type_traits> |
|
|
|
|
|
#include <opencv2/gapi/util/util.hpp> |
|
|
#include <opencv2/gapi/util/any.hpp> |
|
|
#include <opencv2/gapi/gkernel.hpp> |
|
|
#include <opencv2/gapi/garg.hpp> |
|
|
#include <opencv2/gapi/gcommon.hpp> |
|
|
#include <opencv2/gapi/gmetaarg.hpp> |
|
|
|
|
|
namespace cv { |
|
|
|
|
|
template<typename, typename> class GNetworkType; |
|
|
|
|
|
namespace detail { |
|
|
|
|
|
|
|
|
template<typename T> |
|
|
struct accepted_infer_types { |
|
|
static constexpr const auto value = |
|
|
std::is_same<typename std::decay<T>::type, cv::GMat>::value |
|
|
|| std::is_same<typename std::decay<T>::type, cv::GFrame>::value; |
|
|
}; |
|
|
|
|
|
template<typename... Ts> |
|
|
using valid_infer_types = all_satisfy<accepted_infer_types, Ts...>; |
|
|
|
|
|
|
|
|
|
|
|
template<typename, typename> |
|
|
struct valid_infer2_types; |
|
|
|
|
|
|
|
|
template<typename T> |
|
|
struct valid_infer2_types< std::tuple<cv::GMat>, std::tuple<T> > { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static constexpr const auto value = |
|
|
std::is_same<typename std::decay<T>::type, cv::GMat>::value |
|
|
|| std::is_same<typename std::decay<T>::type, cv::Rect>::value; |
|
|
}; |
|
|
|
|
|
|
|
|
template<typename... Ts> |
|
|
struct valid_infer2_types< std::tuple<>, std::tuple<Ts...> > |
|
|
: public std::false_type { |
|
|
}; |
|
|
|
|
|
|
|
|
template<typename... Ns> |
|
|
struct valid_infer2_types< std::tuple<Ns...>, std::tuple<> > |
|
|
: public std::false_type { |
|
|
}; |
|
|
|
|
|
|
|
|
template<typename... Ns, typename T, typename...Ts> |
|
|
struct valid_infer2_types< std::tuple<cv::GMat,Ns...>, std::tuple<T,Ts...> > { |
|
|
static constexpr const auto value = |
|
|
valid_infer2_types< std::tuple<cv::GMat>, std::tuple<T> >::value |
|
|
&& valid_infer2_types< std::tuple<Ns...>, std::tuple<Ts...> >::value; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
struct InOutInfo |
|
|
{ |
|
|
std::vector<std::string> in_names; |
|
|
std::vector<std::string> out_names; |
|
|
}; |
|
|
|
|
|
template <typename OutT> |
|
|
class GInferOutputsTyped |
|
|
{ |
|
|
public: |
|
|
GInferOutputsTyped() = default; |
|
|
GInferOutputsTyped(std::shared_ptr<cv::GCall> call) |
|
|
: m_priv(std::make_shared<Priv>(std::move(call))) |
|
|
{ |
|
|
} |
|
|
|
|
|
OutT at(const std::string& name) |
|
|
{ |
|
|
auto it = m_priv->blobs.find(name); |
|
|
if (it == m_priv->blobs.end()) { |
|
|
|
|
|
auto shape = cv::detail::GTypeTraits<OutT>::shape; |
|
|
auto kind = cv::detail::GTypeTraits<OutT>::op_kind; |
|
|
m_priv->call->kernel().outShapes.push_back(shape); |
|
|
m_priv->call->kernel().outCtors.emplace_back(cv::detail::GObtainCtor<OutT>::get()); |
|
|
m_priv->call->kernel().outKinds.emplace_back(kind); |
|
|
auto out_idx = static_cast<int>(m_priv->blobs.size()); |
|
|
it = m_priv->blobs.emplace(name, |
|
|
cv::detail::Yield<OutT>::yield(*(m_priv->call), out_idx)).first; |
|
|
m_priv->info->out_names.push_back(name); |
|
|
} |
|
|
return it->second; |
|
|
} |
|
|
private: |
|
|
struct Priv |
|
|
{ |
|
|
Priv(std::shared_ptr<cv::GCall> c) |
|
|
: call(std::move(c)), info(cv::util::any_cast<InOutInfo>(&call->params())) |
|
|
{ |
|
|
} |
|
|
|
|
|
std::shared_ptr<cv::GCall> call; |
|
|
InOutInfo* info = nullptr; |
|
|
std::unordered_map<std::string, OutT> blobs; |
|
|
}; |
|
|
|
|
|
std::shared_ptr<Priv> m_priv; |
|
|
}; |
|
|
|
|
|
template <typename... Ts> |
|
|
class GInferInputsTyped |
|
|
{ |
|
|
public: |
|
|
GInferInputsTyped() |
|
|
: m_priv(std::make_shared<Priv>()) |
|
|
{ |
|
|
} |
|
|
|
|
|
template <typename U> |
|
|
GInferInputsTyped<Ts...>& setInput(const std::string& name, U in) |
|
|
{ |
|
|
m_priv->blobs.emplace(std::piecewise_construct, |
|
|
std::forward_as_tuple(name), |
|
|
std::forward_as_tuple(in)); |
|
|
return *this; |
|
|
} |
|
|
|
|
|
using StorageT = cv::util::variant<Ts...>; |
|
|
StorageT& operator[](const std::string& name) { |
|
|
return m_priv->blobs[name]; |
|
|
} |
|
|
|
|
|
using Map = std::unordered_map<std::string, StorageT>; |
|
|
const Map& getBlobs() const { |
|
|
return m_priv->blobs; |
|
|
} |
|
|
|
|
|
private: |
|
|
struct Priv |
|
|
{ |
|
|
std::unordered_map<std::string, StorageT> blobs; |
|
|
}; |
|
|
|
|
|
std::shared_ptr<Priv> m_priv; |
|
|
}; |
|
|
|
|
|
template<typename InferT> |
|
|
std::shared_ptr<cv::GCall> makeCall(const std::string &tag, |
|
|
std::vector<cv::GArg> &&args, |
|
|
std::vector<std::string> &&names, |
|
|
cv::GKinds &&kinds) { |
|
|
auto call = std::make_shared<cv::GCall>(GKernel{ |
|
|
InferT::id(), |
|
|
tag, |
|
|
InferT::getOutMeta, |
|
|
{}, |
|
|
std::move(kinds), |
|
|
{}, |
|
|
{}, |
|
|
}); |
|
|
|
|
|
call->setArgs(std::move(args)); |
|
|
call->params() = cv::detail::InOutInfo{std::move(names), {}}; |
|
|
|
|
|
return call; |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
template<typename K, typename... R, typename... Args> |
|
|
class GNetworkType<K, std::function<std::tuple<R...>(Args...)> > |
|
|
{ |
|
|
public: |
|
|
using InArgs = std::tuple<Args...>; |
|
|
using OutArgs = std::tuple<R...>; |
|
|
|
|
|
using Result = OutArgs; |
|
|
using API = std::function<Result(Args...)>; |
|
|
|
|
|
using ResultL = std::tuple< cv::GArray<R>... >; |
|
|
}; |
|
|
|
|
|
|
|
|
template<typename K, typename R, typename... Args> |
|
|
class GNetworkType<K, std::function<R(Args...)> > |
|
|
{ |
|
|
public: |
|
|
using InArgs = std::tuple<Args...>; |
|
|
using OutArgs = std::tuple<R>; |
|
|
|
|
|
using Result = R; |
|
|
using API = std::function<R(Args...)>; |
|
|
|
|
|
using ResultL = cv::GArray<R>; |
|
|
}; |
|
|
|
|
|
|
|
|
template<class Net, class... Ts> |
|
|
struct InferAPI { |
|
|
using type = typename std::enable_if |
|
|
< detail::valid_infer_types<Ts...>::value |
|
|
&& std::tuple_size<typename Net::InArgs>::value == sizeof...(Ts) |
|
|
, std::function<typename Net::Result(Ts...)> |
|
|
>::type; |
|
|
}; |
|
|
|
|
|
|
|
|
template<class Net, class T> |
|
|
struct InferAPIRoi { |
|
|
using type = typename std::enable_if |
|
|
< detail::valid_infer_types<T>::value |
|
|
&& std::tuple_size<typename Net::InArgs>::value == 1u |
|
|
, std::function<typename Net::Result(cv::GOpaque<cv::Rect>, T)> |
|
|
>::type; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
template<class Net, class... Ts> |
|
|
struct InferAPIList { |
|
|
using type = typename std::enable_if |
|
|
< detail::valid_infer_types<Ts...>::value |
|
|
&& std::tuple_size<typename Net::InArgs>::value == sizeof...(Ts) |
|
|
, std::function<typename Net::ResultL(cv::GArray<cv::Rect>, Ts...)> |
|
|
>::type; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
template<class Net, typename T, class... Ts> |
|
|
struct InferAPIList2 { |
|
|
using type = typename std::enable_if |
|
|
< detail::valid_infer_types<T>::value && |
|
|
cv::detail::valid_infer2_types< typename Net::InArgs |
|
|
, std::tuple<Ts...> >::value, |
|
|
std::function<typename Net::ResultL(T, cv::GArray<Ts>...)> |
|
|
>::type; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct GInferBase { |
|
|
static constexpr const char * id() { |
|
|
return "org.opencv.dnn.infer"; |
|
|
} |
|
|
static GMetaArgs getOutMeta(const GMetaArgs &, const GArgs &) { |
|
|
return GMetaArgs{}; |
|
|
} |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
struct GInferROIBase { |
|
|
static constexpr const char * id() { |
|
|
return "org.opencv.dnn.infer-roi"; |
|
|
} |
|
|
static GMetaArgs getOutMeta(const GMetaArgs &, const GArgs &) { |
|
|
return GMetaArgs{}; |
|
|
} |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
struct GInferListBase { |
|
|
static constexpr const char * id() { |
|
|
return "org.opencv.dnn.infer-roi-list-1"; |
|
|
} |
|
|
static GMetaArgs getOutMeta(const GMetaArgs &, const GArgs &) { |
|
|
return GMetaArgs{}; |
|
|
} |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
struct GInferList2Base { |
|
|
static constexpr const char * id() { |
|
|
return "org.opencv.dnn.infer-roi-list-2"; |
|
|
} |
|
|
static GMetaArgs getOutMeta(const GMetaArgs &, const GArgs &) { |
|
|
return GMetaArgs{}; |
|
|
} |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template<typename Net, typename... Args> |
|
|
struct GInfer final |
|
|
: public GInferBase |
|
|
, public detail::KernelTypeMedium< GInfer<Net, Args...> |
|
|
, typename InferAPI<Net, Args...>::type > { |
|
|
using GInferBase::getOutMeta; |
|
|
|
|
|
static constexpr const char* tag() { return Net::tag(); } |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
template<typename Net, typename T> |
|
|
struct GInferROI final |
|
|
: public GInferROIBase |
|
|
, public detail::KernelTypeMedium< GInferROI<Net, T> |
|
|
, typename InferAPIRoi<Net, T>::type > { |
|
|
using GInferROIBase::getOutMeta; |
|
|
|
|
|
static constexpr const char* tag() { return Net::tag(); } |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template<typename Net, typename... Args> |
|
|
struct GInferList final |
|
|
: public GInferListBase |
|
|
, public detail::KernelTypeMedium< GInferList<Net, Args...> |
|
|
, typename InferAPIList<Net, Args...>::type > { |
|
|
using GInferListBase::getOutMeta; |
|
|
|
|
|
static constexpr const char* tag() { return Net::tag(); } |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template<typename Net, typename T, typename... Args> |
|
|
struct GInferList2 final |
|
|
: public GInferList2Base |
|
|
, public detail::KernelTypeMedium< GInferList2<Net, T, Args...> |
|
|
, typename InferAPIList2<Net, T, Args...>::type > { |
|
|
using GInferList2Base::getOutMeta; |
|
|
|
|
|
static constexpr const char* tag() { return Net::tag(); } |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
using GInferInputs = cv::detail::GInferInputsTyped<cv::GMat, cv::GFrame>; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
using GInferListInputs = cv::detail::GInferInputsTyped<cv::GArray<cv::GMat>, cv::GArray<cv::Rect>>; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
using GInferOutputs = cv::detail::GInferOutputsTyped<cv::GMat>; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
using GInferListOutputs = cv::detail::GInferOutputsTyped<cv::GArray<cv::GMat>>; |
|
|
|
|
|
namespace detail { |
|
|
void inline unpackBlobs(const cv::GInferInputs::Map& blobs, |
|
|
std::vector<cv::GArg>& args, |
|
|
std::vector<std::string>& names, |
|
|
cv::GKinds& kinds) |
|
|
{ |
|
|
for (auto&& p : blobs) { |
|
|
names.emplace_back(p.first); |
|
|
switch (p.second.index()) { |
|
|
case cv::GInferInputs::StorageT::index_of<cv::GMat>(): |
|
|
args.emplace_back(cv::util::get<cv::GMat>(p.second)); |
|
|
kinds.emplace_back(cv::detail::OpaqueKind::CV_MAT); |
|
|
break; |
|
|
case cv::GInferInputs::StorageT::index_of<cv::GFrame>(): |
|
|
args.emplace_back(cv::util::get<cv::GFrame>(p.second)); |
|
|
kinds.emplace_back(cv::detail::OpaqueKind::CV_UNKNOWN); |
|
|
break; |
|
|
default: |
|
|
GAPI_Error("InternalError"); |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
template <typename InferType> |
|
|
struct InferROITraits; |
|
|
|
|
|
template <> |
|
|
struct InferROITraits<GInferROIBase> |
|
|
{ |
|
|
using outType = cv::GInferOutputs; |
|
|
using inType = cv::GOpaque<cv::Rect>; |
|
|
}; |
|
|
|
|
|
template <> |
|
|
struct InferROITraits<GInferListBase> |
|
|
{ |
|
|
using outType = cv::GInferListOutputs; |
|
|
using inType = cv::GArray<cv::Rect>; |
|
|
}; |
|
|
|
|
|
template<typename InferType> |
|
|
typename InferROITraits<InferType>::outType |
|
|
inferGenericROI(const std::string& tag, |
|
|
const typename InferROITraits<InferType>::inType& in, |
|
|
const cv::GInferInputs& inputs) |
|
|
{ |
|
|
std::vector<cv::GArg> args; |
|
|
std::vector<std::string> names; |
|
|
cv::GKinds kinds; |
|
|
|
|
|
args.emplace_back(in); |
|
|
kinds.emplace_back(cv::detail::OpaqueKind::CV_RECT); |
|
|
|
|
|
unpackBlobs(inputs.getBlobs(), args, names, kinds); |
|
|
|
|
|
auto call = cv::detail::makeCall<InferType>(tag, |
|
|
std::move(args), |
|
|
std::move(names), |
|
|
std::move(kinds)); |
|
|
|
|
|
return {std::move(call)}; |
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#define G_API_NET(Class, API, Tag) \ |
|
|
struct Class final: public cv::GNetworkType<Class, std::function API> { \ |
|
|
static constexpr const char * tag() { return Tag; } \ |
|
|
} |
|
|
|
|
|
namespace cv { |
|
|
namespace gapi { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template<typename Net, typename T> |
|
|
typename Net::Result infer(cv::GOpaque<cv::Rect> roi, T in) { |
|
|
return GInferROI<Net, T>::on(roi, in); |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template<typename Net, typename... Args> |
|
|
typename Net::ResultL infer(cv::GArray<cv::Rect> roi, Args&&... args) { |
|
|
return GInferList<Net, Args...>::on(roi, std::forward<Args>(args)...); |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template<typename Net, typename T, typename... Args> |
|
|
typename Net::ResultL infer2(T image, cv::GArray<Args>... args) { |
|
|
|
|
|
|
|
|
return GInferList2<Net, T, Args...>::on(image, args...); |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template<typename Net, typename... Args> |
|
|
typename Net::Result infer(Args&&... args) { |
|
|
return GInfer<Net, Args...>::on(std::forward<Args>(args)...); |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct Generic { }; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template<typename T = Generic> cv::GInferOutputs |
|
|
infer(const std::string& tag, const cv::GInferInputs& inputs) |
|
|
{ |
|
|
std::vector<cv::GArg> args; |
|
|
std::vector<std::string> names; |
|
|
cv::GKinds kinds; |
|
|
|
|
|
cv::detail::unpackBlobs(inputs.getBlobs(), args, names, kinds); |
|
|
|
|
|
auto call = cv::detail::makeCall<GInferBase>(tag, |
|
|
std::move(args), |
|
|
std::move(names), |
|
|
std::move(kinds)); |
|
|
|
|
|
return cv::GInferOutputs{std::move(call)}; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template<typename T = Generic> cv::GInferOutputs |
|
|
infer(const std::string& tag, const cv::GOpaque<cv::Rect>& roi, const cv::GInferInputs& inputs) |
|
|
{ |
|
|
return cv::detail::inferGenericROI<GInferROIBase>(tag, roi, inputs); |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template<typename T = Generic> cv::GInferListOutputs |
|
|
infer(const std::string& tag, const cv::GArray<cv::Rect>& rois, const cv::GInferInputs& inputs) |
|
|
{ |
|
|
return cv::detail::inferGenericROI<GInferListBase>(tag, rois, inputs); |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template<typename T = Generic, typename Input> |
|
|
typename std::enable_if<cv::detail::accepted_infer_types<Input>::value, cv::GInferListOutputs>::type |
|
|
infer2(const std::string& tag, |
|
|
const Input& in, |
|
|
const cv::GInferListInputs& inputs) |
|
|
{ |
|
|
std::vector<cv::GArg> args; |
|
|
std::vector<std::string> names; |
|
|
cv::GKinds kinds; |
|
|
|
|
|
args.emplace_back(in); |
|
|
auto k = cv::detail::GOpaqueTraits<Input>::kind; |
|
|
kinds.emplace_back(k); |
|
|
|
|
|
for (auto&& p : inputs.getBlobs()) { |
|
|
names.emplace_back(p.first); |
|
|
switch (p.second.index()) { |
|
|
case cv::GInferListInputs::StorageT::index_of<cv::GArray<cv::GMat>>(): |
|
|
args.emplace_back(cv::util::get<cv::GArray<cv::GMat>>(p.second)); |
|
|
kinds.emplace_back(cv::detail::OpaqueKind::CV_MAT); |
|
|
break; |
|
|
case cv::GInferListInputs::StorageT::index_of<cv::GArray<cv::Rect>>(): |
|
|
args.emplace_back(cv::util::get<cv::GArray<cv::Rect>>(p.second)); |
|
|
kinds.emplace_back(cv::detail::OpaqueKind::CV_RECT); |
|
|
break; |
|
|
default: |
|
|
GAPI_Error("InternalError"); |
|
|
} |
|
|
} |
|
|
|
|
|
auto call = cv::detail::makeCall<GInferList2Base>(tag, |
|
|
std::move(args), |
|
|
std::move(names), |
|
|
std::move(kinds)); |
|
|
|
|
|
return cv::GInferListOutputs{std::move(call)}; |
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
#endif |
|
|
|
|
|
namespace cv { |
|
|
namespace gapi { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct GAPI_EXPORTS_W_SIMPLE GNetParam { |
|
|
std::string tag; |
|
|
GBackend backend; |
|
|
util::any params; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct GAPI_EXPORTS_W_SIMPLE GNetPackage { |
|
|
GAPI_WRAP GNetPackage() = default; |
|
|
GAPI_WRAP explicit GNetPackage(std::vector<GNetParam> nets); |
|
|
explicit GNetPackage(std::initializer_list<GNetParam> ii); |
|
|
std::vector<GBackend> backends() const; |
|
|
std::vector<GNetParam> networks; |
|
|
}; |
|
|
|
|
|
} |
|
|
|
|
|
namespace detail { |
|
|
template<typename T> |
|
|
gapi::GNetParam strip(T&& t) { |
|
|
return gapi::GNetParam { t.tag() |
|
|
, t.backend() |
|
|
, t.params() |
|
|
}; |
|
|
} |
|
|
|
|
|
template<> struct CompileArgTag<cv::gapi::GNetPackage> { |
|
|
static const char* tag() { return "gapi.net_package"; } |
|
|
}; |
|
|
|
|
|
} |
|
|
|
|
|
namespace gapi { |
|
|
template<typename... Args> |
|
|
cv::gapi::GNetPackage networks(Args&&... args) { |
|
|
return cv::gapi::GNetPackage({ cv::detail::strip(args)... }); |
|
|
} |
|
|
|
|
|
inline cv::gapi::GNetPackage& operator += ( cv::gapi::GNetPackage& lhs, |
|
|
const cv::gapi::GNetPackage& rhs) { |
|
|
lhs.networks.reserve(lhs.networks.size() + rhs.networks.size()); |
|
|
lhs.networks.insert(lhs.networks.end(), rhs.networks.begin(), rhs.networks.end()); |
|
|
return lhs; |
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
#endif |
|
|
|