Doxybook Example
special_bird.h
Go to the documentation of this file.
1 #ifndef EXAMPLE_SPECIAL_BIRD_H
2 #define EXAMPLE_SPECIAL_BIRD_H
3 
4 #include "bird.h"
5 
6 namespace example {
10  class SpecialBird: public Bird {
11  public:
12  SpecialBird(const std::string& name, SpecialBird* mother = nullptr, SpecialBird* father = nullptr);
13  SpecialBird(const SpecialBird& other) = delete;
15  ~SpecialBird() = default;
16 
17  void swap(SpecialBird& other) noexcept;
18  void do_something_special();
19 
20  SpecialBird& operator = (const SpecialBird& other) = delete;
21  SpecialBird& operator = (SpecialBird&& other) noexcept;
22  };
23 }
24 
25 #endif
Definition: bird.h:10
Definition: special_bird.h:10
Definition: animal.h:31
void swap(SpecialBird &other) noexcept
SpecialBird & operator=(const SpecialBird &other)=delete
Animal * father
The pointer to the father.
Definition: animal.h:195
Animal * mother
The pointer to the mother.
Definition: animal.h:190
SpecialBird(const std::string &name, SpecialBird *mother=nullptr, SpecialBird *father=nullptr)
std::string name
Definition: animal.h:196