Public Types | |
enum | Kind { Kind::Unknown = 0, Kind::Dog = 100, Kind::Labrador, Kind::Chihuahua, Kind::LastDog = 199, Kind::Cat = 200, Kind::Panther, Kind::LastCat = 299 } |
Public Member Functions | |
virtual | ~Animal ()=default |
Static Public Member Functions | |
static std::string | name_of_kind (Kind kind) |
static const std::type_info * | type_of_kind (Kind kind) |
Public Attributes | |
const Kind | kind |
const std::string | name |
Protected Member Functions | |
Animal (const std::string &_name, Kind _kind) | |
Definition at line 13 of file test_tagbased_polymorphic.cpp.
|
strong |
Enumerator | |
---|---|
Unknown | |
Dog | |
Labrador | |
Chihuahua | |
LastDog | |
Cat | |
Panther | |
LastCat |
Definition at line 21 of file test_tagbased_polymorphic.cpp.
|
virtualdefault |
|
inlineprotected |
Definition at line 33 of file test_tagbased_polymorphic.cpp.
|
static |
Definition at line 106 of file test_tagbased_polymorphic.cpp.
|
static |
Definition at line 86 of file test_tagbased_polymorphic.cpp.
const Kind Animal::kind |
Definition at line 29 of file test_tagbased_polymorphic.cpp.
const std::string Animal::name |
Definition at line 30 of file test_tagbased_polymorphic.cpp.