|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
73 friend std::ostream &operator<< <> (std::ostream &out,
const AbaRing<Type> &ring);
std::ostream & operator<<(std::ostream &out, const Active< BaseType, CoType > &rhs)
int newestIndex() const
Returns the index of the newest element in the ring.
virtual ~AbaRing()
The destructor.
void insert(Type elem)
Inserts a new element into the ring.
bool filled_
This member becomes true if ring is completely filled up.
Type newest() const
Returns the newest element in the ring.
Type oldest() const
Returns the oldest element in the ring.
Base class of all other classes of ABACUS.
void clear()
Empties the ring.
The parameterized class Array implements dynamic arrays of type E.
Array< Type > ring_
An array storing the elements of the ring.
int previous(int i, Type &p) const
Can be used to access any element between the oldest and newest inserted element.
AbaRing(int size)
The constructor.
bool empty() const
Returns true if no element is contained in the ring, false otherwise.
int size() const
Returns the size of the ring.
int number() const
Returns the current number of elements in the ring.
int head_
The position in the array ring_ where the next element will be inserted.
void realloc(int newSize)
Changes the length of the ring.
Type & operator[](int i)
Returns the i-th element of the ring.
bool filled() const
Returns true If the ring is completely filled up, false otherwise.
int oldestIndex() const
Returns the index of the oldest element in the ring.