Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Tetragramm
GitHub Repository: Tetragramm/opencv
Path: blob/master/modules/gapi/src/api/gnode.hpp
16338 views
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 Intel Corporation
6
7
8
#ifndef OPENCV_GAPI_GNODE_HPP
9
#define OPENCV_GAPI_GNODE_HPP
10
11
#include <memory> // std::shared_ptr
12
13
namespace cv {
14
15
class GCall;
16
17
// TODO Move "internal" namespace
18
// TODO Expose details?
19
20
// This class won't be public
21
22
// data GNode = Call Operation [GNode]
23
// | Const <T>
24
// | Param <GMat|GParam>
25
26
class GNode
27
{
28
public:
29
class Priv;
30
31
// Constructors
32
GNode(); // Empty (invalid) constructor
33
static GNode Call (const GCall &c); // Call constructor
34
static GNode Param(); // Param constructor
35
static GNode Const();
36
37
// Internal use only
38
Priv& priv();
39
const Priv& priv() const;
40
enum class NodeShape: unsigned int;
41
42
const NodeShape& shape() const;
43
const GCall& call() const;
44
45
protected:
46
struct ParamTag {};
47
struct ConstTag {};
48
49
explicit GNode(const GCall &c);
50
explicit GNode(ParamTag unused);
51
explicit GNode(ConstTag unused);
52
53
std::shared_ptr<Priv> m_priv;
54
};
55
56
}
57
58
#endif // OPENCV_GAPI_GNODE_HPP
59
60