CPP00 1.0
|
Defines the Contact class. [詳解]
#include <Contact.hpp>
公開メンバ関数 | |
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 | ( | ) |
Default constractor for the Contact class.
Initializes all member variables to empty strings.
Contact.cpp の 28 行目に定義があります。
std::string Contact::getDarkestSecret | ( | ) | const |
std::string Contact::getFirstName | ( | ) | const |
std::string Contact::getLastName | ( | ) | const |
std::string Contact::getNickName | ( | ) | const |
std::string Contact::getPhoneNumber | ( | ) | const |
bool Contact::isEmpty | ( | ) | const |
Check if an object (contact) has empty member variable.
Contact.cpp の 105 行目に定義があります。
void Contact::setDarkestSecret | ( | const std::string & | darkestSecret | ) |
Sets the darkest secret of contact.
darkestSecret | the darkest secret. |
Contact.cpp の 63 行目に定義があります。
void Contact::setFirstName | ( | const std::string & | firstName | ) |
void Contact::setLastName | ( | const std::string & | lastName | ) |
void Contact::setNickName | ( | const std::string & | nickName | ) |
void Contact::setPhoneNumber | ( | const std::string & | phoneNumber | ) |