Publishing 2019 R1 content
[platform/upstream/dldt.git] / inference-engine / thirdparty / fluid / modules / gapi / src / api / garray.cpp
1 // This file is part of OpenCV project.
2 // It is subject to the license terms in the LICENSE file found in the top-level directory
3 // of this distribution and at http://opencv.org/license.html.
4 //
5 // Copyright (C) 2018-2019 Intel Corporation
6
7
8 #include "precomp.hpp"
9 #include "opencv2/gapi/garray.hpp"
10 #include "api/gapi_priv.hpp" // GOrigin
11
12 // cv::detail::GArrayU public implementation ///////////////////////////////////
13 cv::detail::GArrayU::GArrayU()
14     : m_priv(new GOrigin(GShape::GARRAY, cv::GNode::Param()))
15 {
16 }
17
18 cv::detail::GArrayU::GArrayU(const GNode &n, std::size_t out)
19     : m_priv(new GOrigin(GShape::GARRAY, n, out))
20 {
21 }
22
23 cv::GOrigin& cv::detail::GArrayU::priv()
24 {
25     return *m_priv;
26 }
27
28 const cv::GOrigin& cv::detail::GArrayU::priv() const
29 {
30     return *m_priv;
31 }
32
33 void cv::detail::GArrayU::setConstructFcn(ConstructVec &&cv)
34 {
35     m_priv->ctor = std::move(cv);
36 }
37
38 namespace cv {
39 std::ostream& operator<<(std::ostream& os, const cv::GArrayDesc &)
40 {
41     // FIXME: add type information here
42     os << "(array)";
43     return os;
44 }
45 }