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

Represents a Harl character who can complain at different levels. [詳解]

#include <Harl.hpp>

Harl 連携図
Collaboration graph

公開メンバ関数

 Harl ()
 Default constructor for the Harl class.
 
 Harl (const Harl &other)
 Copy constructor for the Harl class.
 
Harloperator= (const Harl &other)
 Copy assignment operator for the Harl class.
 
 ~Harl ()
 Destructor for the Harl class.
 
void complain (std::string level)
 Makes Harl complain based on the specified level.
 

詳解

Represents a Harl character who can complain at different levels.

Harl.hpp28 行目に定義があります。

構築子と解体子

◆ Harl() [1/2]

Harl::Harl ( )

Default constructor for the Harl class.

Harl.cpp27 行目に定義があります。

◆ Harl() [2/2]

Harl::Harl ( const Harl other)

Copy constructor for the Harl class.

引数
otherThe Harl object to copy.

Harl.cpp34 行目に定義があります。

◆ ~Harl()

Harl::~Harl ( )

Destructor for the Harl class.

Harl.cpp54 行目に定義があります。

関数詳解

◆ complain()

void Harl::complain ( std::string  level)

Makes Harl complain based on the specified level.

Uses an array of function pointers to call the appropriate private complaint function without using a forest of if/else statements.

引数
levelThe level of complaint ("DEBUG", "INFO", "WARNING", "ERROR").

Harl.cpp101 行目に定義があります。

◆ operator=()

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

Copy assignment operator for the Harl class.

引数
otherThe Harl object to assign from.
戻り値
A reference to the current Harl object.

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


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