associative_set.hh (13553:047def1fa787) associative_set.hh (13707:5aab50651a66)
1/**
2 * Copyright (c) 2018 Metempsy Technology Consulting
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 181 unchanged lines hidden (view full) ---

190
191 /**
192 * Indicate that an entry has just been inserted
193 * @param addr key of the container
194 * @param is_secure tag component of the container
195 * @param entry pointer to the container entry to be inserted
196 */
197 void insertEntry(Addr addr, bool is_secure, Entry* entry);
1/**
2 * Copyright (c) 2018 Metempsy Technology Consulting
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 181 unchanged lines hidden (view full) ---

190
191 /**
192 * Indicate that an entry has just been inserted
193 * @param addr key of the container
194 * @param is_secure tag component of the container
195 * @param entry pointer to the container entry to be inserted
196 */
197 void insertEntry(Addr addr, bool is_secure, Entry* entry);
198
199 /** Iterator types */
200 using const_iterator = typename std::vector<Entry>::const_iterator;
201 using iterator = typename std::vector<Entry>::iterator;
202
203 /**
204 * Returns an iterator to the first entry of the dictionary
205 * @result iterator to the first element
206 */
207 iterator begin()
208 {
209 return entries.begin();
210 }
211
212 /**
213 * Returns an iterator pointing to the end of the the dictionary
214 * (placeholder element, should not be accessed)
215 * @result iterator to the end element
216 */
217 iterator end()
218 {
219 return entries.end();
220 }
221
222 /**
223 * Returns an iterator to the first entry of the dictionary
224 * @result iterator to the first element
225 */
226 const_iterator begin() const
227 {
228 return entries.begin();
229 }
230
231 /**
232 * Returns an iterator pointing to the end of the the dictionary
233 * (placeholder element, should not be accessed)
234 * @result iterator to the end element
235 */
236 const_iterator end() const
237 {
238 return entries.end();
239 }
198};
199
200#endif//__CACHE_PREFETCH_ASSOCIATIVE_SET_HH__
240};
241
242#endif//__CACHE_PREFETCH_ASSOCIATIVE_SET_HH__