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 14 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 38 of file test_tagbased_polymorphic.cpp.
|
static |
Definition at line 114 of file test_tagbased_polymorphic.cpp.
|
static |
Definition at line 85 of file test_tagbased_polymorphic.cpp.
const Kind Animal::kind |
Definition at line 34 of file test_tagbased_polymorphic.cpp.
const std::string Animal::name |
Definition at line 35 of file test_tagbased_polymorphic.cpp.