Snippets - Classes¶
::: doxy.<project>.class¶
This tag generates full class documentation.
| Parameter | Description | Required |
|---|---|---|
name |
The name of the class. | Yes |
::: doxy.animal.class
name: example::Bird
Class example::Bird¶
Inherits the following classes: example::Animal
Inherited by the following classes: example::SpecialBird
Public Types inherited from example::Animal¶
See example::Animal
| Type | Name |
|---|---|
| typedef std::pair< Animal *, Animal * > | Parents |
Public Functions¶
| Type | Name |
|---|---|
| Bird (const std::string & name, Bird * mother=nullptr, Bird * father=nullptr) |
|
| Bird (const Bird & other) = delete |
|
| Bird (Bird && Bird) noexcept |
|
| virtual void | make_sound () override |
| virtual void | move () override |
| Bird & | operator= (const Bird & other) = delete Deleted copy operator. |
| Bird & | operator= (Bird && other) noexcept Move operator. |
| void | swap (Bird & other) noexcept |
| ~Bird () = default |
Public Functions inherited from example::Animal¶
See example::Animal
| Type | Name |
|---|---|
| Animal (Type type, const std::string & name, Animal * mother=nullptr, Animal * father=nullptr) The main constructor. |
|
| Animal (const Animal & other) = delete |
|
| Animal (Animal && animal) noexcept |
|
| const std::string & | get_name () const Get the name of the animal. |
| virtual int | get_num_of_eyes () override const Returns the number of eyes. |
| virtual int | get_num_of_limbs () override const Returns the number of limbs. |
| Parents | get_parents () const |
| virtual bool | has_tail () override const Returns true if the animal has a tail. |
| virtual void | make_sound () = 0 |
| virtual void | move () |
| operator bool () const Returns true if this is an valid animal. |
|
| Animal & | operator= (const Animal & other) = delete Deleted copy operator. |
| Animal & | operator= (Animal && other) noexcept Move operator. |
| void | some_inline_member_function (Animal * animal) Lorem Ipsum. |
| void | swap (Animal & other) noexcept |
| virtual | ~Animal () = default |
Public Functions inherited from example::AnimalInterface¶
| Type | Name |
|---|---|
| virtual int | get_num_of_eyes () const = 0 Returns the number of eyes. |
| virtual int | get_num_of_limbs () const = 0 Returns the number of limbs. |
| virtual bool | has_tail () const = 0 Returns true if the animal has a tail. |
Public Static Functions inherited from example::Animal¶
See example::Animal
| Type | Name |
|---|---|
| Animal * | find_child_by_name (Animal * parent) |
| Animal * | find_parent_by_name (Animal * child) |
Protected Attributes inherited from example::Animal¶
See example::Animal
| Type | Name |
|---|---|
| Animal * | father The pointer to the father. |
| Animal * | mother The pointer to the mother. |
| std::string | name |
Public Functions Documentation¶
function Bird [1/3]¶
example::Bird::Bird (
const std::string & name,
Bird * mother=nullptr,
Bird * father=nullptr
)
function Bird [2/3]¶
example::Bird::Bird (
const Bird & other
) = delete
function Bird [3/3]¶
example::Bird::Bird (
Bird && Bird
) noexcept
function make_sound¶
virtual void example::Bird::make_sound () override
Implements example::Animal::make_sound
function move¶
virtual void example::Bird::move () override
Implements example::Animal::move
function operator=¶
Deleted copy operator.
Bird & example::Bird::operator= (
const Bird & other
) = delete
function operator=¶
Move operator.
Bird & example::Bird::operator= (
Bird && other
) noexcept
function swap¶
void example::Bird::swap (
Bird & other
) noexcept
function ~Bird¶
example::Bird::~Bird () = default
The documentation for this class was generated from the following file demo-projects/animal/bird.h
::: doxy.<project>.class.method¶
This tag generates documentation for a specific method of a class.
| Parameter | Description | Required |
|---|---|---|
name |
The name of the class. | Yes |
method |
The name of the method. | Yes |
::: doxy.animal.class.method
name: example::Bird
method: void make_sound()
function make_sound¶
virtual void example::Bird::make_sound () override
Implements example::Animal::make_sound
::: doxy.<project>.class.list¶
This tag generates a list of all classes in the project.
There are no parameters for this tag.
::: doxy.animal.class.list
Class List¶
Here are the classes, structs, unions and interfaces with brief descriptions:
- struct BirdOrRodent
- class CuteChinchilla
- namespace anonymous namespace{demo-projects/animal/config.h} An anonymous namespace.
- namespace example
- class Animal Base class for all animals from which Bird derives.
- interface AnimalInterface
- class Bird
- class CustomException
- class NumericException
- class SpecialBird
- namespace inner_namespace
- class Vector
- namespace std
::: doxy.<project>.class.hierarchy¶
This tag generates a class hierarchy diagram.
There are no parameters for this tag.
::: doxy.animal.class.hierarchy
Class Hierarchy¶
This inheritance list is sorted roughly, but not completely, alphabetically:
- interface example::AnimalInterface
- class example::Animal Base class for all animals from which Bird derives.
- class example::Bird
- class example::SpecialBird
- class example::Bird
- class example::Animal Base class for all animals from which Bird derives.
- class example::inner_namespace::Vector
- struct BirdOrRodent
- struct example::Animal::Result Some random inner class of Animal .
- class QObject
- class CuteChinchilla
- class std::exception
- class example::CustomException
- class example::NumericException