Logo Search packages:      
Sourcecode: fet version File versions

void Rules::kill (  ) 

Terminator - basically clears the memory for the constraints.

Definition at line 360 of file rules.cpp.

References activitiesList, equipmentsList, initialized, internalStructureComputed, roomsList, spaceConstraintsList, subjectsList, subjectTagsList, teachersList, timeConstraintsList, and yearsList.

Referenced by read().

{
      //Teachers
      assert(this->teachersList.autoDelete()==true);
      this->teachersList.clear();

      //Subjects
      assert(this->subjectsList.autoDelete()==true);
      this->subjectsList.clear();

      //Subject tags
      assert(this->subjectTagsList.autoDelete()==true);
      this->subjectTagsList.clear();

      //Years
      assert(this->yearsList.autoDelete()==true);
      this->yearsList.clear();

      //Activities
      assert(this->activitiesList.autoDelete()==true);
      this->activitiesList.clear();

      //Time constraints
      assert(this->timeConstraintsList.autoDelete()==true);
      this->timeConstraintsList.clear();

      //Space constraints
      assert(this->spaceConstraintsList.autoDelete()==true);
      this->spaceConstraintsList.clear();

      //Equipments
      assert(this->equipmentsList.autoDelete()==true);
      this->equipmentsList.clear();

      //Rooms
      assert(this->roomsList.autoDelete()==true);
      this->roomsList.clear();

      //done
      this->internalStructureComputed=false;
      this->initialized=false;
}


Generated by  Doxygen 1.6.0   Back to index