Home
last modified time | relevance | path

Searched refs:Pet (Results 1 – 25 of 36) sorted by relevance

12

/external/python/pybind11/docs/
Dclasses.rst10 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 …]
Dchangelog.rst1389 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/
DAutoOneOfTest.java66 @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/
Dtest_class.cpp53 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 …]
Dtest_local_bindings.cpp89 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()
Dpybind11_cross_module_tests.cpp99 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()
Dlocal_bindings.h55 class Pet {
57 Pet(std::string name) : name_(name) {} in Pet() function
Dtest_class.py143 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/
DExternalTypeId2588Test.java20 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()
DExternalTypeIdTest.java165 interface Pet {} interface in ExternalTypeIdTest
167 static class Dog implements Pet {
176 public Pet pet;
/external/python/pybind11/docs/advanced/
Dclasses.rst923 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 …]
Dmisc.rst119 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/
Dclone_test.go46 Pet: []string{"bunny", "kitty", "horsey"},
145 Pet: []string{"horsey"},
157 Pet: []string{"bunny", "kitty"},
174 Pet: []string{"bunny", "kitty", "horsey"},
Dtext_parser_test.go539 Pet: []string{"bunny", "kitty", "horsey"},
Dtext_test.go75 Pet: []string{"bunny", "kitty", "horsey"},
Dall_test.go1195 …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/
Dtest.pb.go1895 Pet []string `protobuf:"bytes,4,rep,name=pet" json:"pet,omitempty"` member
1967 return m.Pet
/external/ImageMagick/PerlMagick/t/
Dinput.mat222 ! (*,;Pet{~|zyvvvuz��������������������������������������������…
/external/icu/icu4c/source/data/zone/
Dsq.txt355 ec{"Petërsburg, Indiana"}
/external/libcups/locale/
Dcups.strings2828 // TRANSLATORS: Pet
2829 "material-type.pet" = "Pet";
Dcups_en.po8267 #. TRANSLATORS: Pet
8269 msgstr "Pet"
Dcups_cs.po7965 #. TRANSLATORS: Pet
Dcups_de.po8088 #. TRANSLATORS: Pet
/external/cldr/tools/java/org/unicode/cldr/util/data/external/
DsubdivisionData.txt1821 GT-PE Petén
/external/rust/crates/csv/examples/data/bench/
Dworldcitiespop.csv14747 gt,flores peten,Flores Petén,12,,16.933333,-89.883333
15908 fi,petajakoski,Petäjäkoski,14,,63.2,26.8

12