Doxybook Example
Public Member Functions | List of all members
example::SpecialBird Class Reference

#include <special_bird.h>

Inheritance diagram for example::SpecialBird:
Inheritance graph
[legend]
Collaboration diagram for example::SpecialBird:
Collaboration graph
[legend]

Public Member Functions

 SpecialBird (const std::string &name, SpecialBird *mother=nullptr, SpecialBird *father=nullptr)
 
 SpecialBird (const SpecialBird &other)=delete
 
 SpecialBird (SpecialBird &&SpecialBird) noexcept
 
 ~SpecialBird ()=default
 
void swap (SpecialBird &other) noexcept
 
void do_something_special ()
 
SpecialBirdoperator= (const SpecialBird &other)=delete
 
SpecialBirdoperator= (SpecialBird &&other) noexcept
 
- Public Member Functions inherited from example::Bird
 Bird (const std::string &name, Bird *mother=nullptr, Bird *father=nullptr)
 
 Bird (const Bird &other)=delete
 
 Bird (Bird &&Bird) noexcept
 
 ~Bird ()=default
 
void swap (Bird &other) noexcept
 
void move () override
 
void make_sound () override
 
Birdoperator= (const Bird &other)=delete
 Deleted copy operator. More...
 
Birdoperator= (Bird &&other) noexcept
 Move operator. More...
 
- Public Member Functions inherited from example::Animal
 Animal (Type type, const std::string &name, Animal *mother=nullptr, Animal *father=nullptr)
 The main constructor. More...
 
 Animal (const Animal &other)=delete
 
 Animal (Animal &&animal) noexcept
 
virtual ~Animal ()=default
 
 operator bool () const
 Returns true if this is an valid animal. More...
 
void swap (Animal &other) noexcept
 
int get_num_of_limbs () const override
 Returns the number of limbs. More...
 
int get_num_of_eyes () const override
 Returns the number of eyes. More...
 
bool has_tail () const override
 Returns true if the animal has a tail. More...
 
Parents get_parents () const
 
const std::string & get_name () const
 Get the name of the animal. More...
 
void some_inline_member_function (Animal *animal)
 Lorem Ipsum. More...
 
Animaloperator= (const Animal &other)=delete
 Deleted copy operator. More...
 
Animaloperator= (Animal &&other) noexcept
 Move operator. More...
 

Additional Inherited Members

- Public Types inherited from example::Animal
enum  Type {
  NONE = 0, INSECT = 1, AMPHIBIAN = 2, BIRD = 3,
  FISH = 4, REPTILE = 5, MAMMAL = 6
}
 The 6 classes of animal kingdom. More...
 
typedef std::pair< Animal *, Animal * > Parents
 
- Static Public Member Functions inherited from example::Animal
static Animalfind_parent_by_name (Animal *child)
 
static Animalfind_child_by_name (Animal *parent)
 
- Protected Attributes inherited from example::Animal
Animalmother
 The pointer to the mother. More...
 
Animalfather
 The pointer to the father. More...
 
std::string name
 

Constructor & Destructor Documentation

◆ SpecialBird() [1/3]

example::SpecialBird::SpecialBird ( const std::string &  name,
SpecialBird mother = nullptr,
SpecialBird father = nullptr 
)

◆ SpecialBird() [2/3]

example::SpecialBird::SpecialBird ( const SpecialBird other)
delete

◆ SpecialBird() [3/3]

example::SpecialBird::SpecialBird ( SpecialBird &&  SpecialBird)
noexcept

◆ ~SpecialBird()

example::SpecialBird::~SpecialBird ( )
default

Member Function Documentation

◆ do_something_special()

void example::SpecialBird::do_something_special ( )

◆ operator=() [1/2]

SpecialBird& example::SpecialBird::operator= ( const SpecialBird other)
delete

◆ operator=() [2/2]

SpecialBird& example::SpecialBird::operator= ( SpecialBird &&  other)
noexcept

◆ swap()

void example::SpecialBird::swap ( SpecialBird other)
noexcept

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