MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / Bool

Class Bool

src/core/include/megbrain/utils/json.h:72–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70};
71
72class Bool final : public Value {
73 MGB_DYN_TYPE_OBJ_FINAL_DECL_WITH_EXPORT;
74
75 bool m_val;
76
77public:
78 Bool(bool v) : m_val(v) {}
79
80 MGE_WIN_DECLSPEC_FUC static std::shared_ptr<Bool> make(bool v);
81
82 MGE_WIN_DECLSPEC_FUC void writeto(std::string& fout, int indent = 0) const override;
83
84 auto&& get_impl() { return m_val; }
85
86 auto&& get_impl() const { return m_val; }
87};
88
89class String final : public Value {
90 MGB_DYN_TYPE_OBJ_FINAL_DECL_WITH_EXPORT;

Callers 3

TESTFunction · 0.50
replace_oprMethod · 0.50
replace_oprMethod · 0.50

Calls 1

makeFunction · 0.50

Tested by 1

TESTFunction · 0.40