Path: blob/master/modules/gapi/src/compiler/gobjref.hpp
16337 views
// This file is part of OpenCV project.1// It is subject to the license terms in the LICENSE file found in the top-level directory2// of this distribution and at http://opencv.org/license.html.3//4// Copyright (C) 2018 Intel Corporation567#ifndef OPENCV_GAPI_GMATREF_HPP8#define OPENCV_GAPI_GMATREF_HPP910#include "opencv2/gapi/util/variant.hpp"11#include "opencv2/gapi/garg.hpp"1213#include "api/gapi_priv.hpp" // GShape, HostCtor1415namespace cv16{1718namespace gimpl19{20struct RcDesc21{22int id; // id is unique but local to shape23GShape shape; // pair <id,shape> IS the unique ID24HostCtor ctor; // FIXME: is it really used here? Or in <Data>?2526bool operator==(const RcDesc &rhs) const27{28// FIXME: ctor is not checked (should be?)29return id == rhs.id && shape == rhs.shape;30}3132bool operator< (const RcDesc &rhs) const33{34return (id == rhs.id) ? shape < rhs.shape : id < rhs.id;35}36};37} // gimpl3839namespace detail40{41template<> struct GTypeTraits<cv::gimpl::RcDesc>42{43static constexpr const ArgKind kind = ArgKind::GOBJREF;44};45}4647} // cv4849#endif // OPENCV_GAPI_GMATREF_HPP505152