circular_queue.hh (13482:6af7a10675b4) circular_queue.hh (13487:ed055875261d)
1/*
2 * Copyright (c) 2017-2018 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

389 bool operator<=(const iterator& that) const
390 { return !(that < *this); }
391
392 /** OutputIterator has no extra requirements.*/
393 size_t idx() const { return _idx; }
394 };
395
396 public:
1/*
2 * Copyright (c) 2017-2018 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

389 bool operator<=(const iterator& that) const
390 { return !(that < *this); }
391
392 /** OutputIterator has no extra requirements.*/
393 size_t idx() const { return _idx; }
394 };
395
396 public:
397 using typename Base::operator[];
397 using Base::operator[];
398
399 explicit CircularQueue(uint32_t size = 0)
400 : _capacity(size), _head(1), _tail(0), _empty(true), _round(0)
401 {
402 Base::resize(size);
403 }
404
405 /**

--- 238 unchanged lines hidden ---
398
399 explicit CircularQueue(uint32_t size = 0)
400 : _capacity(size), _head(1), _tail(0), _empty(true), _round(0)
401 {
402 Base::resize(size);
403 }
404
405 /**

--- 238 unchanged lines hidden ---