Last change
on this file since 106 was
88,
checked in by rosiere, 16 years ago
|
Almost complete design
with Test and test platform
|
-
Property svn:keywords set to
Id
|
File size:
932 bytes
|
Rev | Line | |
---|
[78] | 1 | /* |
---|
| 2 | * $Id: Sort_deallocation.cpp 88 2008-12-10 18:31:39Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Generic/Sort/include/Sort.h" |
---|
| 9 | |
---|
| 10 | namespace morpheo { |
---|
| 11 | namespace behavioural { |
---|
| 12 | namespace generic { |
---|
| 13 | namespace sort { |
---|
| 14 | |
---|
| 15 | |
---|
| 16 | #undef FUNCTION |
---|
| 17 | #define FUNCTION "Sort::deallocation" |
---|
| 18 | void Sort::deallocation (void) |
---|
| 19 | { |
---|
| 20 | log_printf(FUNC,Sort,FUNCTION,"Begin"); |
---|
| 21 | |
---|
[88] | 22 | if (usage_is_set(_usage,USE_SYSTEMC)) |
---|
[78] | 23 | { |
---|
| 24 | delete in_CLOCK ; |
---|
| 25 | delete in_NRESET; |
---|
| 26 | |
---|
| 27 | delete [] in_INPUT_VAL ; |
---|
| 28 | delete [] in_INPUT_DATA ; |
---|
| 29 | delete [] out_OUTPUT_VAL ; |
---|
| 30 | if (_param->_have_port_index_out) |
---|
| 31 | delete [] out_OUTPUT_INDEX; |
---|
| 32 | if (_param->_have_port_data_out) |
---|
| 33 | delete [] out_OUTPUT_DATA ; |
---|
| 34 | } |
---|
| 35 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 36 | |
---|
| 37 | delete _component; |
---|
| 38 | |
---|
| 39 | log_printf(FUNC,Sort,FUNCTION,"End"); |
---|
| 40 | }; |
---|
| 41 | |
---|
| 42 | }; // end namespace sort |
---|
| 43 | }; // end namespace generic |
---|
| 44 | |
---|
| 45 | }; // end namespace behavioural |
---|
| 46 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.