Home
last modified time | relevance | path

Searched refs:Dog (Results 1 – 25 of 43) sorted by relevance

12

/external/python/pybind11/tests/
Dtest_tagbased_polymorphic.cpp23 Dog = 100, Labrador, Chihuahua, LastDog = 199, enumerator
38 struct Dog : Animal struct
40 Dog(const std::string& _name, Kind _kind = Kind::Dog) : Animal(_name, _kind) {} in Dog() function
45 struct Labrador : Dog argument
48 : Dog(_name, Kind::Labrador), excitement(_excitement) {} in Labrador()
52 struct Chihuahua : Dog
54 Chihuahua(const std::string& _name) : Dog(_name, Kind::Chihuahua) { sound = "iyiyiyiyiyi"; } in Chihuahua()
55 std::string bark() const { return Dog::bark() + " and runs in circles"; } in bark()
78 ret.emplace_back(new Dog("Ginger", Dog::Kind(150))); in create_zoo()
91 case Kind::Dog: break; in type_of_kind()
[all …]
Dpybind11_cross_module_tests.cpp99 class Dog : public pets::Pet { public: Dog(std::string name) : Pet(name) {}; }; in PYBIND11_MODULE() function in PYBIND11_MODULE::Dog
103 py::class_<Dog, pets::Pet>(m, "Dog") in PYBIND11_MODULE()
Dtest_class.py147 molly = m.Dog("Molly")
211 objects = [tuple(), dict(), m.Pet("Polly", "parrot")] + [m.Dog("Molly")] * 4
341 class PyDog(m.Dog):
344 for cls in m.Dog, PyDog:
Dtest_local_bindings.py233 mydog = cm.Dog("Rover")
237 assert cm.Dog.__base__.__name__ == "Pet"
238 assert m.Cat.__base__ is not cm.Dog.__base__
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/
DTestInnerClass.java8 static class Dog class in TestInnerClass
13 public Dog() { } in Dog() method in TestInnerClass.Dog
14 public Dog(String n, boolean thinking) { in Dog() method in TestInnerClass.Dog
39 Dog input = new Dog("Smurf", true); in testSimpleNonStaticInner()
41 Dog output = mapper.readValue(json, Dog.class); in testSimpleNonStaticInner()
53 output = mapper.readValue(mapper.writeValueAsString(input), Dog.class); in testSimpleNonStaticInner()
/external/auto/value/src/it/functional/src/test/java/com/google/auto/value/
DAutoOneOfTest.java38 public abstract static class Dog { class in AutoOneOfTest
41 public static Dog create(String name) { in create()
69 public static Pet create(Dog dog) { in create()
81 public abstract Dog dog(); in dog()
98 Dog marvin1 = Dog.create("Marvin"); in equality()
100 Dog marvin2 = Dog.create("Marvin"); in equality()
102 Dog isis = Dog.create("Isis"); in equality()
116 Dog marvin = Dog.create("Marvin"); in getCorrectType()
135 Dog marvin = Dog.create("Marvin"); in string()
142 Dog marvin = Dog.create("Marvin"); in getKind()
[all …]
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/
DTestWithGenerics.java19 @JsonSubTypes( { @Type(value = Dog.class, name = "doggy") })
24 static class Dog extends Animal { class in TestWithGenerics
27 public Dog(String name, int b) { in Dog() method in TestWithGenerics.Dog
140 Dog dog = new Dog("Fluffy", 3); in testWrapperWithGetter()
149 Dog dog = new Dog("Fluffy", 3); in testWrapperWithField()
158 Dog dog = new Dog("Fluffy", 3); in testWrapperWithExplicitType()
224 …inerWithField.animalContainer = new ContainerWithTwoAnimals<Dog,Dog>(new Dog("d1",1), new Dog("d2"… in testValueWithMoreGenericParameters()
DTestTypedDeserialization.java34 static class Dog extends Animal class in TestTypedDeserialization
39 public Dog(@JsonProperty("name") String name) { in Dog() method in TestTypedDeserialization.Dog
160 assertEquals(Dog.class, a.getClass()); in testTypeAsWrapper()
161 Dog d = (Dog) a; in testTypeAsWrapper()
172 String JSON = "[\""+Dog.class.getName()+"\", " in testTypeAsArray()
175 assertEquals(Dog.class, a.getClass()); in testTypeAsArray()
176 Dog d = (Dog) a; in testTypeAsArray()
192 "@classy", Dog.class.getName(), in testListAsArray()
206 Dog d = (Dog) animals.get(1); in testListAsArray()
DTestTypeNames.java69 MAPPER.writeValueAsString(new Animal[] { new Dog("Spot", 3) })); in testSerialization()
77 new Dog("Odie", 7), in testRoundTrip()
96 input.put("ama", new Dog("Amadeus", 13)); in testRoundTripMap()
122 @Type(value=Dog.class, name="doggy"),
144 class Dog extends Animal class
148 public Dog() { } in Dog() method in Dog
149 public Dog(String n, int y) { in Dog() method in Dog
157 && ((Dog) o).ageInYears == ageInYears; in equals()
DTestTypedContainerSerialization.java24 @JsonSubTypes( { @Type(value = Dog.class, name = "doggy"),
35 static class Dog extends Animal { class in TestTypedContainerSerialization
38 public Dog() { in Dog() method in TestTypedContainerSerialization.Dog
43 public Dog(@JsonProperty("name") String name) { in Dog() method in TestTypedContainerSerialization.Dog
111 Dog dog = new Dog("medor"); in testPolymorphicWithContainer()
128 animals.add(new Dog("Spot")); in testIssue329()
DTestTypedSerialization.java32 static class Dog extends Animal class in TestTypedSerialization
36 private Dog() { super(null); } in Dog() method in TestTypedSerialization.Dog
37 public Dog(String name, int b) { in Dog() method in TestTypedSerialization.Dog
125 Map<String,Object> result = writeAndMap(m, new AnimalWrapper(new Dog("Amadeus", 7))); in testTypeAsArray()
131 assertEquals(Dog.class.getName(), l.get(0)); in testTypeAsArray()
156 Animal[] animals = new Animal[] { new Cat("Miuku", "white"), new Dog("Murre", 9) }; in testInArray()
176 assertEquals(Dog.class.getName(), a2.get(classProp)); in testInArray()
DExistingPropertyTest.java70 @Type(value = Dog.class, name = "doggie") ,
82 static class Dog extends Animal class in ExistingPropertyTest
86 private Dog() { super(null); } in Dog() method in ExistingPropertyTest.Dog
87 public Dog(String name, int b) { in Dog() method in ExistingPropertyTest.Dog
209 private static final Dog rover = new Dog("Rover", 42);
356 assertTrue(dog instanceof Dog); in testSimpleClassAsExistingPropertyDeserializationAnimals()
357 assertSame(dog.getClass(), Dog.class); in testSimpleClassAsExistingPropertyDeserializationAnimals()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/ext/
DExternalTypeIdWithEnum1328Test.java17 public static class Dog implements Animal { class in ExternalTypeIdWithEnum1328Test
22 Dog; enumConstant
65 if (AnimalType.Dog.toString().equals(id)) { in typeFromId()
66 return context.constructType(Dog.class); in typeFromId()
86 .writeValueAsString(Arrays.asList(new AnimalAndType(AnimalType.Dog, new Dog()))); in testExample()
DExternalTypeId2588Test.java17 public static class Dog implements Animal { } class in ExternalTypeId2588Test
47 } else if (suggestedType.isAssignableFrom(Dog.class)) { in idFromValueAndType()
58 return context.constructType(Dog.class); in typeFromId()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/creators/
DTestPolymorphicCreators.java29 return new Dog(); in create()
38 static class Dog extends Animal class in TestPolymorphicCreators
41 public Dog() { } in Dog() method in TestPolymorphicCreators.Dog
103 assertEquals(Dog.class, animal.getClass()); in testManualPolymorphicDog()
105 assertEquals(95.0, ((Dog) animal).barkVolume); in testManualPolymorphicDog()
DTestCreatorWithPolymorphic113.java14 @JsonSubTypes({ @JsonSubTypes.Type(Dog.class) })
32 public static class Dog extends Animal { class in TestCreatorWithPolymorphic113
34 public Dog(@JsonProperty(ID) String id) { in Dog() method in TestCreatorWithPolymorphic113.Dog
57 String json = mapper.writeValueAsString(new AnimalWrapper(new Dog(id))); in testSubtypes()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/immutable/
DDog.java18 public class Dog implements Animal { class
21 public Dog(String name) { in Dog() method in Dog
DDogImmutableTest.java26 Dog loaded = (Dog) yaml.load("!!org.yaml.snakeyaml.immutable.Dog Bulldog"); in testDog()
/external/python/pybind11/docs/advanced/
Dmisc.rst77 py::class_<Dog>(m, "Dog", animal)
123 py::class_<Dog>(m, "Dog", pet /* <- specify parent */)
125 .def("bark", &Dog::bark);
128 whereas the ``Dog`` bindings are defined somewhere else. The challenge is of
130 to indicate the inheritance relationship to the constructor of ``class_<Dog>``.
137 py::class_<Dog>(m, "Dog", pet)
139 .def("bark", &Dog::bark);
151 py::class_<Dog, Pet>(m, "Dog")
153 .def("bark", &Dog::bark);
166 class PYBIND11_EXPORT Dog : public Animal {
Dclasses.rst13 to override from within Python (we'll focus on the class ``Animal``; ``Dog`` is
25 class Dog : public Animal {
52 py::class_<Dog, Animal>(m, "Dog")
102 py::class_<Dog, Animal>(m, "Dog")
124 extend ``Animal``, but not ``Dog``: see :ref:`virtual_and_inheritance` for the
134 >>> d = Dog()
160 class Dachshund(Dog):
162 Dog.__init__(self) # Without this, a TypeError is raised.
216 python classes. For example, suppose we extend the above ``Animal``/``Dog``
226 class Dog : public Animal {
[all …]
/external/python/pybind11/docs/
Dclasses.rst244 struct Dog : Pet {
245 Dog(const std::string &name) : Pet(name) { }
260 py::class_<Dog, Pet /* <- specify C++ parent type */>(m, "Dog")
262 .def("bark", &Dog::bark);
265 :class:`class_` object and reference it when binding the ``Dog`` class:
274 py::class_<Dog>(m, "Dog", pet /* <- specify Python parent type */)
276 .def("bark", &Dog::bark);
283 >>> p = example.Dog('Molly')
295 m.def("pet_store", []() { return std::unique_ptr<Pet>(new Dog("Molly")); });
300 >>> type(p) # `Dog` instance behind `Pet` pointer
[all …]
/external/llvm-project/clang/test/CodeGenCXX/
Dubsan-type-checks.cpp41 struct Dog : Animal { struct
63 auto *badDog = reinterpret_cast<Dog *>(cat); in invalid_cast()
/external/mockito/src/test/java/org/mockitousage/customization/
DBDDMockitoTest.java212 Dog dog = mock(Dog.class); in should_stub_by_delegating_to_real_method()
222 Dog dog = mock(Dog.class); in should_stub_by_delegating_to_real_method_using_typical_stubbing_syntax()
391 class Dog { class in BDDMockitoTest
/external/llvm-project/clang/test/Sema/
Dtypo-correction-recursive.cpp122 struct Dog { struct
129 struct Dog doggo; in get_dog_years() argument
/external/guice/extensions/assistedinject/test/com/google/inject/assistedinject/
DManyConstructorsTest.java297 Farm(@Assisted String pop, Dog dog) { in Farm()
302 Farm(@Assisted("mom") String mom, @Assisted("pop") String pop, Cow cow, Dog dog) { in Farm()
315 public static class Dog {} class in ManyConstructorsTest

12