Home
last modified time | relevance | path

Searched refs:Animal (Results 1 – 17 of 17) sorted by relevance

/external/python/pybind11/tests/
Dtest_tagbased_polymorphic.cpp13 struct Animal struct
27 Animal(const std::string& _name, Kind _kind) in Animal() argument
32 struct Dog : Animal
34 Dog(const std::string& _name, Kind _kind = Kind::Dog) : Animal(_name, _kind) {} in Dog()
52 struct Cat : Animal
54 Cat(const std::string& _name, Kind _kind = Kind::Cat) : Animal(_name, _kind) {} in Cat()
64 std::vector<std::unique_ptr<Animal>> create_zoo() in create_zoo()
66 std::vector<std::unique_ptr<Animal>> ret; in create_zoo()
80 const std::type_info* Animal::type_of_kind(Kind kind) in type_of_kind()
100 std::string Animal::name_of_kind(Kind kind) in name_of_kind()
[all …]
/external/guice/extensions/assistedinject/test/com/google/inject/assistedinject/
DExtensionSpiTest.java146 Animal createASimpleCatAsAnimal(String owner); in createASimpleCatAsAnimal()
148 Animal createAStrangeCatAsAnimal(String owner); in createAStrangeCatAsAnimal()
157 interface Animal {} interface in ExtensionSpiTest
159 private static class Cat implements Animal {
164 private static class SimpleCat implements Animal {
169 private static class StrangeCat implements Animal {
177 private static class ExplodingCat implements Animal {
202 .implement(Animal.class, StrangeCat.class) in configure()
203 .implement(Animal.class, named("SimpleCat"), SimpleCat.class) in configure()
DFactoryModuleBuilderTest.java494 .implement(Animal.class, Dog.class) in testFactoryBindingDependencies()
540 Animal createAnimal(String name); in createAnimal()
547 interface Animal {} interface in FactoryModuleBuilderTest
550 private static class Dog implements Animal {
561 private static class Cat implements Animal {
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/immutable/
DHouseBean.java20 private Animal animal;
30 public Animal getAnimal() { in getAnimal()
34 public void setAnimal(Animal animal) { in setAnimal()
DAnimal.java18 public interface Animal { interface
DDog.java18 public class Dog implements Animal {
/external/python/pybind11/docs/advanced/
Dclasses.rst13 to override from within Python (we'll focus on the class ``Animal``; ``Dog`` is
19 class Animal {
21 virtual ~Animal() { }
25 class Dog : public Animal {
36 function ``go()`` on an arbitrary ``Animal`` instance.
40 std::string call_go(Animal *animal) {
49 py::class_<Animal>(m, "Animal")
50 .def("go", &Animal::go);
52 py::class_<Dog, Animal>(m, "Dog")
58 However, these bindings are impossible to extend: ``Animal`` is not
[all …]
Dmisc.rst52 class PyAnimal : public Animal {
55 using Animal::Animal;
64 Animal, /* Parent class */
72 py::class_<Animal, PyAnimal> animal(m, "Animal");
75 .def("go", &Animal::go);
80 m.def("call_go", [](Animal *animal) -> std::string {
166 class PYBIND11_EXPORT Dog : public Animal {
/external/clang/test/CodeGenCXX/
Ddevirtualize-virtual-function-calls.cpp88 struct Animal { struct
91 struct Fish : Animal {
/external/flatbuffers/samples/android/jni/schemas/
Danimal.fbs17 table Animal {
22 root_type Animal;
/external/python/cpython3/Doc/library/
Denum.rst455 >>> Animal = Enum('Animal', 'ANT BEE CAT DOG')
456 >>> Animal
457 <enum 'Animal'>
458 >>> Animal.ANT
459 <Animal.ANT: 1>
460 >>> Animal.ANT.value
462 >>> list(Animal)
463 [<Animal.ANT: 1>, <Animal.BEE: 2>, <Animal.CAT: 3>, <Animal.DOG: 4>]
475 assignment to :class:`Animal` is equivalent to::
477 >>> class Animal(Enum):
[all …]
/external/python/enum34/enum/doc/
Denum.rst380 >>> Animal = Enum('Animal', 'ant bee cat dog')
381 >>> Animal
382 <enum 'Animal'>
383 >>> Animal.ant
384 <Animal.ant: 1>
385 >>> Animal.ant.value
387 >>> list(Animal)
388 [<Animal.ant: 1>, <Animal.bee: 2>, <Animal.cat: 3>, <Animal.dog: 4>]
399 assignment to ``Animal`` is equivalent to::
/external/libchrome/base/
Dlogging_unittest.cc609 enum class Animal { DOG, CAT }; in TEST_F() enum
610 DCHECK_EQ(Animal::DOG, Animal::DOG); in TEST_F()
612 DCHECK_EQ(Animal::DOG, Animal::CAT); in TEST_F()
/external/python/cpython3/Doc/whatsnew/
D3.5.rst1128 >>> Animal = enum.Enum('Animal', 'cat dog', start=10)
1129 >>> Animal.cat
1130 <Animal.cat: 10>
1131 >>> Animal.dog
1132 <Animal.dog: 11>
/external/tensorflow/tensorflow/lite/g3doc/models/image_classification/
Doverview.md79 <th>Animal type</th>
/external/cldr/tools/java/org/unicode/cldr/draft/
DCategories.txt22919 1F400 So Symbol Animal Zodiac RAT
22920 1F401 So Symbol Animal Zodiac MOUSE
22921 1F402 So Symbol Animal Zodiac OX
22922 1F403 So Symbol Animal Zodiac WATER BUFFALO
22923 1F404 So Symbol Animal Zodiac COW
22924 1F405 So Symbol Animal Zodiac TIGER
22925 1F406 So Symbol Animal Zodiac LEOPARD
22926 1F407 So Symbol Animal Zodiac RABBIT
22927 1F408 So Symbol Animal Zodiac CAT
22928 1F409 So Symbol Animal Zodiac DRAGON
[all …]
/external/icu/icu4c/source/data/unidata/
Dppucd.txt36985 # Animal symbols
37031 # Animal faces
37049 # Animal symbols
37394 # Animal symbols
38405 # Animal symbols