CPP05 1.0
読み取り中…
検索中…
一致する文字列を見つけられません
AForm クラスabstract

An abstract base class for forms. [詳解]

#include <AForm.hpp>

AForm の継承関係図
Inheritance graph
AForm 連携図
Collaboration graph

クラス

class  FormNotSignedException
 
class  GradeTooHighException
 
class  GradeTooLowException
 

公開メンバ関数

 AForm (const std::string &name, int gradeToSign, int gradeToExecute, const std::string &target)
 
 AForm (const AForm &other)
 
AFormoperator= (const AForm &other)
 
virtual ~AForm ()
 
const std::stringgetName () const
 
bool getIsSigned () const
 
int getGradeToSign () const
 
int getGradeToExecute () const
 
const std::stringgetTarget () const
 
void beSigned (const Bureaucrat &bureaucrat)
 
void execute (Bureaucrat const &executor) const
 Central execution logic. Checks requirements before calling specific action.
 
virtual void performAction () const =0
 
 AForm (const std::string &name, int gradeToSign, int gradeToExecute, const std::string &target)
 
 AForm (const AForm &other)
 
AFormoperator= (const AForm &other)
 
virtual ~AForm ()
 
const std::stringgetName () const
 
bool getIsSigned () const
 
int getGradeToSign () const
 
int getGradeToExecute () const
 
const std::stringgetTarget () const
 
void beSigned (const Bureaucrat &bureaucrat)
 
void execute (Bureaucrat const &executor) const
 
virtual void performAction () const =0
 

詳解

An abstract base class for forms.

Contains the core logic for signing and executing forms, and defines the interface for specific form actions.

AForm.hpp34 行目に定義があります。

構築子と解体子

◆ AForm() [1/4]

AForm::AForm ( const std::string name,
int  gradeToSign,
int  gradeToExecute,
const std::string target 
)

AForm.cpp20 行目に定義があります。

◆ AForm() [2/4]

AForm::AForm ( const AForm other)

AForm.cpp28 行目に定義があります。

◆ ~AForm() [1/2]

AForm::~AForm ( )
virtual

AForm.cpp39 行目に定義があります。

◆ AForm() [3/4]

AForm::AForm ( const std::string name,
int  gradeToSign,
int  gradeToExecute,
const std::string target 
)

◆ AForm() [4/4]

AForm::AForm ( const AForm other)

◆ ~AForm() [2/2]

virtual AForm::~AForm ( )
virtual

関数詳解

◆ beSigned() [1/2]

void AForm::beSigned ( const Bureaucrat bureaucrat)

AForm.cpp48 行目に定義があります。

◆ beSigned() [2/2]

void AForm::beSigned ( const Bureaucrat bureaucrat)

◆ execute() [1/2]

void AForm::execute ( Bureaucrat const &  executor) const

Central execution logic. Checks requirements before calling specific action.

引数
executorThe bureaucrat attempting to execute the form.
例外
AForm::FormNotSignedExceptionif the form isn't signed.
AForm::GradeTooLowExceptionif the executor's grade is too low.

AForm.cpp61 行目に定義があります。

◆ execute() [2/2]

void AForm::execute ( Bureaucrat const &  executor) const

◆ getGradeToExecute() [1/2]

int AForm::getGradeToExecute ( ) const

AForm.cpp45 行目に定義があります。

◆ getGradeToExecute() [2/2]

int AForm::getGradeToExecute ( ) const

◆ getGradeToSign() [1/2]

int AForm::getGradeToSign ( ) const

AForm.cpp44 行目に定義があります。

◆ getGradeToSign() [2/2]

int AForm::getGradeToSign ( ) const

◆ getIsSigned() [1/2]

bool AForm::getIsSigned ( ) const

AForm.cpp43 行目に定義があります。

◆ getIsSigned() [2/2]

bool AForm::getIsSigned ( ) const

◆ getName() [1/2]

const std::string & AForm::getName ( ) const

AForm.cpp42 行目に定義があります。

◆ getName() [2/2]

const std::string & AForm::getName ( ) const

◆ getTarget() [1/2]

const std::string & AForm::getTarget ( ) const

AForm.cpp46 行目に定義があります。

◆ getTarget() [2/2]

const std::string & AForm::getTarget ( ) const

◆ operator=() [1/2]

AForm & AForm::operator= ( const AForm other)

AForm.cpp32 行目に定義があります。

◆ operator=() [2/2]

AForm & AForm::operator= ( const AForm other)

◆ performAction() [1/2]

virtual void AForm::performAction ( ) const
pure virtual

◆ performAction() [2/2]

virtual void AForm::performAction ( ) const
pure virtual

このクラス詳解は次のファイルから抽出されました: