- Author
- Henry M. Walker *
- Date
- January 11, 2023 *
◆ SchoolDirectory()
SchoolDirectory::SchoolDirectory |
( |
| ) |
|
|
inline |
◆ add()
void SchoolDirectory::add |
( |
Entry |
person | ) |
|
|
inline |
- Parameters
-
person | the entry to be inserted into the underlying directory *
|
- Precondition
- entries in the underlying directory are ordered by name *
- Postcondition
- the underlying directory continues to be ordered by name *
◆ lookup()
Entry * SchoolDirectory::lookup |
( |
std::string |
first, |
|
|
std::string |
second |
|
) |
| |
|
inline |
- Parameters
-
first | the first name of a person * |
last | the last name of a person *
|
- Precondition
- the underlying directory is ordered by last/first name *
- Returns
- if the name is found, a pointer to the entry is returned * if the name is not found, NULL is returned *
◆ print()
void SchoolDirectory::print |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: