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

Defines the Contact class. [詳解]

#include <Contact.hpp>

Contact 連携図
Collaboration graph

公開メンバ関数

 Contact ()
 Default constractor for the Contact class.
 
void setFirstName (const std::string &firstName)
 Sets first name of contact.
 
void setLastName (const std::string &lastName)
 Sets last name of contact.
 
void setNickName (const std::string &nickName)
 Sets the nick name of contact.
 
void setPhoneNumber (const std::string &phoneNumber)
 Sets the phone number of contact.
 
void setDarkestSecret (const std::string &darkestSecret)
 Sets the darkest secret of contact.
 
std::string getFirstName () const
 Gets the first name of contact.
 
std::string getLastName () const
 Gets the last name
 
std::string getNickName () const
 Gets the nick name of contact.
 
std::string getPhoneNumber () const
 Gets the phone number of contact.
 
std::string getDarkestSecret () const
 Gets the darkest secret of contact.
 
bool isEmpty () const
 Check if an object (contact) has empty member variable.
 

詳解

Defines the Contact class.

The Contact class represents a single entry in the phone book, storing information such as first name, last name, nickname, phone number, and a darkest secret.

Contact.hpp の 37 行目に定義があります。

構築子と解体子

◆ Contact()

Contact::Contact ( )

Default constractor for the Contact class.

Initializes all member variables to empty strings.

Contact.cpp の 28 行目に定義があります。

関数詳解

◆ getDarkestSecret()

std::string Contact::getDarkestSecret ( ) const

Gets the darkest secret of contact.

戻り値
darkest secret.

Contact.cpp の 98 行目に定義があります。

◆ getFirstName()

std::string Contact::getFirstName ( ) const

Gets the first name of contact.

戻り値
first name

Contact.cpp の 70 行目に定義があります。

◆ getLastName()

std::string Contact::getLastName ( ) const

Gets the last name

戻り値
last name

Contact.cpp の 77 行目に定義があります。

◆ getNickName()

std::string Contact::getNickName ( ) const

Gets the nick name of contact.

戻り値
nick name

Contact.cpp の 84 行目に定義があります。

◆ getPhoneNumber()

std::string Contact::getPhoneNumber ( ) const

Gets the phone number of contact.

戻り値
phone number

Contact.cpp の 91 行目に定義があります。

◆ isEmpty()

bool Contact::isEmpty ( ) const

Check if an object (contact) has empty member variable.

戻り値
true or false

Contact.cpp の 105 行目に定義があります。

◆ setDarkestSecret()

void Contact::setDarkestSecret ( const std::string &  darkestSecret)

Sets the darkest secret of contact.

引数
darkestSecretthe darkest secret.

Contact.cpp の 63 行目に定義があります。

◆ setFirstName()

void Contact::setFirstName ( const std::string &  firstName)

Sets first name of contact.

引数
firstNamethe first name.

Contact.cpp の 35 行目に定義があります。

◆ setLastName()

void Contact::setLastName ( const std::string &  lastName)

Sets last name of contact.

引数
lastNamethe last name.

Contact.cpp の 42 行目に定義があります。

◆ setNickName()

void Contact::setNickName ( const std::string &  nickName)

Sets the nick name of contact.

引数
nickNamethe nick name

Contact.cpp の 49 行目に定義があります。

◆ setPhoneNumber()

void Contact::setPhoneNumber ( const std::string &  phoneNumber)

Sets the phone number of contact.

引数
phoneNumberthe phone number.

Contact.cpp の 56 行目に定義があります。


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