Public Member Functions | Public Attributes | List of all members
Dog Struct Reference
Inheritance diagram for Dog:
Inheritance graph
[legend]

Public Member Functions

std::string bark () const
 
 Dog (const std::string &_name, Kind _kind=Kind::Dog)
 
- Public Member Functions inherited from Animal
virtual ~Animal ()=default
 

Public Attributes

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)
 

Detailed Description

Definition at line 41 of file test_tagbased_polymorphic.cpp.

Constructor & Destructor Documentation

◆ Dog()

Dog::Dog ( const std::string &  _name,
Kind  _kind = Kind::Dog 
)
inlineexplicit

Definition at line 42 of file test_tagbased_polymorphic.cpp.

Member Function Documentation

◆ bark()

std::string Dog::bark ( ) const
inline

Definition at line 43 of file test_tagbased_polymorphic.cpp.

Member Data Documentation

◆ sound

std::string Dog::sound = "WOOF!"

Definition at line 44 of file test_tagbased_polymorphic.cpp.


The documentation for this struct was generated from the following file:


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:41:02