Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Tetragramm
GitHub Repository: Tetragramm/opencv
Path: blob/master/modules/gapi/src/api/gnode_priv.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_GNODE_PRIV_HPP
9
#define OPENCV_GNODE_PRIV_HPP
10
11
#include <string>
12
#include <vector>
13
#include <unordered_map>
14
15
#include "opencv2/gapi/util/variant.hpp"
16
17
#include "opencv2/gapi/gcall.hpp"
18
#include "opencv2/gapi/garg.hpp"
19
#include "opencv2/gapi/gkernel.hpp"
20
21
#include "api/gnode.hpp"
22
23
namespace cv {
24
25
enum class GNode::NodeShape: unsigned int
26
{
27
EMPTY,
28
CALL,
29
PARAM,
30
CONST_BOUNDED
31
};
32
33
class GNode::Priv
34
{
35
public:
36
// TODO: replace with optional?
37
typedef util::variant<util::monostate, GCall> NodeSpec;
38
const NodeShape m_shape;
39
const NodeSpec m_spec;
40
std::string m_island; // user-modifiable attribute
41
struct ParamTag {};
42
struct ConstTag {};
43
44
Priv(); // Empty (invalid) constructor
45
explicit Priv(GCall c); // Call conctrustor
46
explicit Priv(ParamTag u); // Param constructor
47
explicit Priv(ConstTag u); // Param constructor
48
};
49
50
}
51
52
#endif // OPENCV_GNODE_PRIV_HPP
53
54