Changeset 85 for trunk/IPs/systemC/Environment/Queue
- Timestamp:
- May 14, 2008, 3:09:48 PM (16 years ago)
- Location:
- trunk/IPs/systemC/Environment/Queue/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/Environment/Queue/include/Queue.h
r81 r85 61 61 // *****[ pop ]***** 62 62 // read the queue, and update the pointer 63 public : virtual T pop () = 0; 64 65 // *****[ pop ]***** 66 // read the queue, and update the pointer 67 public : virtual T pop (uint32_t num) = 0; 63 public : virtual T pop (uint32_t num=0) = 0; 68 64 69 65 // *****[ push ]***** 70 66 // Push a new value (they must have a slot free) 71 public : virtual bool push (T val) = 0;67 public : virtual bool push (T val) = 0; 72 68 73 69 }; // Queue -
trunk/IPs/systemC/Environment/Queue/include/Sort_Queue.h
r81 r85 59 59 // return the n-eme slot. 60 60 // (first = 0) 61 public : slot_t<T> read (uint32_t num )61 public : slot_t<T> read (uint32_t num=0) 62 62 { 63 63 if (num >= Queue <T>::_nb_slot) … … 72 72 // *****[ pop ]***** 73 73 // read the queue, and update the pointer 74 public : T pop () 75 { 76 return pop (0); 77 } 78 79 // *****[ pop ]***** 80 // read the queue, and update the pointer 81 public : T pop (uint32_t num) 74 public : T pop (uint32_t num=0) 82 75 { 83 76 if (num >= Queue <T>::_nb_slot) -
trunk/IPs/systemC/Environment/Queue/include/Sort_Queue_Dynamic.h
r81 r85 107 107 // return the n-eme slot. 108 108 // (first = 0) 109 public : slot_t<T> read (uint32_t num )109 public : slot_t<T> read (uint32_t num=0) 110 110 { 111 111 if (num >= Queue <T>::_nb_slot) … … 120 120 // *****[ pop ]***** 121 121 // read the queue, and update the pointer 122 public : T pop () 123 { 124 return pop (0); 125 } 126 127 // *****[ pop ]***** 128 // read the queue, and update the pointer 129 public : T pop (uint32_t num) 122 public : T pop (uint32_t num=0) 130 123 { 131 124 if (num >= Queue <T>::_nb_slot)
Note: See TracChangeset
for help on using the changeset viewer.