Lines Matching defs:Dog
17 Dog = 100, Labrador, Chihuahua, LastDog = 199,
32 struct Dog : Animal
34 Dog(const std::string& _name, Kind _kind = Kind::Dog) : Animal(_name, _kind) {}
39 struct Labrador : Dog
42 : Dog(_name, Kind::Labrador), excitement(_excitement) {}
46 struct Chihuahua : Dog
48 Chihuahua(const std::string& _name) : Dog(_name, Kind::Chihuahua) { sound = "iyiyiyiyiyi"; }
49 std::string bark() const { return Dog::bark() + " and runs in circles"; }
69 // simulate some new type of Dog that the Python bindings
71 // a Dog, not just an Animal.
72 ret.emplace_back(new Dog("Ginger", Dog::Kind(150)));
85 case Kind::Dog: break;
95 if (kind >= Kind::Dog && kind <= Kind::LastDog) return &typeid(Dog);
119 py::class_<Dog, Animal>(m, "Dog")
121 .def_readwrite("sound", &Dog::sound)
122 .def("bark", &Dog::bark);
123 py::class_<Labrador, Dog>(m, "Labrador")
126 py::class_<Chihuahua, Dog>(m, "Chihuahua")