Home
last modified time | relevance | path

Searched refs:class_ (Results 1 – 25 of 222) sorted by relevance

123456789

/external/python/pybind11/tests/
Dtest_class.cpp35 TEST_SUBMODULE(class_, m) { in TEST_SUBMODULE() argument
49 py::class_<NoConstructor>(m, "NoConstructor") in TEST_SUBMODULE()
84 py::class_<Pet> pet_class(m, "Pet"); in TEST_SUBMODULE()
91 py::class_<Dog>(m, "Dog", pet_class) in TEST_SUBMODULE()
95 py::class_<Rabbit, Pet>(m, "Rabbit") in TEST_SUBMODULE()
99 py::class_<Hamster, Pet>(m, "Hamster") in TEST_SUBMODULE()
103 py::class_<Chimera, Pet>(m, "Chimera"); in TEST_SUBMODULE()
118 py::class_<BaseClass>(m, "BaseClass").def(py::init<>()); in TEST_SUBMODULE()
119 py::class_<DerivedClass1>(m, "DerivedClass1").def(py::init<>()); in TEST_SUBMODULE()
120 py::class_<DerivedClass2>(m, "DerivedClass2").def(py::init<>()); in TEST_SUBMODULE()
[all …]
Dtest_multiple_inheritance.cpp55 py::class_<Base1> b1(m, "Base1"); in TEST_SUBMODULE()
64 py::class_<Base2> b2(m, "Base2"); in TEST_SUBMODULE()
76 py::class_<Base12, Base1, Base2>(m, "Base12"); in TEST_SUBMODULE()
77 py::class_<MIType, Base12>(m, "MIType") in TEST_SUBMODULE()
82 …#define PYBIND11_BASEN(N) py::class_<BaseN<N>>(m, "BaseN" #N).def(py::init<int>()).def("f" #N, [](… in TEST_SUBMODULE()
107 py::class_<Base1a, std::shared_ptr<Base1a>>(m, "Base1a") in TEST_SUBMODULE()
116 py::class_<Base2a, std::shared_ptr<Base2a>>(m, "Base2a") in TEST_SUBMODULE()
123 py::class_<Base12a, /* Base1 missing */ Base2a, in TEST_SUBMODULE()
141 …py::class_<I801B1, std::shared_ptr<I801B1>>(m, "I801B1").def(py::init<>()).def_readonly("a", &I801… in TEST_SUBMODULE()
142 …py::class_<I801B2, std::shared_ptr<I801B2>>(m, "I801B2").def(py::init<>()).def_readonly("b", &I801… in TEST_SUBMODULE()
[all …]
Dtest_smart_ptr.cpp94 py::class_<Object, ref<Object>> obj(m, "Object"); in TEST_SUBMODULE()
107 py::class_<MyObject1, ref<MyObject1>>(m, "MyObject1", obj) in TEST_SUBMODULE()
138 py::class_<MyObject2, std::shared_ptr<MyObject2>>(m, "MyObject2") in TEST_SUBMODULE()
157 py::class_<MyObject3, std::shared_ptr<MyObject3>>(m, "MyObject3") in TEST_SUBMODULE()
201 py::class_<MyObject4, std::unique_ptr<MyObject4, py::nodelete>>(m, "MyObject4") in TEST_SUBMODULE()
232 py::class_<MyObject4a, std::unique_ptr<MyObject4a, py::nodelete>>(m, "MyObject4a") in TEST_SUBMODULE()
243 py::class_<MyObject4b, MyObject4a>(m, "MyObject4b") in TEST_SUBMODULE()
253 py::class_<MyObject5, huge_unique_ptr<MyObject5>>(m, "MyObject5") in TEST_SUBMODULE()
270 py::class_<A, std::shared_ptr<A>>(m, "A"); in TEST_SUBMODULE()
271 py::class_<SharedPtrRef>(m, "SharedPtrRef") in TEST_SUBMODULE()
[all …]
Dtest_modules.cpp31 py::class_<A>(m_sub, "A") in TEST_SUBMODULE()
47 py::class_<B>(m_sub, "B") in TEST_SUBMODULE()
69 py::class_<Dupe1>(dm, "Dupe1"); in TEST_SUBMODULE()
70 py::class_<Dupe2>(dm, "Dupe2"); in TEST_SUBMODULE()
75 py::class_<Dupe1>(dm, "Dupe1"); in TEST_SUBMODULE()
83 py::class_<Dupe3>(dm, "dupe1_factory"); in TEST_SUBMODULE()
95 py::class_<DupeException>(dm, "DupeException"); in TEST_SUBMODULE()
Dtest_virtual_functions.cpp194 py::class_<ExampleVirt, PyExampleVirt>(m, "ExampleVirt") in TEST_SUBMODULE()
201 py::class_<NonCopyable>(m, "NonCopyable") in TEST_SUBMODULE()
204 py::class_<Movable>(m, "Movable") in TEST_SUBMODULE()
209 py::class_<NCVirt, NCVirtTrampoline>(m, "NCVirt") in TEST_SUBMODULE()
247 py::class_<A, PyA>(m, "A") in TEST_SUBMODULE()
272 py::class_<A2, PyA2>(m, "A2") in TEST_SUBMODULE()
281 py::class_<Base, DispatchIssue>(m, "DispatchIssue") in TEST_SUBMODULE()
322 py::class_<OverrideTest::A>(m, "OverrideTest_A") in TEST_SUBMODULE()
324 py::class_<OverrideTest, PyOverrideTest>(m, "OverrideTest") in TEST_SUBMODULE()
466 py::class_<A_Repeat, PyA_Repeat>(m, "A_Repeat") in initialize_inherited_virtuals()
[all …]
Dtest_operator_overloading.cpp105 py::class_<Vector2>(m, "Vector2") in TEST_SUBMODULE()
140 py::class_<C1>(m, "C1") in TEST_SUBMODULE()
144 py::class_<C2>(m, "C2") in TEST_SUBMODULE()
153 py::class_<NestABase>(m, "NestABase") in TEST_SUBMODULE()
161 py::class_<NestA>(m, "NestA") in TEST_SUBMODULE()
174 py::class_<NestB>(m, "NestB") in TEST_SUBMODULE()
185 py::class_<NestC>(m, "NestC") in TEST_SUBMODULE()
208 py::class_<Comparable>(m, "Comparable") in TEST_SUBMODULE()
212 py::class_<Hashable>(m, "Hashable") in TEST_SUBMODULE()
218 py::class_<Hashable2>(m, "Hashable2") in TEST_SUBMODULE()
Dtest_tagbased_polymorphic.cpp123 py::class_<Animal>(m, "Animal") in TEST_SUBMODULE()
125 py::class_<Dog, Animal>(m, "Dog") in TEST_SUBMODULE()
129 py::class_<Labrador, Dog>(m, "Labrador") in TEST_SUBMODULE()
132 py::class_<Chihuahua, Dog>(m, "Chihuahua") in TEST_SUBMODULE()
135 py::class_<Cat, Animal>(m, "Cat") in TEST_SUBMODULE()
138 py::class_<Panther, Cat>(m, "Panther") in TEST_SUBMODULE()
Dtest_buffers.cpp79 py::class_<Matrix>(m, "Matrix", py::buffer_protocol()) in TEST_SUBMODULE()
124 py::class_<SquareMatrix, Matrix>(m, "SquareMatrix") in TEST_SUBMODULE()
139 py::class_<Buffer>(m, "Buffer", py::buffer_protocol()) in TEST_SUBMODULE()
159 py::class_<ConstBuffer>(m, "ConstBuffer", py::buffer_protocol()) in TEST_SUBMODULE()
165 py::class_<DerivedBuffer>(m, "DerivedBuffer", py::buffer_protocol()) in TEST_SUBMODULE()
178 py::class_<BufferReadOnly>(m, "BufferReadOnly", py::buffer_protocol()) in TEST_SUBMODULE()
190 py::class_<BufferReadOnlySelect>(m, "BufferReadOnlySelect", py::buffer_protocol()) in TEST_SUBMODULE()
197 py::class_<py::buffer_info>(m, "buffer_info") in TEST_SUBMODULE()
Dtest_methods_and_attributes.cpp153 py::class_<ExampleMandA> emna(m, "ExampleMandA"); in TEST_SUBMODULE()
210 …auto emna = py::reinterpret_borrow<py::class_<ExampleMandA>>(py::module_::import("pybind11_tests.m… in TEST_SUBMODULE()
215 …auto emna = py::reinterpret_borrow<py::class_<ExampleMandA>>(py::module_::import("pybind11_tests.m… in TEST_SUBMODULE()
227 py::class_<TestProperties>(m, "TestProperties") in TEST_SUBMODULE()
252 py::class_<TestPropertiesOverride, TestProperties>(m, "TestPropertiesOverride") in TEST_SUBMODULE()
264 py::class_<TestPropRVP>(m, "TestPropRVP") in TEST_SUBMODULE()
284 py::class_<MetaclassOverride>(m, "MetaclassOverride", py::metaclass((PyObject *) &PyType_Type)) in TEST_SUBMODULE()
301 py::class_<DynamicClass>(m, "DynamicClass", py::dynamic_attr()) in TEST_SUBMODULE()
305 py::class_<CppDerivedDynamicClass, DynamicClass>(m, "CppDerivedDynamicClass") in TEST_SUBMODULE()
328 py::class_<NoneTester, std::shared_ptr<NoneTester>>(m, "NoneTester") in TEST_SUBMODULE()
[all …]
Dtest_stl.cpp147 py::class_<MoveOutContainer::Value>(m, "MoveOutContainerValue") in TEST_SUBMODULE()
149 py::class_<MoveOutContainer>(m, "MoveOutContainer") in TEST_SUBMODULE()
164 py::class_<NoAssign>(m, "NoAssign", "Class with no C++ assignment operators") in TEST_SUBMODULE()
180 py::class_<MoveOutDetector>(m, "MoveOutDetector", "Class with move tracking") in TEST_SUBMODULE()
208 py::class_<opt_holder>(m, "OptionalHolder", "Class with optional member") in TEST_SUBMODULE()
234 py::class_<opt_exp_holder>(m, "OptionalExpHolder", "Class with optional member") in TEST_SUBMODULE()
300 py::class_<Placeholder>(m, "Placeholder"); in TEST_SUBMODULE()
317 py::class_<Issue1561Inner>(m, "Issue1561Inner") in TEST_SUBMODULE()
321 py::class_<Issue1561Outer>(m, "Issue1561Outer") in TEST_SUBMODULE()
/external/python/cpython2/Tools/webchecker/
Dtktools.py16 def make_toplevel(master, title=None, class_=None): argument
24 if class_:
25 widget = Toplevel(master, class_=class_)
63 def make_scrollbars(parent, hbar, vbar, pack=1, class_=None, name=None, argument
77 if class_:
78 if name: frame = Frame(parent, class_=class_, name=name)
79 else: frame = Frame(parent, class_=class_)
136 class_=None, name=None, takefocus=None): argument
150 class_=class_, name=name,
164 fill=BOTH, expand=1, pack=1, class_=None, name=None, argument
[all …]
/external/freetype/include/freetype/internal/
Dftserv.h183 #define FT_DEFINE_SERVICEDESCREC1( class_, \ argument
185 static const FT_ServiceDescRec class_[] = \
191 #define FT_DEFINE_SERVICEDESCREC2( class_, \ argument
194 static const FT_ServiceDescRec class_[] = \
201 #define FT_DEFINE_SERVICEDESCREC3( class_, \ argument
205 static const FT_ServiceDescRec class_[] = \
213 #define FT_DEFINE_SERVICEDESCREC4( class_, \ argument
218 static const FT_ServiceDescRec class_[] = \
227 #define FT_DEFINE_SERVICEDESCREC5( class_, \ argument
233 static const FT_ServiceDescRec class_[] = \
[all …]
Dftobjs.h229 #define FT_DECLARE_CMAP_CLASS( class_ ) \ argument
230 FT_CALLBACK_TABLE const FT_CMap_ClassRec class_;
233 class_, \ argument
245 const FT_CMap_ClassRec class_ = \
1004 class_, \ argument
1011 static const FT_Outline_Funcs class_ = \
1033 class_, \ argument
1040 const FT_Raster_Funcs class_ = \
1061 #define FT_DECLARE_GLYPH( class_ ) \ argument
1062 FT_CALLBACK_TABLE const FT_Glyph_Class class_;
[all …]
Dautohint.h210 #define FT_DECLARE_AUTOHINTER_INTERFACE( class_ ) \ argument
211 FT_CALLBACK_TABLE const FT_AutoHinter_InterfaceRec class_;
214 class_, \ argument
220 const FT_AutoHinter_InterfaceRec class_ = \
/external/tensorflow/tensorflow/core/graph/
Dgraph.h164 bool IsSwitch() const { return class_ == NC_SWITCH; } in IsSwitch()
165 bool IsMerge() const { return class_ == NC_MERGE; } in IsMerge()
166 bool IsEnter() const { return class_ == NC_ENTER; } in IsEnter()
167 bool IsExit() const { return class_ == NC_EXIT; } in IsExit()
168 bool IsNextIteration() const { return class_ == NC_NEXT_ITERATION; } in IsNextIteration()
169 bool IsLoopCond() const { return class_ == NC_LOOP_COND; } in IsLoopCond()
170 bool IsControlTrigger() const { return class_ == NC_CONTROL_TRIGGER; } in IsControlTrigger()
171 bool IsSend() const { return class_ == NC_SEND || class_ == NC_HOST_SEND; } in IsSend()
172 bool IsRecv() const { return class_ == NC_RECV || class_ == NC_HOST_RECV; } in IsRecv()
173 bool IsConstant() const { return class_ == NC_CONSTANT; } in IsConstant()
[all …]
/external/tensorflow/tensorflow/compiler/mlir/python/mlir_wrapper/
Dbasic_classes.cc25 py::class_<mlir::MLIRContext>(m, "MLIRContext").def(py::init<>()); in init_basic_classes()
27 py::class_<mlir::Location>(m, "Location"); in init_basic_classes()
29 py::class_<mlir::UnknownLoc>(m, "UnknownLoc") in init_basic_classes()
34 py::class_<mlir::Region>(m, "Region") in init_basic_classes()
41 py::class_<mlir::Block::iterator>(m, "Block_Iterator"); in init_basic_classes()
42 py::class_<mlir::Block>(m, "Block") in init_basic_classes()
50 py::class_<mlir::Value>(m, "Value").def("getType", &mlir::Value::getType); in init_basic_classes()
51 py::class_<mlir::OpResult, mlir::Value>(m, "OpResult"); in init_basic_classes()
52 py::class_<mlir::BlockArgument, mlir::Value>(m, "BlockArgument"); in init_basic_classes()
Dops.cc23 py::class_<mlir::Operation, std::unique_ptr<mlir::Operation, py::nodelete>>( in init_ops()
31 py::class_<mlir::OperationState>(m, "OperationState") in init_ops()
46 py::class_<mlir::ModuleOp>(m, "ModuleOp") in init_ops()
59 py::class_<mlir::func::FuncOp>(m, "FuncOp") in init_ops()
76 py::class_<mlir::func::ReturnOp>(m, "ReturnOp") in init_ops()
87 py::class_<mlir::TF::AddV2Op>(m, "Tf_AddV2Op") in init_ops()
94 py::class_<mlir::TF::AnyOp>(m, "Tf_AnyOp") in init_ops()
106 py::class_<mlir::TF::ConstOp>(m, "Tf_ConstOp") in init_ops()
114 py::class_<mlir::TF::EqualOp>(m, "Tf_EqualOp") in init_ops()
124 py::class_<mlir::TF::GreaterEqualOp>(m, "Tf_GreaterEqualOp") in init_ops()
[all …]
Dtypes.cc22 py::class_<mlir::Type> Type(m, "Type"); in init_types()
25 py::class_<mlir::FunctionType, mlir::Type>(m, "FunctionType") in init_types()
29 py::class_<mlir::FloatType, mlir::Type>(m, "FloatType") in init_types()
35 py::class_<mlir::IntegerType, mlir::Type>(m, "IntegerType") in init_types()
41 py::class_<mlir::UnrankedTensorType, mlir::Type>(m, "UnrankedTensorType") in init_types()
44 py::class_<mlir::RankedTensorType, mlir::Type>(m, "RankedTensorType") in init_types()
/external/python/asn1crypto/asn1crypto/
Dparser.py25 def emit(class_, method, tag, contents): argument
50 if not isinstance(class_, int):
51 raise TypeError('class_ must be an integer, not %s' % type_name(class_))
53 if class_ < 0 or class_ > 3:
54 raise ValueError('class_ must be one of 0, 1, 2 or 3, not %s' % class_)
71 return _dump_header(class_, method, tag, contents) + contents
239 def _dump_header(class_, method, tag, contents): argument
263 id_num |= class_ << 6
Dcore.py178 class_ = None variable in Asn1Value
233 …def __init__(self, explicit=None, implicit=None, no_explicit=False, tag_type=None, class_=None, ta… argument
303 if class_ is None:
304 class_ = 'context'
305 explicit = (class_, explicit)
313 if class_ is None:
314 class_ = 'context'
315 implicit = (class_, implicit)
323 if class_ is None:
324 class_ = 'context'
[all …]
/external/python/pybind11/docs/
Dclasses.rst31 py::class_<Pet>(m, "Pet")
37 :class:`class_` creates bindings for a C++ *class* or *struct*-style data
59 :func:`class_::def_static`.
85 py::class_<Pet>(m, "Pet")
111 :func:`class_::def_readwrite` method. A similar :func:`class_::def_readonly`
116 py::class_<Pet>(m, "Pet")
146 In this case, the method :func:`class_::def_property`
147 (:func:`class_::def_property_readonly` for read-only data) can be used to
153 py::class_<Pet>(m, "Pet")
163 Similar functions :func:`class_::def_readwrite_static`,
[all …]
/external/libkmsxx/py/pykms/
Dpykmsbase.cpp22 py::class_<Card>(m, "Card") in init_pykmsbase()
55 py::class_<DrmObject, unique_ptr<DrmObject, py::nodelete>>(m, "DrmObject") in init_pykmsbase()
60 py::class_<DrmPropObject, DrmObject, unique_ptr<DrmPropObject, py::nodelete>>(m, "DrmPropObject") in init_pykmsbase()
69 py::class_<Connector, DrmPropObject, unique_ptr<Connector, py::nodelete>>(m, "Connector") in init_pykmsbase()
83 py::class_<Crtc, DrmPropObject, unique_ptr<Crtc, py::nodelete>>(m, "Crtc") in init_pykmsbase()
103 py::class_<Encoder, DrmPropObject, unique_ptr<Encoder, py::nodelete>>(m, "Encoder") in init_pykmsbase()
106 py::class_<Plane, DrmPropObject, unique_ptr<Plane, py::nodelete>>(m, "Plane") in init_pykmsbase()
117 py::class_<Property, DrmObject, unique_ptr<Property, py::nodelete>>(m, "Property") in init_pykmsbase()
121 py::class_<Blob>(m, "Blob") in init_pykmsbase()
141 py::class_<Framebuffer>(m, "Framebuffer") in init_pykmsbase()
[all …]
/external/mesa3d/src/gallium/drivers/svga/svgadump/
Dsvga_dump.py60 class_ = self.decl
63 for variable in class_.variables():
165 def dump_struct(decls, class_): argument
167 print 'dump_%s(const %s *cmd)' % (class_.name, class_.name)
169 dump_decl('', class_)
332 for class_ in global_ns.classes(lambda decl: decl.name in names):
333 dump_struct(decls, class_)
/external/python/cpython2/Lib/idlelib/
Dhelp.py73 class_ = ''
76 class_ = v
78 if tag == 'div' and class_ == 'section':
80 elif tag == 'div' and class_ == 'sphinxsidebar':
82 elif tag == 'p' and class_ != 'first':
84 elif tag == 'span' and class_ == 'pre':
86 elif tag == 'span' and class_ == 'versionmodified':
91 if class_.find('simple') != -1:
113 elif tag == 'a' and class_ == 'headerlink':
/external/tensorflow/tensorflow/compiler/xla/python/
Dxla_compiler.cc198 void DefRepeatedProperty(py::class_<T>& cls, const char* name, in DefRepeatedProperty()
223 py::class_<Layout> layout_class(m, "Layout"); in BuildXlaCompilerSubmodule()
235 py::class_<Shape> shape_class(m, "Shape"); in BuildXlaCompilerSubmodule()
363 py::class_<ProgramShape>(m, "ProgramShape") in BuildXlaCompilerSubmodule()
379 py::class_<ShapeIndex>(m, "ShapeIndex") in BuildXlaCompilerSubmodule()
392 py::class_<Literal, std::shared_ptr<Literal>>(m, "Literal") in BuildXlaCompilerSubmodule()
395 py::class_<XlaComputation>(m, "XlaComputation") in BuildXlaCompilerSubmodule()
412 py::class_<HloPrintOptions> hlo_print_options_class(m, "HloPrintOptions"); in BuildXlaCompilerSubmodule()
463 py::class_<HloModule, std::shared_ptr<HloModule>> hlo_module_class( in BuildXlaCompilerSubmodule()
508 py::class_<XlaOp> xla_op_class(m, "XlaOp"); in BuildXlaCompilerSubmodule()
[all …]

123456789