/*************************************************************************/ /* File: ins_course_list.h Author: B. De Hamer */ /* */ /* InsCourseList class is a list of InsCoursePref objects. This is */ /* where all of an instructors course preferences and their associated */ /* weights will be stored. */ /*************************************************************************/ #ifndef INS_COURSE_LIST #define INS_COURSE_LIST #include "list.h" #include "ins_course_pref.h" #include "std-macros.h" class InsCourseList : public List { public: InsCourseList () ; // Construct a new InsCourseList InsCourseList (const InsCourseList&) ; // Construct a new InsCourseList from an existing one ~InsCourseList () ; // Destruct an InsCourseList InsCoursePref* ListIter () ; // Get the next InsCoursePref in the list void Add (const InsCoursePref&) ; // Add the given preference to the list. If the course already // exists, it's weight is replaced with the weight of the argument // preference Boolean Delete (const InsCoursePref&) ; // Delete the given preference from the list. // Returns true if the deletion was successful // Returns false if the deletion was not successful void SortByWeight () ; // Sorts the InsCourseList in order of decreasing weights void operator= (const InsCourseList&) ; // Assign the argument to this course list } ; #endif