|
CPP05 1.0
|
Represents a bureaucrat with a name and a grade. [詳解]
#include <Bureaucrat.hpp>

クラス | |
| class | GradeTooHighException |
| class | GradeTooLowException |
公開メンバ関数 | |
| Bureaucrat (const std::string &name, int grade) | |
| Construct a new Bureaucrat:: Bureaucrat object | |
| Bureaucrat (const Bureaucrat &other) | |
| Copy constructor for Bureaucrat. | |
| Bureaucrat & | operator= (const Bureaucrat &other) |
| Assignment operator for Bureaucrat. | |
| ~Bureaucrat () | |
| Destroy the Bureaucrat:: Bureaucrat object | |
| const std::string & | getName () const |
| Gets the name of the Bureaucrat. | |
| int | getGrade () const |
| Gets the grade of the Bureaucrat. | |
| void | incrementGrade () |
| Increments the bureaucrat's grade (e.g., from 3 to 2). | |
| void | decrementGrade () |
| Decrements the bureaucrat's grade (e.g., from 2 to 3). | |
| Bureaucrat (const std::string &name, int grade) | |
| Bureaucrat (const Bureaucrat &other) | |
| Bureaucrat & | operator= (const Bureaucrat &other) |
| ~Bureaucrat () | |
| const std::string & | getName () const |
| int | getGrade () const |
| void | incrementGrade () |
| void | decrementGrade () |
| void | signForm (Form &form) |
| Attempts to sign a form. Calls the form's beSigned method and prints the result. | |
| Bureaucrat (const std::string &name, int grade) | |
| Bureaucrat (const Bureaucrat &other) | |
| Bureaucrat & | operator= (const Bureaucrat &other) |
| ~Bureaucrat () | |
| const std::string & | getName () const |
| int | getGrade () const |
| void | incrementGrade () |
| void | decrementGrade () |
| void | signForm (AForm &form) |
| void | executeForm (AForm const &form) |
| Attempts to execute a form. Calls the form's execute method and prints the result. | |
| Bureaucrat (const std::string &name, int grade) | |
| Bureaucrat (const Bureaucrat &other) | |
| Bureaucrat & | operator= (const Bureaucrat &other) |
| ~Bureaucrat () | |
| const std::string & | getName () const |
| int | getGrade () const |
| void | incrementGrade () |
| void | decrementGrade () |
| void | signForm (AForm &form) |
| void | executeForm (AForm const &form) |
Represents a bureaucrat with a name and a grade.
Represents a bureaucrat who can sign and execute forms.
Represents a bureaucrat who can sign forms.
The grade ranges from 1 (highest) to 150 (lowest).
Bureaucrat.hpp の 30 行目に定義があります。
| Bureaucrat::Bureaucrat | ( | const std::string & | name, |
| int | grade | ||
| ) |
Construct a new Bureaucrat:: Bureaucrat object
| name | The name of the bureaucrat. |
| grade | The grade of the bureaucrat (1-150). |
| Bureaucrat::GradeTooHighException | if grade is less than 1. |
| Bureaucrat::GradeTooLowException | if grade is greater than 150. |
Bureaucrat.cpp の 29 行目に定義があります。
| Bureaucrat::Bureaucrat | ( | const Bureaucrat & | other | ) |
| Bureaucrat::~Bureaucrat | ( | ) |
Destroy the Bureaucrat:: Bureaucrat object
Bureaucrat.cpp の 65 行目に定義があります。
| Bureaucrat::Bureaucrat | ( | const std::string & | name, |
| int | grade | ||
| ) |
| Bureaucrat::Bureaucrat | ( | const Bureaucrat & | other | ) |
| Bureaucrat::~Bureaucrat | ( | ) |
| Bureaucrat::Bureaucrat | ( | const std::string & | name, |
| int | grade | ||
| ) |
| Bureaucrat::Bureaucrat | ( | const Bureaucrat & | other | ) |
| Bureaucrat::~Bureaucrat | ( | ) |
| Bureaucrat::Bureaucrat | ( | const std::string & | name, |
| int | grade | ||
| ) |
| Bureaucrat::Bureaucrat | ( | const Bureaucrat & | other | ) |
| Bureaucrat::~Bureaucrat | ( | ) |
| void Bureaucrat::decrementGrade | ( | ) |
Decrements the bureaucrat's grade (e.g., from 2 to 3).
| Bureaucrat::GradeTooLowException | if grade is already 150. |
Bureaucrat.cpp の 99 行目に定義があります。
| void Bureaucrat::decrementGrade | ( | ) |
| void Bureaucrat::decrementGrade | ( | ) |
| void Bureaucrat::decrementGrade | ( | ) |
| void Bureaucrat::executeForm | ( | AForm const & | form | ) |
Attempts to execute a form. Calls the form's execute method and prints the result.
| form | The form to be executed. |
Bureaucrat.cpp の 70 行目に定義があります。
| void Bureaucrat::executeForm | ( | AForm const & | form | ) |
| int Bureaucrat::getGrade | ( | ) | const |
| int Bureaucrat::getGrade | ( | ) | const |
| int Bureaucrat::getGrade | ( | ) | const |
| int Bureaucrat::getGrade | ( | ) | const |
| const std::string & Bureaucrat::getName | ( | ) | const |
Gets the name of the Bureaucrat.
Bureaucrat.cpp の 73 行目に定義があります。
| const std::string & Bureaucrat::getName | ( | ) | const |
| const std::string & Bureaucrat::getName | ( | ) | const |
| const std::string & Bureaucrat::getName | ( | ) | const |
| void Bureaucrat::incrementGrade | ( | ) |
Increments the bureaucrat's grade (e.g., from 3 to 2).
| Bureaucrat::GradeTooHighException | if grade is already 1. |
Bureaucrat.cpp の 87 行目に定義があります。
| void Bureaucrat::incrementGrade | ( | ) |
| void Bureaucrat::incrementGrade | ( | ) |
| void Bureaucrat::incrementGrade | ( | ) |
| Bureaucrat & Bureaucrat::operator= | ( | const Bureaucrat & | other | ) |
Assignment operator for Bureaucrat.
| other | The Bureaucrat to assign from. |
Bureaucrat.cpp の 54 行目に定義があります。
| Bureaucrat & Bureaucrat::operator= | ( | const Bureaucrat & | other | ) |
| Bureaucrat & Bureaucrat::operator= | ( | const Bureaucrat & | other | ) |
| Bureaucrat & Bureaucrat::operator= | ( | const Bureaucrat & | other | ) |
| void Bureaucrat::signForm | ( | AForm & | form | ) |
Bureaucrat.cpp の 56 行目に定義があります。
| void Bureaucrat::signForm | ( | AForm & | form | ) |
| void Bureaucrat::signForm | ( | Form & | form | ) |
Attempts to sign a form. Calls the form's beSigned method and prints the result.
| form | The form to be signed. |
Bureaucrat.cpp の 68 行目に定義があります。