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