/*
 * $Id: Queue_deallocation.cpp 88 2008-12-10 18:31:39Z rosiere $
 *
 * [ Description ]
 * 
 */

#include "Behavioural/Generic/Queue/include/Queue.h"

namespace morpheo                    {
namespace behavioural {
namespace generic {
namespace queue {


#undef  FUNCTION
#define FUNCTION "Queue::deallocation"
  void Queue::deallocation (void)
  {
    log_printf(FUNC,Queue,FUNCTION,"Begin");

    if (usage_is_set(_usage,USE_SYSTEMC))
      { 
	delete    in_CLOCK ;
	delete    in_NRESET;
	
	delete    in_INSERT_VAL ;
	delete   out_INSERT_ACK ;
	delete    in_INSERT_DATA;
	
	delete   out_RETIRE_VAL ;
	delete    in_RETIRE_ACK ;
	delete   out_RETIRE_DATA;
	
        // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    
        delete _queue_control;
        delete _queue_data;
      }

    delete _component;

    log_printf(FUNC,Queue,FUNCTION,"End");
  };

}; // end namespace queue
}; // end namespace generic

}; // end namespace behavioural
}; // end namespace morpheo              
