Public Member Functions | |
Labrador (const std::string &_name, int _excitement=9001) | |
Public Member Functions inherited from Dog | |
std::string | bark () const |
Dog (const std::string &_name, Kind _kind=Kind::Dog) | |
Public Member Functions inherited from Animal | |
virtual | ~Animal ()=default |
Public Attributes | |
int | excitement |
Public Attributes inherited from Dog | |
std::string | sound = "WOOF!" |
Public Attributes inherited from Animal | |
const Kind | kind |
const std::string | name |
Additional Inherited Members | |
Public Types inherited from Animal | |
enum | Kind { Kind::Unknown = 0, Kind::Dog = 100, Kind::Labrador, Kind::Chihuahua, Kind::LastDog = 199, Kind::Cat = 200, Kind::Panther, Kind::LastCat = 299 } |
Static Public Member Functions inherited from Animal | |
static std::string | name_of_kind (Kind kind) |
static const std::type_info * | type_of_kind (Kind kind) |
Protected Member Functions inherited from Animal | |
Animal (const std::string &_name, Kind _kind) | |
Definition at line 47 of file test_tagbased_polymorphic.cpp.
|
inlineexplicit |
Definition at line 48 of file test_tagbased_polymorphic.cpp.
int Labrador::excitement |
Definition at line 50 of file test_tagbased_polymorphic.cpp.