Ordered collection of bounded size. More...
#include <FixedSizeRing.h>
Classes | |
class | Iterator |
Public Types | |
typedef T | value_type |
typedef T * | pointer |
typedef T & | reference |
typedef const T & | const_reference |
typedef Iterator< T, true > | iterator |
typedef Iterator< const T, true > | const_iterator |
typedef Iterator< T, false > | reverse_iterator |
typedef Iterator< const T, false > | const_reverse_iterator |
Public Member Functions | |
FixedSizeRing () | |
~FixedSizeRing () | |
unsigned | size () const |
bool | empty () const |
bool | full () const |
reference | getAt (unsigned x) |
const_reference | getAt (unsigned x) const |
void | clear () |
template<typename U > | |
pointer | push_front (U &&val) |
template<typename... Args> | |
pointer | emplace_front (Args &&...args) |
template<typename U > | |
pointer | push_back (U &&val) |
template<typename... Args> | |
pointer | emplace_back (Args &&...args) |
reference | front () |
const_reference | front () const |
Galois::optional< value_type > | extract_front () |
void | pop_front () |
reference | back () |
const_reference | back () const |
Galois::optional< value_type > | extract_back () |
void | pop_back () |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
reverse_iterator | rbegin () |
reverse_iterator | rend () |
const_iterator | rbegin () const |
const_iterator | rend () const |
Private Member Functions | |
T * | at (unsigned i) |
const T * | at (unsigned i) const |
bool | precondition () const |
Private Attributes | |
LazyArray< T, chunksize > | datac |
unsigned | start |
unsigned | count |
Ordered collection of bounded size.
typedef Iterator<const T, true> Galois::FixedSizeRing< T, chunksize >::const_iterator |
typedef const T& Galois::FixedSizeRing< T, chunksize >::const_reference |
typedef Iterator<const T, false> Galois::FixedSizeRing< T, chunksize >::const_reverse_iterator |
typedef Iterator<T, true> Galois::FixedSizeRing< T, chunksize >::iterator |
typedef T* Galois::FixedSizeRing< T, chunksize >::pointer |
typedef T& Galois::FixedSizeRing< T, chunksize >::reference |
typedef Iterator<T, false> Galois::FixedSizeRing< T, chunksize >::reverse_iterator |
typedef T Galois::FixedSizeRing< T, chunksize >::value_type |
Galois::FixedSizeRing< T, chunksize >::FixedSizeRing | ( | ) | [inline] |
Galois::FixedSizeRing< T, chunksize >::~FixedSizeRing | ( | ) | [inline] |
const T* Galois::FixedSizeRing< T, chunksize >::at | ( | unsigned | i | ) | const [inline, private] |
T* Galois::FixedSizeRing< T, chunksize >::at | ( | unsigned | i | ) | [inline, private] |
const_reference Galois::FixedSizeRing< T, chunksize >::back | ( | ) | const [inline] |
reference Galois::FixedSizeRing< T, chunksize >::back | ( | ) | [inline] |
const_iterator Galois::FixedSizeRing< T, chunksize >::begin | ( | ) | const [inline] |
iterator Galois::FixedSizeRing< T, chunksize >::begin | ( | ) | [inline] |
void Galois::FixedSizeRing< T, chunksize >::clear | ( | ) | [inline] |
pointer Galois::FixedSizeRing< T, chunksize >::emplace_back | ( | Args &&... | args | ) | [inline] |
pointer Galois::FixedSizeRing< T, chunksize >::emplace_front | ( | Args &&... | args | ) | [inline] |
bool Galois::FixedSizeRing< T, chunksize >::empty | ( | ) | const [inline] |
const_iterator Galois::FixedSizeRing< T, chunksize >::end | ( | ) | const [inline] |
iterator Galois::FixedSizeRing< T, chunksize >::end | ( | ) | [inline] |
Galois::optional<value_type> Galois::FixedSizeRing< T, chunksize >::extract_back | ( | ) | [inline] |
Galois::optional<value_type> Galois::FixedSizeRing< T, chunksize >::extract_front | ( | ) | [inline] |
const_reference Galois::FixedSizeRing< T, chunksize >::front | ( | ) | const [inline] |
reference Galois::FixedSizeRing< T, chunksize >::front | ( | ) | [inline] |
bool Galois::FixedSizeRing< T, chunksize >::full | ( | ) | const [inline] |
const_reference Galois::FixedSizeRing< T, chunksize >::getAt | ( | unsigned | x | ) | const [inline] |
reference Galois::FixedSizeRing< T, chunksize >::getAt | ( | unsigned | x | ) | [inline] |
void Galois::FixedSizeRing< T, chunksize >::pop_back | ( | ) | [inline] |
void Galois::FixedSizeRing< T, chunksize >::pop_front | ( | ) | [inline] |
bool Galois::FixedSizeRing< T, chunksize >::precondition | ( | ) | const [inline, private] |
pointer Galois::FixedSizeRing< T, chunksize >::push_back | ( | U && | val | ) | [inline] |
pointer Galois::FixedSizeRing< T, chunksize >::push_front | ( | U && | val | ) | [inline] |
const_iterator Galois::FixedSizeRing< T, chunksize >::rbegin | ( | ) | const [inline] |
reverse_iterator Galois::FixedSizeRing< T, chunksize >::rbegin | ( | ) | [inline] |
const_iterator Galois::FixedSizeRing< T, chunksize >::rend | ( | ) | const [inline] |
reverse_iterator Galois::FixedSizeRing< T, chunksize >::rend | ( | ) | [inline] |
unsigned Galois::FixedSizeRing< T, chunksize >::size | ( | ) | const [inline] |
unsigned Galois::FixedSizeRing< T, chunksize >::count [private] |
LazyArray<T, chunksize> Galois::FixedSizeRing< T, chunksize >::datac [private] |
unsigned Galois::FixedSizeRing< T, chunksize >::start [private] |