Changeset 57 for trunk/modules/vci_mem_cache_v4/caba/source/include
- Timestamp:
- Jun 18, 2010, 4:07:34 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/vci_mem_cache_v4/caba/source/include/mem_cache_directory_v4.h
r31 r57 440 440 441 441 ///////////////////////////////////////////////////////////////////// 442 // The print_list() function prints a list from selected directory entry 443 // Arguments : 444 // - ptr : the pointer to the first entry to print 445 ///////////////////////////////////////////////////////////////////// 446 void print_list(const size_t &ptr){ 447 bool end = false; 448 size_t ptr_temp = ptr; 449 std::cout << "Heap, printing the list from : " << std::dec << ptr << std::endl; 450 while(!end){ 451 m_heap_tab[ptr_temp].print(); 452 if(ptr_temp == m_heap_tab[ptr_temp].next) end = true; 453 ptr_temp = m_heap_tab[ptr_temp].next; 454 } 455 } // end print_list() 456 457 ///////////////////////////////////////////////////////////////////// 442 458 // The is_full() function return true if the heap is full. 443 459 /////////////////////////////////////////////////////////////////////
Note: See TracChangeset
for help on using the changeset viewer.