/*
 * $Id: Queue_deallocation.cpp 81 2008-04-15 18:40:01Z 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 & 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              
