#include <contactlist.h>
Public Member Functions | |
| ContactList () | |
| Constructor. | |
| ~ContactList () | |
| Destructor. | |
| const Contact * | addContact (const Contact &contact) |
| Add a new contact to the list. | |
| bool | isContactInList (const Contact &contact) |
| Tells if a contact is in the list or note. | |
| bool | removeContact (const int ID) |
| Tells if a contact is in the list or note. | |
| bool | removeContact (const Contact &contact) |
| Remove a contact of the list. | |
| std::string | toString () const |
| Returns a string representation of the contact list. | |
| ContactListConstIterator | begin () const |
| Returns a const iterator at the beginning of the list. | |
| ContactListConstIterator | end () const |
| Returns a const iterator at the end of the list. | |
| void | clear () |
| Clear the list. | |
| const Contact *const | getContact (const int contactID) const |
| Returns a contact which ID is contactID. | |
| Contact * | getContact (const int contactID) |
| Returns a contact which ID is contactID. | |
Yves Houpert <yves.houpert@insa-rouen.fr>
|
|
Add a new contact to the list. It's a copy of contact which is stored in the list.
|
|
|
Returns a const iterator at the beginning of the list.
|
|
|
Returns a const iterator at the end of the list.
|
|
|
Returns a contact which ID is contactID.
|
|
|
Returns a contact which ID is contactID.
|
|
|
Tells if a contact is in the list or note.
|
|
|
Remove a contact of the list.
|
|
|
Tells if a contact is in the list or note.
|
|
|
Returns a string representation of the contact list.
|
1.4.6