/external/python/pybind11/docs/ |
D | classes.rst | 10 custom C++ data structure named ``Pet``. Its definition is given below: 14 struct Pet { 15 Pet(const std::string &name) : name(name) { } 22 The binding code for ``Pet`` looks as follows: 31 py::class_<Pet>(m, "Pet") 33 .def("setName", &Pet::setName) 34 .def("getName", &Pet::getName); 47 >>> p = example.Pet('Molly') 49 <example.Pet object at 0x10cd98060> 75 <example.Pet object at 0x10cd98060> [all …]
|
D | changelog.rst | 1389 py::class_<Pet>(m, "Pet") 1390 .def("set", py::overload_cast<int>(&Pet::set), "Set the pet's age") 1391 .def("set", py::overload_cast<const std::string &>(&Pet::set), "Set the pet's name");
|
/external/auto/value/src/it/functional/src/test/java/com/google/auto/value/ |
D | AutoOneOfTest.java | 66 @AutoOneOf(Pet.Kind.class) 67 public abstract static class Pet { class in AutoOneOfTest 69 public static Pet create(Dog dog) { in create() 73 public static Pet create(Cat cat) { in create() 77 public static Pet create(TigerShark shark) { in create() 99 Pet petMarvin1 = Pet.create(marvin1); in equality() 101 Pet petMarvin2 = Pet.create(marvin2); in equality() 103 Pet petIsis = Pet.create(isis); in equality() 117 Pet petMarvin = Pet.create(marvin); in getCorrectType() 124 Pet petCat = Pet.create(cat); in getWrongType() [all …]
|
/external/python/pybind11/tests/ |
D | test_class.cpp | 53 class Pet { in TEST_SUBMODULE() class 55 Pet(const std::string &name, const std::string &species) in TEST_SUBMODULE() function in TEST_SUBMODULE::Pet 64 class Dog : public Pet { in TEST_SUBMODULE() 66 Dog(const std::string &name) : Pet(name, "dog") {} in TEST_SUBMODULE() 70 class Rabbit : public Pet { in TEST_SUBMODULE() 72 Rabbit(const std::string &name) : Pet(name, "parrot") {} in TEST_SUBMODULE() 75 class Hamster : public Pet { in TEST_SUBMODULE() 77 Hamster(const std::string &name) : Pet(name, "rodent") {} in TEST_SUBMODULE() 80 class Chimera : public Pet { in TEST_SUBMODULE() 81 Chimera() : Pet("Kimmy", "chimera") {} in TEST_SUBMODULE() [all …]
|
D | test_local_bindings.cpp | 89 class Cat : public pets::Pet { public: Cat(std::string name) : Pet(name) {}; }; in TEST_SUBMODULE() 90 py::class_<pets::Pet>(m, "Pet", py::module_local()) in TEST_SUBMODULE() 91 .def("get_name", &pets::Pet::name); in TEST_SUBMODULE() 93 py::class_<Cat, pets::Pet>(m, "Cat") in TEST_SUBMODULE() 95 m.def("pet_name", [](pets::Pet &p) { return p.name(); }); in TEST_SUBMODULE()
|
D | pybind11_cross_module_tests.cpp | 99 class Dog : public pets::Pet { public: Dog(std::string name) : Pet(name) {}; }; in PYBIND11_MODULE() 100 py::class_<pets::Pet>(m, "Pet", py::module_local()) in PYBIND11_MODULE() 101 .def("name", &pets::Pet::name); in PYBIND11_MODULE() 103 py::class_<Dog, pets::Pet>(m, "Dog") in PYBIND11_MODULE() 105 m.def("pet_name", [](pets::Pet &p) { return p.name(); }); in PYBIND11_MODULE()
|
D | local_bindings.h | 55 class Pet { 57 Pet(std::string name) : name_(name) {} in Pet() function
|
D | test_class.py | 143 polly = m.Pet("Polly", "parrot") 176 class Python(m.Pet): 211 objects = [tuple(), dict(), m.Pet("Polly", "parrot")] + [m.Dog("Molly")] * 4
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/ext/ |
D | ExternalTypeId2588Test.java | 20 static class Pet { class in ExternalTypeId2588Test 30 public Pet(@JsonProperty("type") String type, in Pet() method in ExternalTypeId2588Test.Pet 73 Pet pet; in testExternalTypeId2588() 85 ), Pet.class); in testExternalTypeId2588() 97 ), Pet.class); in testExternalTypeId2588()
|
D | ExternalTypeIdTest.java | 165 interface Pet {} interface in ExternalTypeIdTest 167 static class Dog implements Pet { 176 public Pet pet;
|
/external/python/pybind11/docs/advanced/ |
D | classes.rst | 923 py::class_<Pet>(m, "Pet") 925 .def_readonly("name", &Pet::name); 930 m.def("create_pet", [](std::string name) { return new Pet(name); }); 934 >>> from module1 import Pet 936 >>> pet1 = Pet("Kitty") 956 py::class<pets::Pet>(m, "Pet") 957 .def("name", &pets::Pet::name); 960 py::class<Dog, pets::Pet>(m, "Dog") 968 py::class<pets::Pet>(m, "Pet") 969 .def("get_name", &pets::Pet::name); [all …]
|
D | misc.rst | 119 py::class_<Pet> pet(m, "Pet"); 121 .def_readwrite("name", &Pet::name); 127 Suppose now that ``Pet`` bindings are defined in a module named ``basic``, 135 py::object pet = (py::object) py::module_::import("basic").attr("Pet"); 151 py::class_<Dog, Pet>(m, "Dog")
|
/external/golang-protobuf/proto/ |
D | clone_test.go | 46 Pet: []string{"bunny", "kitty", "horsey"}, 145 Pet: []string{"horsey"}, 157 Pet: []string{"bunny", "kitty"}, 174 Pet: []string{"bunny", "kitty", "horsey"},
|
D | text_parser_test.go | 539 Pet: []string{"bunny", "kitty", "horsey"},
|
D | text_test.go | 75 Pet: []string{"bunny", "kitty", "horsey"},
|
D | all_test.go | 1195 …want := &MyMessage{Count: Int32(11), Name: String("aaa"), Pet: []string{"bbb", "ccc"}, Bigfloat: F… 1451 Pet: []string{"turtle", "wombat"}, 1480 Pet: []string{"bunny", "kitty"},
|
/external/golang-protobuf/proto/test_proto/ |
D | test.pb.go | 1895 Pet []string `protobuf:"bytes,4,rep,name=pet" json:"pet,omitempty"` member 1967 return m.Pet
|
/external/ImageMagick/PerlMagick/t/ |
D | input.mat | 222 ! (*,;Pet{~|zyvvvuz��������������������������������������������…
|
/external/icu/icu4c/source/data/zone/ |
D | sq.txt | 355 ec{"Petërsburg, Indiana"}
|
/external/libcups/locale/ |
D | cups.strings | 2828 // TRANSLATORS: Pet 2829 "material-type.pet" = "Pet";
|
D | cups_en.po | 8267 #. TRANSLATORS: Pet 8269 msgstr "Pet"
|
D | cups_cs.po | 7965 #. TRANSLATORS: Pet
|
D | cups_de.po | 8088 #. TRANSLATORS: Pet
|
/external/cldr/tools/java/org/unicode/cldr/util/data/external/ |
D | subdivisionData.txt | 1821 GT-PE Petén
|
/external/rust/crates/csv/examples/data/bench/ |
D | worldcitiespop.csv | 14747 gt,flores peten,Flores Petén,12,,16.933333,-89.883333 15908 fi,petajakoski,Petäjäkoski,14,,63.2,26.8
|